-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the Spinx starter pack for RTD site (ISD-2738) (#16)
* enable starter pack * customize the setup * update home page * update working directory in CI workflows * update hardcoded sphinx venv dir * update environment variables in Makefile * update environment variables * un-hardcode directory * un-hardcode another directory * revert env var changes * add navigational structure for tutorials, how-to's, explanations * update how to contribute page * navigation changes * update contributing guide * update linkcheck ignore list * update custom spelling list * update changelog * update README for markdown-lint * make woke happy * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * move license info in .sh riles * update license yaml * remove license info from metrics sh * update license ignore yaml * move changelog entry under unreleased * update ubuntu os version for RTD * update python version for RTD * update line_length * add markdown cheat sheet * make lint test happy * fix unit test * update unit test installation script * revert changes for unit test * trigger CI * update .wokeignore file path * update .woke.yaml ignore_files * revert changes in .wokeignore * revert .woke.yaml changes, add files to .gitignore * add docs files to root .gitignore * try to make vale happy * update spellcheck to US English, update docs * revert changes to .gitignore --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e5c0dd6
commit 0b6107a
Showing
47 changed files
with
2,177 additions
and
1 deletion.
There are no files selected for viewing
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,19 @@ | ||
name: Main Documentation Checks | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
# Manual trigger | ||
workflow_dispatch: | ||
|
||
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 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 @@ | ||
name: "Linter for Markdown" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
markdown-lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: DavidAnson/markdownlint-cli2-action@v16 | ||
with: | ||
config: "docs/.sphinx/.markdownlint.json" | ||
|
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,19 @@ | ||
name: Periodic Style Checks | ||
|
||
on: | ||
schedule: | ||
- cron: "0 1 * * 4" # Runs at 01:00 AM on every Wednesday | ||
|
||
jobs: | ||
vale: | ||
name: Style checker | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: "sp-docs" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run vale | ||
run: | | ||
make vale |
48 changes: 48 additions & 0 deletions
48
.github/workflows/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,48 @@ | ||
# 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: Build Sphinx venv | ||
working-directory: "docs" | ||
run: | | ||
set -ex | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,3 +162,4 @@ cython_debug/ | |
*.charm | ||
*.rock | ||
!examples/**/lib | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docs/.wokeignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Charmcraft | ||
Rockcraft |
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,33 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
# .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-24.04 | ||
tools: | ||
python: "3.13" | ||
jobs: | ||
pre_install: | ||
- git fetch --unshallow || true | ||
|
||
# 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": 120}, | ||
"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 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,64 @@ | ||
ACME | ||
ACME's | ||
addons | ||
AGPLv | ||
API | ||
APIs | ||
balancer | ||
Charmhub | ||
CLI | ||
DCO | ||
Diátaxis | ||
Dqlite | ||
dropdown | ||
EBS | ||
EKS | ||
enablement | ||
favicon | ||
Furo | ||
Git | ||
GitHub | ||
Grafana | ||
IAM | ||
installable | ||
JSON | ||
Juju | ||
Kubeflow | ||
Kubernetes | ||
Launchpad | ||
linter | ||
LTS | ||
LXD | ||
Makefile | ||
Makefiles | ||
Matrix | ||
Mattermost | ||
MicroCeph | ||
MicroCloud | ||
MicroOVN | ||
MyST | ||
namespace | ||
namespaces | ||
NodePort | ||
Numbat | ||
observability | ||
OEM | ||
OLM | ||
Permalink | ||
pre | ||
Quickstart | ||
ReadMe | ||
reST | ||
reStructuredText | ||
roadmap | ||
RTD | ||
subdirectories | ||
subfolders | ||
subtree | ||
TODO | ||
Ubuntu | ||
UI | ||
UUID | ||
VM | ||
webhook | ||
YAML |
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,20 @@ | ||
/* | ||
* Copyright 2024 Canonical Ltd. | ||
* See LICENSE file for licensing details. | ||
*/ | ||
|
||
/* Only relevant for specific PDF generation issues */ | ||
|
||
.rubric>.hclass2 { | ||
display: block; | ||
font-size: 2em; | ||
border-radius: .5rem; | ||
font-weight: 300; | ||
line-height: 1.25; | ||
margin-top: 1.75rem; | ||
margin-right: -0.5rem; | ||
margin-bottom: 0.5rem; | ||
margin-left: -0.5rem; | ||
padding-left: .5rem; | ||
padding-right: .5rem; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.