-
Notifications
You must be signed in to change notification settings - Fork 26
Refactor v16 documentation for Sphinx #985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9d77611
Sync docs from Discourse (#864)
github-actions[bot] 266b34d
add starter pack and sync tutorial with VM
a-velasco 07b6a7e
update deployment guides
a-velasco a76e645
rename how-to-guides to how-to
a-velasco af14b0e
sync how-to guides with vm
a-velasco 19b5189
sync references with vm
a-velasco 6ecaa94
sync explanation pages with vm
a-velasco 2246f8b
add .readthedocs.yaml and reduce .gitignore scope for requirements.tx…
a-velasco 915ee62
fix some formatting issues
a-velasco c049ae7
sync backup guides with vm
a-velasco 633bc7b
fix misc. build errors and sync tutorial with vm
a-velasco 76c5bc7
add doc ci checks
a-velasco 1ebac47
remove discourse sync workflow
a-velasco d777e69
polish tutorial and deploy guide
a-velasco a92f111
specify channel on all deploy commands
a-velasco 277bb86
sync misc. pages with vm
a-velasco 66f04bc
minor README update with new documentation link
a-velasco 1426b13
ignore docs folder in development workflows
a-velasco 24211b6
remove sphinx python dependency check workflow
a-velasco 36b028a
update configuration and relevant pages
a-velasco 25bf525
replace deployment with channel 16
a-velasco be2e71f
Update README.md
a-velasco a682dea
sync with 16/edge
a-velasco 0804bf6
update ci workflows
a-velasco 64bd377
fix merge conflict with sync_docs.yaml
a-velasco 6a065d5
update landing page and fix broken reference
a-velasco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
# | ||
name: Automatic doc checks | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
paths: | ||
- 'docs/**' # Only run on changes to the docs directory | ||
|
||
workflow_dispatch: | ||
# Manual trigger | ||
|
||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
documentation-checks: | ||
uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main | ||
with: | ||
working-directory: "docs" | ||
fetch-depth: 0 | ||
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ on: | |
- 'LICENSE' | ||
- '**.md' | ||
- 'renovate.json' | ||
- 'docs/**' | ||
|
||
jobs: | ||
lib-check: | ||
|
This file contains hidden or 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,24 @@ | ||
name: Markdown style checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' # Only run on changes to the docs directory | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- 'docs/**' # Only run on changes to the docs directory | ||
|
||
jobs: | ||
markdown-lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: DavidAnson/markdownlint-cli2-action@b4c9feab76d8025d1e83c653fa3990936df0e6c8 | ||
with: | ||
config: "docs/.sphinx/.markdownlint.json" |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,39 @@ | ||
# .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: | ||
post_checkout: | ||
- git fetch --unshallow || true | ||
# Cancel building pull requests when there aren't changed in the docs directory. | ||
# If there are no changes (git diff exits with 0) we force the command to return with 183. | ||
# This is a special exit code on Read the Docs that will cancel the build immediately. | ||
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition | ||
- | | ||
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/16/docs -- 'docs/' '.readthedocs.yaml'; | ||
then | ||
exit 183; | ||
fi | ||
|
||
# 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/requirements.txt |
This file contains hidden or 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,40 @@ | ||
# Leave a blank line at the end of this file to support concatenation | ||
backend | ||
backends | ||
Charmcraft | ||
cjk | ||
cryptographically | ||
dvipng | ||
fonts | ||
freefont | ||
github | ||
GPG | ||
gyre | ||
https | ||
Intersphinx | ||
lang | ||
LaTeX | ||
latexmk | ||
Multipass | ||
otf | ||
plantuml | ||
PNG | ||
Pygments | ||
QEMU | ||
Rockcraft | ||
rst | ||
SVG | ||
tex | ||
texlive | ||
TOC | ||
toctree | ||
txt | ||
uncommenting | ||
utils | ||
VMs | ||
WCAG | ||
whitespace | ||
whitespaces | ||
wordlist | ||
xetex | ||
xindy |
This file contains hidden or 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,26 @@ | ||
# Environment | ||
*env*/ | ||
.sphinx/venv/ | ||
|
||
# Sphinx | ||
.sphinx/warnings.txt | ||
.sphinx/.wordlist.dic | ||
.sphinx/.doctrees/ | ||
.sphinx/update/ | ||
.sphinx/node_modules/ | ||
|
||
# Vale | ||
.sphinx/styles/* | ||
.sphinx/vale.ini | ||
|
||
# Build outputs | ||
_build | ||
|
||
# Node.js | ||
package*.json | ||
|
||
# Unrelated cache and config files | ||
.DS_Store | ||
__pycache__ | ||
.idea/ | ||
.vscode/ |
This file contains hidden or 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,21 @@ | ||
{ | ||
"default": false, | ||
"MD003": { | ||
"style": "atx" | ||
}, | ||
"MD014": true, | ||
"MD018": true, | ||
"MD022": true, | ||
"MD023": true, | ||
"MD026": { | ||
"punctuation": ".,;。,;" | ||
}, | ||
"MD031": { | ||
"list_items": false | ||
}, | ||
"MD032": true, | ||
"MD035": true, | ||
"MD042": true, | ||
"MD045": true, | ||
"MD052": true | ||
} |
This file contains hidden or 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,23 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: make-spelling | ||
name: Run make spelling | ||
entry: make -C docs spelling | ||
language: system | ||
pass_filenames: false | ||
files: ^docs/.*\.(rst|md|txt)$ | ||
|
||
- id: make-linkcheck | ||
name: Run make linkcheck | ||
entry: make -C docs linkcheck | ||
language: system | ||
pass_filenames: false | ||
files: ^docs/.*\.(rst|md|txt)$ | ||
|
||
- id: make-woke | ||
name: Run make woke | ||
entry: make -C docs woke | ||
language: system | ||
pass_filenames: false | ||
files: ^docs/.*\.(rst|md|txt)$ |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.