You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we switch to DocSearch open-contracting/ocds-index#7, the deployment process would then just be copying the built pages to the server. We still need our own hosting for:
Reverse proxy for Data Review Tool. Though, we can move that to a subdomain, and redirect.
Banners. Though, we can use JS instead to add an element to the page based on the URL. If hosted on ReadTheDocs, banners for staging versions and old versions are natively supported.
Subprojects. If hosted on ReadTheDocs, subprojects can be used. This allows searching across subprojects. However, we'd have a /projects/ path component instead of /profiles/.
Legacy documentation and Open Data Comparison. Though, it's not clear that we need to keep these online.
We currently need our own build system for:
current_lang logic for linking to translated schema and codelists. OCDS for PPPs doesn't use it though - in conf.py, it instead writes these files to both the language's root and to a _static path that is ignored by git.
Compiling non-Sphinx catalogs. We can maybe add some code in conf.py if we don't find another way.
We can also eliminate test_common.py as we can trust that the build, search and language switcher work. (Note: When we switch to sphinx-inline-tabs instead of our custom jsoninclude JS, we can also eliminate test_docs.py.)
I think the main question is how well ReadTheDocs' features are supported when using a custom theme. Docs for integration with:
Note that the version/locale switchers need to be updated for the new theme anyway open-contracting/standard#1254 (comment). If we decide to switch to RTD, we can avoid doing this work twice.
If we switch to DocSearch open-contracting/ocds-index#7, the deployment process would then just be copying the built pages to the server. We still need our own hosting for:
/projects/path component instead of/profiles/.We currently need our own build system for:
current_langlogic for linking to translated schema and codelists. OCDS for PPPs doesn't use it though - in conf.py, it instead writes these files to both the language's root and to a_staticpath that is ignored by git.util/add_translation_notes.py. We should hook this into Sphinx using thebuild-finishedevent instead: https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx-core-eventsIf we address all the above, it could be possible to host on ReadTheDocs or elsewhere. To opt-out of ads, see https://readthedocs.org/accounts/gold/
For older instructions on setting up ReadTheDocs: https://ocds-standard-development-handbook.readthedocs.io/en/latest/profiles/technical/integrations.html
If using ReadTheDocs, we should configure:
We can also eliminate
test_common.pyas we can trust that the build, search and language switcher work. (Note: When we switch to sphinx-inline-tabs instead of our custom jsoninclude JS, we can also eliminatetest_docs.py.)I think the main question is how well ReadTheDocs' features are supported when using a custom theme. Docs for integration with:
readthedocs-sphinx-searchpydata/pydata-sphinx-theme#202Note that the version/locale switchers need to be updated for the new theme anyway open-contracting/standard#1254 (comment). If we decide to switch to RTD, we can avoid doing this work twice.