forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a sphinx documentation project in the doc folder of Juju. Add the developer docs to it, doing some minimal editing to make them display correctly. Auto generate the CLI docs. This is done in custom_conf.py and the output is in doc/user/cli.
- Loading branch information
Showing
311 changed files
with
11,895 additions
and
210 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
.github/workflows/docs-sphinx-python-dependency-build-checks.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# The purpose of this workflow file is to confirm that the Sphinx | ||
# virtual environment can be built from source, consequently documenting | ||
# the packages required in the build environment to do that. | ||
# | ||
# This is needed because some projects embeds the documentation into built | ||
# artifacts which involves rendering the documentation on the target | ||
# architecture. | ||
# | ||
# Depending on the architecture, pip may or may not have already built wheels | ||
# available, and as such we need to make sure building wheels from source can | ||
# succeed. | ||
name: Check and document build requirements for Sphinx venv | ||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
set -ex | ||
sudo apt -y install \ | ||
cargo \ | ||
libpython3-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
make \ | ||
python3-venv \ | ||
rustc | ||
- name: Install local Juju to generate CLI docs | ||
shell: bash | ||
run: | | ||
make go-install | ||
- name: Build Sphinx venv | ||
run: | | ||
set -ex | ||
cd docs | ||
make -f Makefile.sp \ | ||
sp-install \ | ||
PIPOPTS="--no-binary :all:" \ | ||
|| ( cat .sphinx/venv/pip_install.log && exit 1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
# Starter pack rules start here | ||
/*env*/ | ||
.sphinx/venv/ | ||
.sphinx/warnings.txt | ||
.sphinx/.wordlist.dic | ||
.sphinx/.doctrees/ | ||
.sphinx/node_modules/ | ||
package*.json | ||
_build | ||
.DS_Store | ||
__pycache__ | ||
.idea/ | ||
.vscode/ | ||
.sphinx/styles/* | ||
.sphinx/vale.ini | ||
sp-docs/_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
jobs: | ||
pre_install: | ||
- git fetch --unshallow || true | ||
- make go-install | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
builder: dirhtml | ||
configuration: docs/conf.py | ||
fail_on_warning: true | ||
|
||
# If using Sphinx, optionally build your docs in additional formats such as PDF | ||
formats: | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
python: | ||
install: | ||
- requirements: docs/.sphinx/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"default": false, | ||
"MD003": { "style": "atx" }, | ||
"MD013": { "code_blocks": false, "tables": false, "stern": true, "line_length": 150}, | ||
"MD014": true, | ||
"MD018": true, | ||
"MD022": true, | ||
"MD023": true, | ||
"MD026": { "punctuation": ".,;。,;"}, | ||
"MD031": { "list_items": false}, | ||
"MD032": true, | ||
"MD035": true, | ||
"MD042": true, | ||
"MD045": true, | ||
"MD052": true | ||
} |
Oops, something went wrong.