Skip to content
Merged
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
2 changes: 1 addition & 1 deletion doc/.sphinx/_integration/add_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
custom_html_js_files.append('rtd-search.js')

if project == "LXD":
html_baseurl = "https://documentation.ubuntu.com/lxd/en/latest/"
html_baseurl = "https://documentation.ubuntu.com/lxd/stable-5.21/"
elif project == "MicroCeph":
html_baseurl = "https://canonical-microceph.readthedocs-hosted.com/en/latest/"
elif project == "MicroOVN":
Expand Down
25 changes: 22 additions & 3 deletions doc/custom_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# don't know yet)
# NOTE: If no ogp_* variable is defined (e.g. if you remove this section) the
# sphinxext.opengraph extension will be disabled.
ogp_site_url = 'https://canonical-microcloud.readthedocs-hosted.com/en/latest/'
ogp_site_url = 'https://documentation.ubuntu.com/microcloud/'
# The documentation website name (usually the same as the product name)
ogp_site_name = project
# The URL of an image or logo that is used in the preview
Expand Down Expand Up @@ -122,7 +122,23 @@

# If your project is on documentation.ubuntu.com, specify the project
# slug (for example, "lxd") here.
slug = ""
slug = "microcloud"

#######################
# Sitemap configuration: https://sphinx-sitemap.readthedocs.io/
#######################

# Base URL of RTD hosted project

html_baseurl = 'https://documentation.ubuntu.com/microcloud/'

# Configures URL scheme for sphinx-sitemap to generate correct URLs
# based on the version if built in RTD
if 'READTHEDOCS_VERSION' in os.environ:
rtd_version = os.environ["READTHEDOCS_VERSION"]
sitemap_url_scheme = f'{rtd_version}/microcloud/{{link}}'
else:
sitemap_url_scheme = '{link}'

############################################################
### Redirects
Expand Down Expand Up @@ -197,6 +213,7 @@
'canonical.terminal-output',
'notfound.extension',
'sphinx.ext.intersphinx',
'sphinx_sitemap',
]

# Add custom required Python modules that must be added to the
Expand All @@ -206,7 +223,9 @@
# pyspelling, sphinx, sphinx-autobuild, sphinx-copybutton, sphinx-design,
# sphinx-notfound-page, sphinx-reredirects, sphinx-tabs, sphinxcontrib-jquery,
# sphinxext-opengraph
custom_required_modules = []
custom_required_modules = [
'sphinx-sitemap',
]

# Add files or directories that should be excluded from processing.
custom_excludes = [
Expand Down
2 changes: 1 addition & 1 deletion doc/how-to/recover.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ similar for each service, this document only covers cluster recovery for the
`microcloudd` daemon. For cluster recovery procedures for LXD, MicroCeph and
MicroOVN, see:

- [LXD Cluster Recovery](https://documentation.ubuntu.com/lxd/en/latest/howto/cluster_recover/)
- {ref}`How to recover a LXD cluster <lxd:cluster-recover>`
- [MicroOVN Launchpad Bug](https://bugs.launchpad.net/microovn/+bug/2072377)
- [MicroCeph Issue](https://github.com/canonical/microceph/issues/380)
```
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/run
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ init() {

if ! remoteAccessible; then
echo "The ${REMOTE}: remote is not usable." >&2
echo "Please see https://documentation.ubuntu.com/lxd/en/latest/howto/server_expose/#authenticate-with-the-lxd-server" >&2
echo "Please see https://documentation.ubuntu.com/lxd/stable-5.21/howto/server_expose/#authenticate-with-the-lxd-server" >&2
exit 1
fi

Expand Down
Loading