···66666767 testScript = ''
6868 machine.wait_for_unit("incus.service")
6969+ machine.wait_for_unit("incus-preseed.service")
69707071 # Check that the INCUS_UI environment variable is populated in the systemd unit
7172 machine.succeed("systemctl cat incus.service | grep 'INCUS_UI'")
72737374 # Ensure the endpoint returns an HTML page with 'Incus UI' in the title
7475 machine.succeed("curl -kLs https://localhost:8443/ui | grep '<title>Incus UI</title>'")
7676+7777+ # Ensure the documentation is rendering correctly
7878+ machine.succeed("curl -kLs https://localhost:8443/documentation/ | grep '<title>Incus documentation</title>'")
75797680 # Ensure the application is actually rendered by the Javascript
7781 machine.succeed("PYTHONUNBUFFERED=1 selenium-script")
+26
pkgs/by-name/in/incus/docs.patch
···11+diff --git i/doc/conf.py w/doc/conf.py
22+index 8d042818b..b4f0572bd 100644
33+--- i/doc/conf.py
44++++ w/doc/conf.py
55+@@ -8,10 +8,6 @@ import yaml
66+ from git import Repo
77+ import filecmp
88+99+-# Download and link swagger-ui files
1010+-if not os.path.isdir('.sphinx/deps/swagger-ui'):
1111+- Repo.clone_from('https://github.com/swagger-api/swagger-ui', '.sphinx/deps/swagger-ui', depth=1)
1212+-
1313+ os.makedirs('.sphinx/_static/swagger-ui/', exist_ok=True)
1414+1515+ if not os.path.islink('.sphinx/_static/swagger-ui/swagger-ui-bundle.js'):
1616+@@ -151,10 +147,6 @@ if os.path.exists("./related_topics.yaml"):
1717+ with open("./related_topics.yaml", "r") as fd:
1818+ myst_substitutions.update(yaml.safe_load(fd.read()))
1919+2020+-intersphinx_mapping = {
2121+- 'cloud-init': ('https://cloudinit.readthedocs.io/en/latest/', None)
2222+-}
2323+-
2424+ if ("LOCAL_SPHINX_BUILD" in os.environ) and (os.environ["LOCAL_SPHINX_BUILD"] == "True"):
2525+ swagger_url_scheme = "/api/#{{path}}"
2626+ else: