Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ jobs:
with:
working-directory: './doc'
makefile: 'Makefile'
python-version: '3.12'
Comment thread
roosterfish marked this conversation as resolved.

snap:
name: Trigger snap edge build
Expand Down
1 change: 0 additions & 1 deletion .wokeignore

This file was deleted.

1 change: 1 addition & 0 deletions doc/.custom_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ SDN
snapd
SSD
SSL
subfolders
subnet
subnets
SVG
Expand Down
5 changes: 1 addition & 4 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/*env*/
.sphinx/venv/
.sphinx/requirements.txt
.venv/
.sphinx/warnings.txt
.sphinx/.wordlist.dic
.sphinx/.doctrees/
.sphinx/node_modules/
package*.json
Expand All @@ -14,6 +12,5 @@ __pycache__
.sphinx/styles/*
.sphinx/vale.ini
integration/

.sphinx/deps/
_static/swagger-ui
9 changes: 2 additions & 7 deletions doc/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ build:
- git fetch --unshallow || true
- cd doc && make GOTOOLCHAIN=auto integrate
- cd doc/integration/lxd/ && GOTOOLCHAIN=auto go build -ldflags "-s -w" -o trimpath -o lxc.bin ./lxc
# Pretend that woke is installed - we don't need it for building
# (workaround until https://github.com/canonical/microovn/pull/168 is merged
# and https://github.com/canonical/microceph/pull/400 is restored)
- ln -s /bin/true doc/integration/microovn/docs/woke
- ln -s /bin/true doc/integration/microceph/docs/woke
- make GOTOOLCHAIN=auto doc-html-rtd PATH=$PATH:.
- cd doc && make GOTOOLCHAIN=auto html-rtd PATH=$PATH:.

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand All @@ -35,4 +30,4 @@ sphinx:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: doc/.sphinx/requirements.txt
- requirements: doc/requirements.txt
12 changes: 4 additions & 8 deletions doc/.sphinx/_integration/add_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,18 @@

if project == "LXD":
html_baseurl = "https://documentation.ubuntu.com/lxd/latest/"
html_js_files.append('rtd-search.js')
html_css_files = globals().get('html_css_files', []) + ['override-header.css']
tags.add('integrated')
elif project == "MicroCeph":
html_baseurl = "https://canonical-microceph.readthedocs-hosted.com/en/latest/"
html_baseurl = "https://canonical-microceph.readthedocs-hosted.com/latest/"
# Override default header templates
templates_path = globals().get('templates_path', []) + [".sphinx/_templates"]
templates_path = globals().get('templates_path', []) + ["_templates"]
# Override default header styles
html_static_path = globals().get('html_static_path', []) + [".sphinx/_static"]
html_static_path = globals().get('html_static_path', []) + ["_static"]
html_css_files = globals().get('html_css_files', []) + ['override-header.css']
# Add rtd-search.js to the list of JS files
html_js_files = globals().get('html_js_files', []) + ['rtd-search.js']
# Add "integrated" to the list of custom tags
custom_tags = globals().get('custom_tags', []) + ['integrated']
tags.add('integrated')
elif project == "MicroOVN":
html_baseurl = "https://canonical-microovn.readthedocs-hosted.com/en/latest/"
custom_html_js_files.append('rtd-search.js')
custom_tags.append('integrated')

6 changes: 0 additions & 6 deletions doc/.sphinx/_integration/rtd-search.js

This file was deleted.

13 changes: 0 additions & 13 deletions doc/.sphinx/_static/404.svg

This file was deleted.

Loading
Loading