Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Overhaul documentation organisation (#1846)
sarayourfriend77e2f6b948b6
diff --git a/.github/workflows/pr_label_check.yml b/.github/workflows/pr_label_check.ymlindex bab1a5e0d..cd61f1f55 100644--- a/.github/workflows/pr_label_check.yml+++ b/.github/workflows/pr_label_check.yml@@ -51,5 +51,5 @@ jobs:- name: Check stack labeluses: docker://agilepathway/pull-request-label-checker:v1.2.13with:- any_of: "🧱 stack: backend,🧱 stack: frontend,🧱 stack: mgmt,🧱 stack: api,🧱 stack: catalog,🧱 stack: ingestion server"+ any_of: "🧱 stack: backend,🧱 stack: documentation,🧱 stack: frontend,🧱 stack: mgmt,🧱 stack: api,🧱 stack: catalog,🧱 stack: ingestion server"repo_token: ${{ secrets.GITHUB_TOKEN }}diff --git a/documentation/_toc_templates/flat.md b/documentation/_toc_templates/flat.mdnew file mode 100644index 000000000..3485702b2--- /dev/null+++ b/documentation/_toc_templates/flat.md@@ -0,0 +1,10 @@+---+suppress_warnings: ["toc.circular"]+---++```{toctree}+:maxdepth: 1+:glob:++*+```diff --git a/documentation/_toc_templates/stack_root.md b/documentation/_toc_templates/stack_root.mdnew file mode 100644index 000000000..16c2db251--- /dev/null+++ b/documentation/_toc_templates/stack_root.md@@ -0,0 +1,8 @@+```{toctree}+:titlesonly:+:maxdepth: 2+:glob:++*+*/index+```diff --git a/documentation/api/guides/index.md b/documentation/api/guides/index.mdnew file mode 100644index 000000000..3cbc02d06--- /dev/null+++ b/documentation/api/guides/index.md@@ -0,0 +1,5 @@+# Guides++```{include} ../../_toc_templates/flat.md++```diff --git a/documentation/guides/api/quickstart.md b/documentation/api/guides/quickstart.mdsimilarity index 87%rename from documentation/guides/api/quickstart.mdrename to documentation/api/guides/quickstart.mdindex 2295d01d0..3f0e8cbe8 100644--- a/documentation/guides/api/quickstart.md+++ b/documentation/api/guides/quickstart.md@@ -4,10 +4,10 @@ This is the quick start guide for setting up and running the API locally.## Prerequisites-Refer to the [general setup guide](../general_setup.md) for setting up the+Refer to the [general setup guide](/general/general_setup.md) for setting up theprerequisites. Refer to the 'API' column in the-[requirement matrix](../general_setup.md#requirement-matrix) to know what you-need to run this.+[requirement matrix](/general/general_setup.md#requirement-matrix) to know what+you need to run this.## Starting up@@ -23,8 +23,8 @@ need to run this.```If you followed the general setup guide and installed- [GitHub CLI](./general_setup.md#github-cli), you can clone more simply using- the `gh` command.+ [GitHub CLI](/general/general_setup.md#github-cli), you can clone more simply+ using the `gh` command.```console$ gh repo clone WordPress/openverse # or your fork@@ -101,4 +101,4 @@ need to run this.## Shutting down-Refer to the [common instructions](../quickstart.md#shutting-down).+Refer to the [common instructions](/general/quickstart.md#shutting-down).diff --git a/documentation/guides/api/test.md b/documentation/api/guides/test.mdsimilarity index 68%rename from documentation/guides/api/test.mdrename to documentation/api/guides/test.mdindex a00071479..1de1e4683 100644--- a/documentation/guides/api/test.md+++ b/documentation/api/guides/test.md@@ -4,8 +4,8 @@ Once you've made some changes to the codebase, it is important to run tests.## Steps-1. Ensure you've gone through the [quickstart guide](../quickstart.md). Ensure- that the Docker daemon is running.+1. Ensure you've gone through the [quickstart guide](/api/guides/quickstart.md).+ Ensure that the Docker daemon is running.2. Run the tests.diff --git a/documentation/api/index.md b/documentation/api/index.mdnew file mode 100644index 000000000..2bcadfeb0--- /dev/null+++ b/documentation/api/index.md@@ -0,0 +1,9 @@+# Django API++This section includes documentation about developing the Openverse Django API.+Documentation about how to use the API currently lives on the API itself at+<https://api.openverse.engineering/v1/>.++```{include} ../_toc_templates/stack_root.md++```diff --git a/documentation/reference/api/authentication_and_throttling.md b/documentation/api/reference/authentication_and_throttling.mdsimilarity index 100%rename from documentation/reference/api/authentication_and_throttling.mdrename to documentation/api/reference/authentication_and_throttling.mddiff --git a/documentation/api/reference/index.md b/documentation/api/reference/index.mdnew file mode 100644index 000000000..a20daaa20--- /dev/null+++ b/documentation/api/reference/index.md@@ -0,0 +1,5 @@+# Reference++```{include} ../../_toc_templates/flat.md++```diff --git a/documentation/reference/search_algorithm.md b/documentation/api/reference/search_algorithm.mdsimilarity index 100%rename from documentation/reference/search_algorithm.mdrename to documentation/api/reference/search_algorithm.mddiff --git a/documentation/catalog/index.md b/documentation/catalog/index.mdnew file mode 100644index 000000000..ec49a627a--- /dev/null+++ b/documentation/catalog/index.md@@ -0,0 +1,5 @@+# Airflow catalog++```{include} ../_toc_templates/stack_root.md++```diff --git a/documentation/changelogs/index.md b/documentation/changelogs/index.mdindex 061d54d34..5a3c04f90 100644--- a/documentation/changelogs/index.md+++ b/documentation/changelogs/index.md@@ -8,11 +8,6 @@ type of change. The documents are generated using the[`release-drafter`](https://github.com/release-drafter/release-drafter)workflow.-```{toctree}-:maxdepth: 1-:glob:+```{include} ../_toc_templates/stack_root.md-api/index-frontend/index-ingestion_server/index```diff --git a/documentation/conf.py b/documentation/conf.pyindex 1a19029b7..30797c591 100644--- a/documentation/conf.py+++ b/documentation/conf.py@@ -37,8 +37,8 @@ myst_heading_anchors = 6 # Add anchors to all headers, this is disabled by defasource_suffix = {".rst": "restructuredtext", ".md": "markdown"}-templates_path = ["_templates"]-exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]+templates = ["_toc_templates"]+exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".venv"]# -- Options for HTML output -------------------------------------------------# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-outputdiff --git a/documentation/guides/frontend/analytics.md b/documentation/frontend/guides/analytics.mdsimilarity index 100%rename from documentation/guides/frontend/analytics.mdrename to documentation/frontend/guides/analytics.mddiff --git a/documentation/guides/frontend/develop.md b/documentation/frontend/guides/develop.mdsimilarity index 100%rename from documentation/guides/frontend/develop.mdrename to documentation/frontend/guides/develop.mddiff --git a/documentation/guides/frontend/goal-conversions.png b/documentation/frontend/guides/goal-conversions.pngsimilarity index 100%rename from documentation/guides/frontend/goal-conversions.pngrename to documentation/frontend/guides/goal-conversions.pngdiff --git a/documentation/frontend/guides/index.md b/documentation/frontend/guides/index.mdnew file mode 100644index 000000000..3cbc02d06--- /dev/null+++ b/documentation/frontend/guides/index.md@@ -0,0 +1,5 @@+# Guides++```{include} ../../_toc_templates/flat.md++```diff --git a/documentation/guides/frontend/quickstart.md b/documentation/frontend/guides/quickstart.mdsimilarity index 78%rename from documentation/guides/frontend/quickstart.mdrename to documentation/frontend/guides/quickstart.mdindex 021abfaca..8e3ee0edf 100644--- a/documentation/guides/frontend/quickstart.md+++ b/documentation/frontend/guides/quickstart.md@@ -4,10 +4,10 @@ This is the quick start guide for setting up and running the frontend locally.## Prerequisites-Refer to the [general setup guide](../general_setup.md) for setting up the+Refer to the [general setup guide](/general/general_setup.md) for setting up theprerequisites. Refer to the 'Frontend' column in the-[requirement matrix](../general_setup.md#requirement-matrix) to know what you-need to run this.+[requirement matrix](/general/general_setup.md#requirement-matrix) to know what+you need to run this.## Starting up@@ -23,8 +23,8 @@ need to run this.```If you followed the general setup guide and installed- [GitHub CLI](./general_setup.md#github-cli), you can clone more simply using- the `gh` command.+ [GitHub CLI](/general/general_setup.md#github-cli), you can clone more simply+ using the `gh` command.```console$ gh repo clone WordPress/openverse # or your fork@@ -47,8 +47,8 @@ need to run this.If you want your frontend to use a different API instance, you can set the`API_URL` environment variable to point to that instance. If you had the- [API running locally](../api/quickstart.md), you can do the following to use- the local API with the frontend.+ [API running locally](/api/guides/quickstart.md), you can do the following to+ use the local API with the frontend.```console$ env API_URL="http://localhost:50280" just frontend/run devdiff --git a/documentation/guides/frontend/test.md b/documentation/frontend/guides/test.mdsimilarity index 76%rename from documentation/guides/frontend/test.mdrename to documentation/frontend/guides/test.mdindex fa54117c6..d8eb4ba7f 100644--- a/documentation/guides/frontend/test.md+++ b/documentation/frontend/guides/test.md@@ -4,13 +4,16 @@ Once you've made some changes to the codebase, it is important to run tests.Openverse uses unit tests, Playwright tests for end-to-end, and visualregression testing of the app and Storybook components. This guide will help yourun the tests. To learn more about how to test PRs, read the-[testing guidelines](./testing_guidelines.md). To learn more about the-Playwright tests, read [this guide](./playwright_tests.md). To learn more about-the Storybook visual regression tests, read [this guide](./storybook_tests.md).+[testing guidelines](/frontend/reference/testing_guidelines.md). To learn more+about the Playwright tests, read+[this guide](/frontend/reference/playwright_tests.md). To learn more about the+Storybook visual regression tests, read+[this guide](/frontend/reference/storybook_tests.md).## Steps-1. Ensure you've gone through the [quickstart guide](../quickstart.md).+1. Ensure you've gone through the+ [quickstart guide](/frontend/guides/quickstart.md).2. Run unit tests for the frontend.diff --git a/documentation/frontend/index.md b/documentation/frontend/index.mdnew file mode 100644index 000000000..48148a031--- /dev/null+++ b/documentation/frontend/index.md@@ -0,0 +1,5 @@+# Nuxt frontend++```{include} ../_toc_templates/stack_root.md++```diff --git a/documentation/reference/frontend/feature_flags.md b/documentation/frontend/reference/feature_flags.mdsimilarity index 100%rename from documentation/reference/frontend/feature_flags.mdrename to documentation/frontend/reference/feature_flags.mddiff --git a/documentation/frontend/reference/index.md b/documentation/frontend/reference/index.mdnew file mode 100644index 000000000..a20daaa20--- /dev/null+++ b/documentation/frontend/reference/index.md@@ -0,0 +1,5 @@+# Reference++```{include} ../../_toc_templates/flat.md++```diff --git a/documentation/guides/frontend/miscellaneous.md b/documentation/frontend/reference/miscellaneous.mdsimilarity index 100%rename from documentation/guides/frontend/miscellaneous.mdrename to documentation/frontend/reference/miscellaneous.mddiff --git a/documentation/guides/frontend/playwright_tests.md b/documentation/frontend/reference/playwright_tests.mdsimilarity index 100%rename from documentation/guides/frontend/playwright_tests.mdrename to documentation/frontend/reference/playwright_tests.mddiff --git a/documentation/guides/frontend/storybook_tests.md b/documentation/frontend/reference/storybook_tests.mdsimilarity index 100%rename from documentation/guides/frontend/storybook_tests.mdrename to documentation/frontend/reference/storybook_tests.mddiff --git a/documentation/guides/frontend/testing_guidelines.md b/documentation/frontend/reference/testing_guidelines.mdsimilarity index 96%rename from documentation/guides/frontend/testing_guidelines.mdrename to documentation/frontend/reference/testing_guidelines.mdindex 440a257d2..a0c23126c 100644--- a/documentation/guides/frontend/testing_guidelines.md+++ b/documentation/frontend/reference/testing_guidelines.md@@ -47,7 +47,7 @@ ways to solve this:2. You can introduce the environment variables necessary for authenticating withan API-For the first, [run the Openverse API locally](../api/quickstart.md). Then+For the first, [run the Openverse API locally](/api/guides/quickstart.md). Thencreate a `.env` file by copying the `.env.template` file and update it with thefollowing:@@ -186,7 +186,7 @@ page without reloading the page in between. For example, to test the searchroute client side, you can execute a search from the homepage and it willredirect you client-side to the search page.-## Conclusion+### ConclusionPlease note that these are non-expert and non-exhaustive recommendations. Spendtime reading the [WAI-ARIA spec](https://www.w3.org/TR/wai-aria/) and other web@@ -194,7 +194,7 @@ accessibility materials. Even just knowing about specific roles and interactionsthat exist and are meant to be developed in consistent ways is a good first stepto learning what to look out for when testing.-# Automated tests+## Automated testsOpenverse uses[Vue Testing Library](https://testing-library.com/docs/vue-testing-library/intro/)@@ -208,7 +208,8 @@ re-written using testing library.### Playwright tests-Please see the [Playwright test guidelines](./playwright_tests.md) for+Please see the+[Playwright test guidelines](/frontend/reference/playwright_tests.md) forinstructions on running and maintaining the Playwright test suite, and the-[Storybook test guidelines](./storybook_tests.md) for instructions on the-Storybook Playwright test suite.+[Storybook test guidelines](/frontend/reference/storybook_tests.md) for+instructions on the Storybook Playwright test suite.diff --git a/documentation/guides/deployment.md b/documentation/general/deployment.mdsimilarity index 100%rename from documentation/guides/deployment.mdrename to documentation/general/deployment.mddiff --git a/documentation/guides/general_setup.md b/documentation/general/general_setup.mdsimilarity index 100%rename from documentation/guides/general_setup.mdrename to documentation/general/general_setup.mddiff --git a/documentation/guides/https.md b/documentation/general/https.mdsimilarity index 100%rename from documentation/guides/https.mdrename to documentation/general/https.mddiff --git a/documentation/general/index.md b/documentation/general/index.mdnew file mode 100644index 000000000..ae7d7eaec--- /dev/null+++ b/documentation/general/index.md@@ -0,0 +1,5 @@+# General development guidelines++```{include} ../_toc_templates/stack_root.md++```diff --git a/documentation/guides/logging.md b/documentation/general/logging.mdsimilarity index 100%rename from documentation/guides/logging.mdrename to documentation/general/logging.mddiff --git a/documentation/guides/publish.md b/documentation/general/publish.mdsimilarity index 100%rename from documentation/guides/publish.mdrename to documentation/general/publish.mddiff --git a/documentation/guides/quickstart.md b/documentation/general/quickstart.mdsimilarity index 93%rename from documentation/guides/quickstart.mdrename to documentation/general/quickstart.mdindex 5e3b03907..75387a52d 100644--- a/documentation/guides/quickstart.md+++ b/documentation/general/quickstart.md@@ -13,17 +13,17 @@ at once. In all likelihood, you intend to contribute to a narrower slice of thestack. In such cases, you might find it more beneficial to go through one ofthese stack-specific quickstart guides.-- [API](./api/quickstart.md)-- [Frontend](./frontend/quickstart.md)-- [Ingestion server](./ingestion_server/quickstart.md)-- [Documentation](./documentation/quickstart.md)+- [API](/api/guides/quickstart.md)+- [Frontend](/frontend/guides/quickstart.md)+- [Ingestion server](/ingestion_server/guides/quickstart.md)+- [Documentation](/meta/documentation/quickstart.md)That said, there is something very appealing about running the full stacklocally, which this guide is all about.## Prerequisites-Refer to the [general setup guide](./general_setup.md) for setting up the+Refer to the [general setup guide](/general/general_setup.md) for setting up theprerequisites.## Starting up@@ -40,8 +40,8 @@ prerequisites.```If you followed the setup guide and installed- [GitHub CLI](./general_setup.md#github-cli), you can clone more simply using- the `gh` command.+ [GitHub CLI](/general/general_setup.md#github-cli), you can clone more simply+ using the `gh` command.```console$ gh repo clone WordPress/openverse # or your forkdiff --git a/documentation/guides/run.md b/documentation/general/run.mdsimilarity index 100%rename from documentation/guides/run.mdrename to documentation/general/run.mddiff --git a/documentation/guides/test.md b/documentation/general/test.mdsimilarity index 100%rename from documentation/guides/test.mdrename to documentation/general/test.mddiff --git a/documentation/guides/zero-downtime-database-management.md b/documentation/general/zero-downtime-database-management.mdsimilarity index 99%rename from documentation/guides/zero-downtime-database-management.mdrename to documentation/general/zero-downtime-database-management.mdindex 8dee4a42d..f2d6c7083 100644--- a/documentation/guides/zero-downtime-database-management.md+++ b/documentation/general/zero-downtime-database-management.md@@ -364,7 +364,7 @@ revision used to run that instance. Environment variables are not automaticallyupdated for the running application. This means that if a deployment was verycarefully orchestrated, we do not necessarily need to worry about backwardsincompatible changes, and even in the-[worst case described below](#manual-rollbacks-after-removing-an-environment-variable),+[worst case described below](#manual-rollbacks-after-removing-an-environment-variable-or-updating-its-format),it is still possible to recover by following an additional step (re-updating thetemplate before rolling back).diff --git a/documentation/guides/api/develop.md b/documentation/guides/api/develop.mddeleted file mode 100644index 6f2e65da2..000000000--- a/documentation/guides/api/develop.md+++ /dev/null@@ -1,3 +0,0 @@-# Development guide--Here's the comprehensive guide for developing the Openverse API.diff --git a/documentation/guides/api/index.md b/documentation/guides/api/index.mddeleted file mode 100644index 68f2bce31..000000000--- a/documentation/guides/api/index.md+++ /dev/null@@ -1,8 +0,0 @@-# API--```{toctree}-:maxdepth: 1--quickstart-test-```diff --git a/documentation/guides/documentation/index.md b/documentation/guides/documentation/index.mddeleted file mode 100644index 9a3415432..000000000--- a/documentation/guides/documentation/index.md+++ /dev/null@@ -1,8 +0,0 @@-# Documentation--```{toctree}-:maxdepth: 1--quickstart-guidelines-```diff --git a/documentation/guides/frontend/index.md b/documentation/guides/frontend/index.mddeleted file mode 100644index b173993c8..000000000--- a/documentation/guides/frontend/index.md+++ /dev/null@@ -1,13 +0,0 @@-# Frontend--```{toctree}-:maxdepth: 1--quickstart-test-testing_guidelines-playwright_tests-storybook_tests-analytics-miscellaneous-```diff --git a/documentation/guides/index.md b/documentation/guides/index.mddeleted file mode 100644index 771bad59a..000000000--- a/documentation/guides/index.md+++ /dev/null@@ -1,26 +0,0 @@-# Guides--Here you will find guides to get you started with Openverse development.--## General guides--```{toctree}-:maxdepth: 1--general_setup-quickstart-deployment-logging-zero-downtime-database-management-```--## Stack-specific guides--```{toctree}-:maxdepth: 2--api/index-ingestion_server/index-frontend/index-documentation/index-```diff --git a/documentation/guides/ingestion_server/develop.md b/documentation/guides/ingestion_server/develop.mddeleted file mode 100644index bb64df467..000000000--- a/documentation/guides/ingestion_server/develop.md+++ /dev/null@@ -1,3 +0,0 @@-# Development guide--Here's the comprehensive guide for developing the Openverse ingestion server.diff --git a/documentation/guides/ingestion_server/index.md b/documentation/guides/ingestion_server/index.mddeleted file mode 100644index 3e323c365..000000000--- a/documentation/guides/ingestion_server/index.md+++ /dev/null@@ -1,8 +0,0 @@-# Ingestion server--```{toctree}-:maxdepth: 1--quickstart-test-```diff --git a/documentation/index.md b/documentation/index.mdindex a2b54c5b7..e088939d6 100644--- a/documentation/index.md+++ b/documentation/index.md@@ -2,12 +2,12 @@Openverse is a search engine for openly licensed media.-## Documentation+# DocumentationTo setup your computer and install pre-requisites for developing Openverse,-refer to the [general setup guide](./guides/general_setup.md). To run the+refer to the [general setup guide](./general/general_setup.md). To run theOpenverse stack locally on your computer, refer to the-[quickstart guide](./guides/quickstart.md).+[quickstart guide](./general/quickstart.md).```{note}This documentation is for developers who are building Openverse. If you want to@@ -15,22 +15,20 @@ use the Openverse API, you should instead refer to the[API consumer documentation](https://api.openverse.engineering/).```-## Related documentation+# Related documentation<!-- These use HTML anchors because Sphinx treats them as internal references without scheme. -->- <a href="./storybook">Storybook</a> (UI components)- <a href="./tailwind">Tailwind Config Viewer</a> (design tokens)-## Table of contents+# Table of contents```{toctree}-:maxdepth: 3+:maxdepth: 2+:glob:-guides/index-reference/index-projects/index-changelogs/index+*/index``````{toctree}diff --git a/documentation/ingestion_server/guides/index.md b/documentation/ingestion_server/guides/index.mdnew file mode 100644index 000000000..3cbc02d06--- /dev/null+++ b/documentation/ingestion_server/guides/index.md@@ -0,0 +1,5 @@+# Guides++```{include} ../../_toc_templates/flat.md++```diff --git a/documentation/guides/ingestion_server/quickstart.md b/documentation/ingestion_server/guides/quickstart.mdsimilarity index 76%rename from documentation/guides/ingestion_server/quickstart.mdrename to documentation/ingestion_server/guides/quickstart.mdindex 5e4ac89e9..51f59fdd4 100644--- a/documentation/guides/ingestion_server/quickstart.md+++ b/documentation/ingestion_server/guides/quickstart.md@@ -5,10 +5,10 @@ locally.## Prerequisites-Refer to the [general setup guide](../general_setup.md) for setting up the+Refer to the [general setup guide](/general/general_setup.md) for setting up theprerequisites. Refer to the 'Ingestion server' column in the-[requirement matrix](../general_setup.md#requirement-matrix) to know what you-need to run this.+[requirement matrix](/general/general_setup.md#requirement-matrix) to know what+you need to run this.## Starting up@@ -24,8 +24,8 @@ need to run this.```If you followed the general setup guide and installed- [GitHub CLI](./general_setup.md#github-cli), you can clone more simply using- the `gh` command.+ [GitHub CLI](/general/general_setup.md#github-cli), you can clone more simply+ using the `gh` command.```console$ gh repo clone WordPress/openverse # or your fork@@ -48,4 +48,4 @@ need to run this.## Shutting down-Refer to the [common instructions](../quickstart.md#shutting-down).+Refer to the [common instructions](/general/quickstart.md#shutting-down).diff --git a/documentation/guides/ingestion_server/test.md b/documentation/ingestion_server/guides/test.mdsimilarity index 65%rename from documentation/guides/ingestion_server/test.mdrename to documentation/ingestion_server/guides/test.mdindex 18a9f9553..d1c0ba97e 100644--- a/documentation/guides/ingestion_server/test.md+++ b/documentation/ingestion_server/guides/test.md@@ -4,8 +4,9 @@ Once you've made some changes to the codebase, it is important to run tests.## Steps-1. Ensure you've gone through the [quickstart guide](../quickstart.md). Ensure- that the Docker daemon is running.+1. Ensure you've gone through the+ [quickstart guide](/ingestion_server/guides/quickstart.md). Ensure that the+ Docker daemon is running.2. Install the Python dependencies, including dev-dependencies.@@ -15,7 +16,7 @@ Once you've made some changes to the codebase, it is important to run tests.```{caution}If you experience error installing `psycopg2`, refer to the documentation- about the [OpenSSL prerequisite](../general_setup.md#openssl).+ about the [OpenSSL prerequisite](/general/general_setup.md#openssl).```3. Run the tests.diff --git a/documentation/ingestion_server/index.md b/documentation/ingestion_server/index.mdnew file mode 100644index 000000000..8e7cb295b--- /dev/null+++ b/documentation/ingestion_server/index.md@@ -0,0 +1,5 @@+# Ingestion server++```{include} ../_toc_templates/stack_root.md++```diff --git a/documentation/justfile b/documentation/justfileindex 7182a99d3..0aafa48fa 100644--- a/documentation/justfile+++ b/documentation/justfile@@ -19,7 +19,7 @@ install:########### Serve a live-reload documentation site-live port="50230":+live port="50230": cleanpipenv run sphinx-autobuild -b html . _serve/ --port {{ port }}# Compile the documentation into a static sitediff --git a/documentation/reference/ci_cd/actions.md b/documentation/meta/ci_cd/actions.mdsimilarity index 100%rename from documentation/reference/ci_cd/actions.mdrename to documentation/meta/ci_cd/actions.mddiff --git a/documentation/reference/ci_cd/flow.md b/documentation/meta/ci_cd/flow.mdsimilarity index 100%rename from documentation/reference/ci_cd/flow.mdrename to documentation/meta/ci_cd/flow.mddiff --git a/documentation/reference/ci_cd/index.md b/documentation/meta/ci_cd/index.mdsimilarity index 100%rename from documentation/reference/ci_cd/index.mdrename to documentation/meta/ci_cd/index.mddiff --git a/documentation/reference/ci_cd/jobs/api.md b/documentation/meta/ci_cd/jobs/api.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/api.mdrename to documentation/meta/ci_cd/jobs/api.mddiff --git a/documentation/reference/ci_cd/jobs/catalog.md b/documentation/meta/ci_cd/jobs/catalog.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/catalog.mdrename to documentation/meta/ci_cd/jobs/catalog.mddiff --git a/documentation/reference/ci_cd/jobs/deployment.md b/documentation/meta/ci_cd/jobs/deployment.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/deployment.mdrename to documentation/meta/ci_cd/jobs/deployment.mddiff --git a/documentation/reference/ci_cd/jobs/docker_preparation.md b/documentation/meta/ci_cd/jobs/docker_preparation.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/docker_preparation.mdrename to documentation/meta/ci_cd/jobs/docker_preparation.mddiff --git a/documentation/reference/ci_cd/jobs/docker_publishing.md b/documentation/meta/ci_cd/jobs/docker_publishing.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/docker_publishing.mdrename to documentation/meta/ci_cd/jobs/docker_publishing.mddiff --git a/documentation/reference/ci_cd/jobs/documentation.md b/documentation/meta/ci_cd/jobs/documentation.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/documentation.mdrename to documentation/meta/ci_cd/jobs/documentation.mddiff --git a/documentation/reference/ci_cd/jobs/frontend.md b/documentation/meta/ci_cd/jobs/frontend.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/frontend.mdrename to documentation/meta/ci_cd/jobs/frontend.mddiff --git a/documentation/reference/ci_cd/jobs/index.md b/documentation/meta/ci_cd/jobs/index.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/index.mdrename to documentation/meta/ci_cd/jobs/index.mddiff --git a/documentation/reference/ci_cd/jobs/ingestion_server.md b/documentation/meta/ci_cd/jobs/ingestion_server.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/ingestion_server.mdrename to documentation/meta/ci_cd/jobs/ingestion_server.mddiff --git a/documentation/reference/ci_cd/jobs/notification.md b/documentation/meta/ci_cd/jobs/notification.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/notification.mdrename to documentation/meta/ci_cd/jobs/notification.mddiff --git a/documentation/reference/ci_cd/jobs/preparation.md b/documentation/meta/ci_cd/jobs/preparation.mdsimilarity index 100%rename from documentation/reference/ci_cd/jobs/preparation.mdrename to documentation/meta/ci_cd/jobs/preparation.mddiff --git a/documentation/reference/ci_cd/proof_of_functionality.md b/documentation/meta/ci_cd/proof_of_functionality.mdsimilarity index 100%rename from documentation/reference/ci_cd/proof_of_functionality.mdrename to documentation/meta/ci_cd/proof_of_functionality.mddiff --git a/documentation/reference/decision_making/additional_practices.md b/documentation/meta/decision_making/additional_practices.mdsimilarity index 100%rename from documentation/reference/decision_making/additional_practices.mdrename to documentation/meta/decision_making/additional_practices.mddiff --git a/documentation/reference/decision_making/how_to_use.md b/documentation/meta/decision_making/how_to_use.mdsimilarity index 100%rename from documentation/reference/decision_making/how_to_use.mdrename to documentation/meta/decision_making/how_to_use.mddiff --git a/documentation/reference/decision_making/index.md b/documentation/meta/decision_making/index.mdsimilarity index 86%rename from documentation/reference/decision_making/index.mdrename to documentation/meta/decision_making/index.mdindex a98168201..882ae9c2a 100644--- a/documentation/reference/decision_making/index.md+++ b/documentation/meta/decision_making/index.md@@ -7,10 +7,6 @@ decisions. That is, decisions that are both "good enough for now" and also madequickly. In many ways, this process is a refinement on what was already beingpractised, but with clearer expectations about time and feedback expression.-```{toctree}-:maxdepth: 2+```{include} ../../_toc_templates/flat.md-process_description-additional_practices-how_to_use```diff --git a/documentation/reference/decision_making/process_description.md b/documentation/meta/decision_making/process_description.mdsimilarity index 98%rename from documentation/reference/decision_making/process_description.mdrename to documentation/meta/decision_making/process_description.mdindex c072a5da4..bc0bbf722 100644--- a/documentation/reference/decision_making/process_description.md+++ b/documentation/meta/decision_making/process_description.md@@ -30,8 +30,8 @@ the discretion of the participants.| [Revision round](#revision-round) | Author's discretion | Update the text of the proposal to reflect the outcome of the previous round || [Decision round](#decision-round) | 3 days | Decide whether the proposal can be implemented as is || [Continued revision round](#continued-revision-round) | Author's discretion | Work with participants to revise the text of the proposal to address blockers |-| [Approval](#approval) | N/A | Mark as approved and create issues to implement the proposal |-| [Tabling](#tabling) | N/A | Indicate that a proposal will not be implemented |+| [Approval](#proposal-approval) | N/A | Mark as approved and create issues to implement the proposal |+| [Tabling](#proposal-tabling) | N/A | Indicate that a proposal will not be implemented |### Time spansdiff --git a/documentation/reference/dev_flow.md b/documentation/meta/dev_flow.mdsimilarity index 86%rename from documentation/reference/dev_flow.mdrename to documentation/meta/dev_flow.mdindex daf63a9a9..499936b9f 100644--- a/documentation/reference/dev_flow.md+++ b/documentation/meta/dev_flow.md@@ -2,7 +2,7 @@To contribute code to Openverse, follow the following steps.-1. Complete the [general setup](../guides/general_setup.md) of your development+1. Complete the [general setup](/general/general_setup.md) of your developmentenvironment.2. Fork the repository you want to contribute to. When you make a code change@@ -13,7 +13,7 @@ To contribute code to Openverse, follow the following steps.corner of the page. Click this and GitHub will guide you through the processof forking the repository.-3. Make sure to go through the [quickstart guide](../guides/quickstart.md) to+3. Make sure to go through the [quickstart guide](/general/quickstart.md) tohave your local environment set up and running.4. Work on the issue you've chosen. Check out a new branch from `main`, nameddiff --git a/documentation/guides/documentation/guidelines.md b/documentation/meta/documentation/guidelines.mdsimilarity index 100%rename from documentation/guides/documentation/guidelines.mdrename to documentation/meta/documentation/guidelines.mddiff --git a/documentation/meta/documentation/index.md b/documentation/meta/documentation/index.mdnew file mode 100644index 000000000..bc19e76af--- /dev/null+++ b/documentation/meta/documentation/index.md@@ -0,0 +1,5 @@+# Documentation++```{include} ../../_toc_templates/flat.md++```diff --git a/documentation/guides/documentation/quickstart.md b/documentation/meta/documentation/quickstart.mdsimilarity index 83%rename from documentation/guides/documentation/quickstart.mdrename to documentation/meta/documentation/quickstart.mdindex e96ca87b9..f6efcea3f 100644--- a/documentation/guides/documentation/quickstart.md+++ b/documentation/meta/documentation/quickstart.md@@ -5,10 +5,10 @@ locally.## Prerequisites-Refer to the [general setup guide](../general_setup.md) for setting up the+Refer to the [general setup guide](/general/general_setup.md) for setting up theprerequisites. Refer to the 'Docs' column in the-[requirement matrix](../general_setup.md#requirement-matrix) to know what you-need to run this.+[requirement matrix](/general/general_setup.md#requirement-matrix) to know what+you need to run this.## Starting up@@ -23,8 +23,8 @@ need to run this.```If you followed the general setup guide and installed- [GitHub CLI](./general_setup.md#github-cli), you can clone more simply using- the `gh` command.+ [GitHub CLI](/general/general_setup.md#github-cli), you can clone more simply+ using the `gh` command.```console$ gh repo clone WordPress/openverse # or your forkdiff --git a/documentation/reference/github_contribution_practices.md b/documentation/meta/github_contribution_practices.mdsimilarity index 97%rename from documentation/reference/github_contribution_practices.mdrename to documentation/meta/github_contribution_practices.mdindex e0d2a33e1..1bdf4118b 100644--- a/documentation/reference/github_contribution_practices.md+++ b/documentation/meta/github_contribution_practices.md@@ -42,7 +42,7 @@ or knowledge that contributors might not have.These issues are a subset of [issues wanting help](#help-wanted) that aresmaller in scope, make for a gentle introduction to the code and can be-completed in under ~4 hours (including the [setup](../guides/general_setup.md)).+completed in under ~4 hours (including the [setup](/general/general_setup.md)).```{caution}In reality, the process can take more time if the setup process does not godiff --git a/documentation/meta/index.md b/documentation/meta/index.mdnew file mode 100644index 000000000..fab9b4fea--- /dev/null+++ b/documentation/meta/index.md@@ -0,0 +1,5 @@+# Managing the Openverse++```{include} ../_toc_templates/stack_root.md++```diff --git a/documentation/projects/proposals/3d_model_support/index.md b/documentation/projects/proposals/3d_model_support/index.mdindex 697348d26..9f07e684d 100644--- a/documentation/projects/proposals/3d_model_support/index.md+++ b/documentation/projects/proposals/3d_model_support/index.md@@ -1,8 +1,5 @@# 3D Model Support-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/analytics/index.md b/documentation/projects/proposals/analytics/index.mdindex ee9feb2cc..5c146b6f6 100644--- a/documentation/projects/proposals/analytics/index.md+++ b/documentation/projects/proposals/analytics/index.md@@ -1,8 +1,5 @@# Analytics-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/core_user_interface_improvement/index.md b/documentation/projects/proposals/core_user_interface_improvement/index.mdindex 5a293838b..10b78766d 100644--- a/documentation/projects/proposals/core_user_interface_improvement/index.md+++ b/documentation/projects/proposals/core_user_interface_improvement/index.md@@ -1,8 +1,5 @@# Core User Interface Improvements-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/detecting_sensitive_textual_content/20230308-implementation_plan_filtering_and_designating_results_with_sensitive_textual_content.md b/documentation/projects/proposals/detecting_sensitive_textual_content/20230308-implementation_plan_filtering_and_designating_results_with_sensitive_textual_content.mdindex 966dd652b..358bad767 100644--- a/documentation/projects/proposals/detecting_sensitive_textual_content/20230308-implementation_plan_filtering_and_designating_results_with_sensitive_textual_content.md+++ b/documentation/projects/proposals/detecting_sensitive_textual_content/20230308-implementation_plan_filtering_and_designating_results_with_sensitive_textual_content.md@@ -9,7 +9,7 @@- [Project Thread](https://github.com/WordPress/openverse/issues/377)- [Project Proposal](./20230309-project_proposal_detecting_sensitive_textual_content.md)-- [Milestone (pending)](#)+- [Milestone (pending)](https://github.com/WordPress/openverse/milestone/5)- [Implementation Plan: Managing A Sensitive Terms List](https://github.com/WordPress/openverse/pull/911)Please refer to additional prior art linked in the project thread. The mostdiff --git a/documentation/projects/proposals/document_all_media_properties/index.md b/documentation/projects/proposals/document_all_media_properties/index.mdnew file mode 100644index 000000000..9735cf028--- /dev/null+++ b/documentation/projects/proposals/document_all_media_properties/index.md@@ -0,0 +1,5 @@+# Document all media properties++```{include} /_toc_templates/flat.md++```diff --git a/documentation/projects/proposals/feature_flags/20220309-project_proposal.md b/documentation/projects/proposals/feature_flags/20220309-project_proposal.mdindex 83b5a20f8..8a536f648 100644--- a/documentation/projects/proposals/feature_flags/20220309-project_proposal.md+++ b/documentation/projects/proposals/feature_flags/20220309-project_proposal.md@@ -109,7 +109,7 @@ The feature flag state is determined in two steps.Conf files are JSON files that define the feature flags. Here is a sample ofwhat the schema of this file looks like:-```json5+```js{features: {feature_name_1: {@@ -140,7 +140,7 @@ For flags that are set to switchable in the conf files, we use the state in thecookie to determine whether the flag is set to on or off. This cookie has thefollowing schema.-```json5+```js{features: {feature_name_1: "on",diff --git a/documentation/projects/proposals/feature_flags/index.md b/documentation/projects/proposals/feature_flags/index.mdindex 7d341bf4a..77b858dad 100644--- a/documentation/projects/proposals/feature_flags/index.md+++ b/documentation/projects/proposals/feature_flags/index.md@@ -1,8 +1,5 @@# Feature Flags-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/frontend_ui_state_cookie/index.md b/documentation/projects/proposals/frontend_ui_state_cookie/index.mdindex fd2a54574..227b3210f 100644--- a/documentation/projects/proposals/frontend_ui_state_cookie/index.md+++ b/documentation/projects/proposals/frontend_ui_state_cookie/index.md@@ -1,8 +1,5 @@# Frontend UI State Cookie-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/monitoring/index.md b/documentation/projects/proposals/monitoring/index.mdindex 7a9760f50..1c6f309f8 100644--- a/documentation/projects/proposals/monitoring/index.md+++ b/documentation/projects/proposals/monitoring/index.md@@ -1,8 +1,5 @@# Monitoring-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/monorepo/20221124-project_proposal.md b/documentation/projects/proposals/monorepo/20221124-project_proposal.mdindex 7b80d661b..1a69d5884 100644--- a/documentation/projects/proposals/monorepo/20221124-project_proposal.md+++ b/documentation/projects/proposals/monorepo/20221124-project_proposal.md@@ -94,10 +94,6 @@ The overarching theme is that there are workarounds for everything. We have beenworking with split repos quite productively for over a year. My proposition isthe the monorepo solutions are better than workarounds.-The [integration](#step-4-integration) section in the latter part of the-document describes more interesting outcomes made possible by the monorepo. They-may or may not be exclusive to monorepos but they're surely made easier by it.-## Migration pathFirst we will merge the API and the frontend repos into `WordPress/openverse`.diff --git a/documentation/projects/proposals/monorepo/index.md b/documentation/projects/proposals/monorepo/index.mdindex 95aceb11e..2801ef5a9 100644--- a/documentation/projects/proposals/monorepo/index.md+++ b/documentation/projects/proposals/monorepo/index.md@@ -1,8 +1,5 @@# Monorepo-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/search_relevancy_sandbox/index.md b/documentation/projects/proposals/search_relevancy_sandbox/index.mdindex f894844ca..1c059139e 100644--- a/documentation/projects/proposals/search_relevancy_sandbox/index.md+++ b/documentation/projects/proposals/search_relevancy_sandbox/index.md@@ -1,8 +1,5 @@# Search Relevancy Sandbox-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/trust_and_safety/index.md b/documentation/projects/proposals/trust_and_safety/index.mdindex ba32e2e1d..19a0a4643 100644--- a/documentation/projects/proposals/trust_and_safety/index.md+++ b/documentation/projects/proposals/trust_and_safety/index.md@@ -1,8 +1,5 @@# Trust & Safety-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/visual_regression_testing/index.md b/documentation/projects/proposals/visual_regression_testing/index.mdindex 854371b29..66a02102d 100644--- a/documentation/projects/proposals/visual_regression_testing/index.md+++ b/documentation/projects/proposals/visual_regression_testing/index.md@@ -1,8 +1,5 @@# Visual Regression Testing-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/projects/proposals/vuex_to_pina_conversion/index.md b/documentation/projects/proposals/vuex_to_pina_conversion/index.mdindex 660ec32af..573fdc0c5 100644--- a/documentation/projects/proposals/vuex_to_pina_conversion/index.md+++ b/documentation/projects/proposals/vuex_to_pina_conversion/index.md@@ -1,8 +1,5 @@# Pinia Conversion-```{toctree}-:titlesonly:-:glob:+```{include} /_toc_templates/flat.md-*```diff --git a/documentation/reference/api/index.md b/documentation/reference/api/index.mddeleted file mode 100644index 71d4b5c44..000000000--- a/documentation/reference/api/index.md+++ /dev/null@@ -1,7 +0,0 @@-# API--```{toctree}-:maxdepth: 1--authentication_and_throttling-```diff --git a/documentation/reference/frontend/index.md b/documentation/reference/frontend/index.mddeleted file mode 100644index 498a27ee8..000000000--- a/documentation/reference/frontend/index.md+++ /dev/null@@ -1,7 +0,0 @@-# Frontend--```{toctree}-:maxdepth: 1--feature_flags-```diff --git a/documentation/reference/index.md b/documentation/reference/index.mddeleted file mode 100644index 5362b00c3..000000000--- a/documentation/reference/index.md+++ /dev/null@@ -1,13 +0,0 @@-# Reference--```{toctree}-:maxdepth: 2--github_contribution_practices-decision_making/index-dev_flow-api/index-frontend/index-ci_cd/index-search_algorithm-```