Skip to content

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.yml
index 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 label
uses: docker://agilepathway/pull-request-label-checker:v1.2.13
with:
- 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.md
new file mode 100644
index 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.md
new file mode 100644
index 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.md
new file mode 100644
index 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.md
similarity index 87%
rename from documentation/guides/api/quickstart.md
rename to documentation/api/guides/quickstart.md
index 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 the
prerequisites. 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.md
similarity index 68%
rename from documentation/guides/api/test.md
rename to documentation/api/guides/test.md
index 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.md
new file mode 100644
index 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.md
similarity index 100%
rename from documentation/reference/api/authentication_and_throttling.md
rename to documentation/api/reference/authentication_and_throttling.md
diff --git a/documentation/api/reference/index.md b/documentation/api/reference/index.md
new file mode 100644
index 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.md
similarity index 100%
rename from documentation/reference/search_algorithm.md
rename to documentation/api/reference/search_algorithm.md
diff --git a/documentation/catalog/index.md b/documentation/catalog/index.md
new file mode 100644
index 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.md
index 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.py
index 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 defa
source_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-output
diff --git a/documentation/guides/frontend/analytics.md b/documentation/frontend/guides/analytics.md
similarity index 100%
rename from documentation/guides/frontend/analytics.md
rename to documentation/frontend/guides/analytics.md
diff --git a/documentation/guides/frontend/develop.md b/documentation/frontend/guides/develop.md
similarity index 100%
rename from documentation/guides/frontend/develop.md
rename to documentation/frontend/guides/develop.md
diff --git a/documentation/guides/frontend/goal-conversions.png b/documentation/frontend/guides/goal-conversions.png
similarity index 100%
rename from documentation/guides/frontend/goal-conversions.png
rename to documentation/frontend/guides/goal-conversions.png
diff --git a/documentation/frontend/guides/index.md b/documentation/frontend/guides/index.md
new file mode 100644
index 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.md
similarity index 78%
rename from documentation/guides/frontend/quickstart.md
rename to documentation/frontend/guides/quickstart.md
index 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 the
prerequisites. 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 dev
diff --git a/documentation/guides/frontend/test.md b/documentation/frontend/guides/test.md
similarity index 76%
rename from documentation/guides/frontend/test.md
rename to documentation/frontend/guides/test.md
index 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 visual
regression testing of the app and Storybook components. This guide will help you
run 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.md
new file mode 100644
index 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.md
similarity index 100%
rename from documentation/reference/frontend/feature_flags.md
rename to documentation/frontend/reference/feature_flags.md
diff --git a/documentation/frontend/reference/index.md b/documentation/frontend/reference/index.md
new file mode 100644
index 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.md
similarity index 100%
rename from documentation/guides/frontend/miscellaneous.md
rename to documentation/frontend/reference/miscellaneous.md
diff --git a/documentation/guides/frontend/playwright_tests.md b/documentation/frontend/reference/playwright_tests.md
similarity index 100%
rename from documentation/guides/frontend/playwright_tests.md
rename to documentation/frontend/reference/playwright_tests.md
diff --git a/documentation/guides/frontend/storybook_tests.md b/documentation/frontend/reference/storybook_tests.md
similarity index 100%
rename from documentation/guides/frontend/storybook_tests.md
rename to documentation/frontend/reference/storybook_tests.md
diff --git a/documentation/guides/frontend/testing_guidelines.md b/documentation/frontend/reference/testing_guidelines.md
similarity index 96%
rename from documentation/guides/frontend/testing_guidelines.md
rename to documentation/frontend/reference/testing_guidelines.md
index 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 with
an 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). Then
create a `.env` file by copying the `.env.template` file and update it with the
following:
@@ -186,7 +186,7 @@ page without reloading the page in between. For example, to test the search
route client side, you can execute a search from the homepage and it will
redirect you client-side to the search page.
-## Conclusion
+### Conclusion
Please note that these are non-expert and non-exhaustive recommendations. Spend
time 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 interactions
that exist and are meant to be developed in consistent ways is a good first step
to learning what to look out for when testing.
-# Automated tests
+## Automated tests
Openverse 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) for
instructions 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.md
similarity index 100%
rename from documentation/guides/deployment.md
rename to documentation/general/deployment.md
diff --git a/documentation/guides/general_setup.md b/documentation/general/general_setup.md
similarity index 100%
rename from documentation/guides/general_setup.md
rename to documentation/general/general_setup.md
diff --git a/documentation/guides/https.md b/documentation/general/https.md
similarity index 100%
rename from documentation/guides/https.md
rename to documentation/general/https.md
diff --git a/documentation/general/index.md b/documentation/general/index.md
new file mode 100644
index 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.md
similarity index 100%
rename from documentation/guides/logging.md
rename to documentation/general/logging.md
diff --git a/documentation/guides/publish.md b/documentation/general/publish.md
similarity index 100%
rename from documentation/guides/publish.md
rename to documentation/general/publish.md
diff --git a/documentation/guides/quickstart.md b/documentation/general/quickstart.md
similarity index 93%
rename from documentation/guides/quickstart.md
rename to documentation/general/quickstart.md
index 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 the
stack. In such cases, you might find it more beneficial to go through one of
these 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 stack
locally, 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 the
prerequisites.
## 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 fork
diff --git a/documentation/guides/run.md b/documentation/general/run.md
similarity index 100%
rename from documentation/guides/run.md
rename to documentation/general/run.md
diff --git a/documentation/guides/test.md b/documentation/general/test.md
similarity index 100%
rename from documentation/guides/test.md
rename to documentation/general/test.md
diff --git a/documentation/guides/zero-downtime-database-management.md b/documentation/general/zero-downtime-database-management.md
similarity index 99%
rename from documentation/guides/zero-downtime-database-management.md
rename to documentation/general/zero-downtime-database-management.md
index 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 automatically
updated for the running application. This means that if a deployment was very
carefully orchestrated, we do not necessarily need to worry about backwards
incompatible 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 the
template before rolling back).
diff --git a/documentation/guides/api/develop.md b/documentation/guides/api/develop.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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.md
index 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
+# Documentation
To 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 the
Openverse 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.md
new file mode 100644
index 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.md
similarity index 76%
rename from documentation/guides/ingestion_server/quickstart.md
rename to documentation/ingestion_server/guides/quickstart.md
index 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 the
prerequisites. 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.md
similarity index 65%
rename from documentation/guides/ingestion_server/test.md
rename to documentation/ingestion_server/guides/test.md
index 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.md
new file mode 100644
index 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/justfile
index 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": clean
pipenv run sphinx-autobuild -b html . _serve/ --port {{ port }}
# Compile the documentation into a static site
diff --git a/documentation/reference/ci_cd/actions.md b/documentation/meta/ci_cd/actions.md
similarity index 100%
rename from documentation/reference/ci_cd/actions.md
rename to documentation/meta/ci_cd/actions.md
diff --git a/documentation/reference/ci_cd/flow.md b/documentation/meta/ci_cd/flow.md
similarity index 100%
rename from documentation/reference/ci_cd/flow.md
rename to documentation/meta/ci_cd/flow.md
diff --git a/documentation/reference/ci_cd/index.md b/documentation/meta/ci_cd/index.md
similarity index 100%
rename from documentation/reference/ci_cd/index.md
rename to documentation/meta/ci_cd/index.md
diff --git a/documentation/reference/ci_cd/jobs/api.md b/documentation/meta/ci_cd/jobs/api.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/api.md
rename to documentation/meta/ci_cd/jobs/api.md
diff --git a/documentation/reference/ci_cd/jobs/catalog.md b/documentation/meta/ci_cd/jobs/catalog.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/catalog.md
rename to documentation/meta/ci_cd/jobs/catalog.md
diff --git a/documentation/reference/ci_cd/jobs/deployment.md b/documentation/meta/ci_cd/jobs/deployment.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/deployment.md
rename to documentation/meta/ci_cd/jobs/deployment.md
diff --git a/documentation/reference/ci_cd/jobs/docker_preparation.md b/documentation/meta/ci_cd/jobs/docker_preparation.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/docker_preparation.md
rename to documentation/meta/ci_cd/jobs/docker_preparation.md
diff --git a/documentation/reference/ci_cd/jobs/docker_publishing.md b/documentation/meta/ci_cd/jobs/docker_publishing.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/docker_publishing.md
rename to documentation/meta/ci_cd/jobs/docker_publishing.md
diff --git a/documentation/reference/ci_cd/jobs/documentation.md b/documentation/meta/ci_cd/jobs/documentation.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/documentation.md
rename to documentation/meta/ci_cd/jobs/documentation.md
diff --git a/documentation/reference/ci_cd/jobs/frontend.md b/documentation/meta/ci_cd/jobs/frontend.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/frontend.md
rename to documentation/meta/ci_cd/jobs/frontend.md
diff --git a/documentation/reference/ci_cd/jobs/index.md b/documentation/meta/ci_cd/jobs/index.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/index.md
rename to documentation/meta/ci_cd/jobs/index.md
diff --git a/documentation/reference/ci_cd/jobs/ingestion_server.md b/documentation/meta/ci_cd/jobs/ingestion_server.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/ingestion_server.md
rename to documentation/meta/ci_cd/jobs/ingestion_server.md
diff --git a/documentation/reference/ci_cd/jobs/notification.md b/documentation/meta/ci_cd/jobs/notification.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/notification.md
rename to documentation/meta/ci_cd/jobs/notification.md
diff --git a/documentation/reference/ci_cd/jobs/preparation.md b/documentation/meta/ci_cd/jobs/preparation.md
similarity index 100%
rename from documentation/reference/ci_cd/jobs/preparation.md
rename to documentation/meta/ci_cd/jobs/preparation.md
diff --git a/documentation/reference/ci_cd/proof_of_functionality.md b/documentation/meta/ci_cd/proof_of_functionality.md
similarity index 100%
rename from documentation/reference/ci_cd/proof_of_functionality.md
rename to documentation/meta/ci_cd/proof_of_functionality.md
diff --git a/documentation/reference/decision_making/additional_practices.md b/documentation/meta/decision_making/additional_practices.md
similarity index 100%
rename from documentation/reference/decision_making/additional_practices.md
rename to documentation/meta/decision_making/additional_practices.md
diff --git a/documentation/reference/decision_making/how_to_use.md b/documentation/meta/decision_making/how_to_use.md
similarity index 100%
rename from documentation/reference/decision_making/how_to_use.md
rename to documentation/meta/decision_making/how_to_use.md
diff --git a/documentation/reference/decision_making/index.md b/documentation/meta/decision_making/index.md
similarity index 86%
rename from documentation/reference/decision_making/index.md
rename to documentation/meta/decision_making/index.md
index 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 made
quickly. In many ways, this process is a refinement on what was already being
practised, 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.md
similarity index 98%
rename from documentation/reference/decision_making/process_description.md
rename to documentation/meta/decision_making/process_description.md
index 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 spans
diff --git a/documentation/reference/dev_flow.md b/documentation/meta/dev_flow.md
similarity index 86%
rename from documentation/reference/dev_flow.md
rename to documentation/meta/dev_flow.md
index 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 development
environment.
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 process
of 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) to
have your local environment set up and running.
4. Work on the issue you've chosen. Check out a new branch from `main`, named
diff --git a/documentation/guides/documentation/guidelines.md b/documentation/meta/documentation/guidelines.md
similarity index 100%
rename from documentation/guides/documentation/guidelines.md
rename to documentation/meta/documentation/guidelines.md
diff --git a/documentation/meta/documentation/index.md b/documentation/meta/documentation/index.md
new file mode 100644
index 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.md
similarity index 83%
rename from documentation/guides/documentation/quickstart.md
rename to documentation/meta/documentation/quickstart.md
index 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 the
prerequisites. 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 fork
diff --git a/documentation/reference/github_contribution_practices.md b/documentation/meta/github_contribution_practices.md
similarity index 97%
rename from documentation/reference/github_contribution_practices.md
rename to documentation/meta/github_contribution_practices.md
index 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 are
smaller 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 go
diff --git a/documentation/meta/index.md b/documentation/meta/index.md
new file mode 100644
index 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.md
index 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.md
index 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.md
index 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.md
index 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 most
diff --git a/documentation/projects/proposals/document_all_media_properties/index.md b/documentation/projects/proposals/document_all_media_properties/index.md
new file mode 100644
index 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.md
index 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 of
what 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 the
cookie to determine whether the flag is set to on or off. This cookie has the
following 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.md
index 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.md
index 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.md
index 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.md
index 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 been
working with split repos quite productively for over a year. My proposition is
the 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 path
First 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.md
index 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.md
index 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.md
index 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.md
index 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.md
index 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.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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.md
deleted file mode 100644
index 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
-```