Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix documentation rate limiting and formatting issues; fail docs build in CI if docs build has warnings (#1973)

sarayourfriend2e82df0105a9
diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml
index 163e150a9..5b70a0da1 100644
--- a/.github/actions/build-docs/action.yml
+++ b/.github/actions/build-docs/action.yml
@@ -10,13 +10,20 @@ inputs:
required: true
description: The password for the GlotPress account for bulk download
+ github_token:
+ required: true
+ description: GitHub token to use for issue link resolution in documentation
+
runs:
using: "composite"
steps:
- name: Build Sphinx
shell: bash
+ env:
+ LINK_ISSUES_GITHUB_TOKEN: ${{ inputs.github_token }}
run: |
- just documentation/build
+ # Pass -W to fail CI if warnings exist
+ just documentation/build -W
- name: Install translations
shell: bash
diff --git a/.github/release-drafter-api.yml b/.github/release-drafter-api.yml
index 2e6e2961b..5285f9e3d 100644
--- a/.github/release-drafter-api.yml
+++ b/.github/release-drafter-api.yml
@@ -14,7 +14,7 @@ categories:
- title: Bug Fixes
label: "๐Ÿ›  goal: fix"
# Identical to the default except it uses `-` instead of `*` to match our Markdown linter
-change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
+change-template: "- [$TITLE (#$NUMBER)](https://github.com/WordPress/openverse/pull/$NUMBER) by @$AUTHOR"
exclude-labels:
- "skip-changelog"
include-labels:
diff --git a/.github/release-drafter-catalog.yml b/.github/release-drafter-catalog.yml
index e048781a3..afe6adb1b 100644
--- a/.github/release-drafter-catalog.yml
+++ b/.github/release-drafter-catalog.yml
@@ -14,7 +14,7 @@ categories:
- title: Bug Fixes
label: "๐Ÿ›  goal: fix"
# Identical to the default except it uses `-` instead of `*` to match our Markdown linter
-change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
+change-template: "- [$TITLE (#$NUMBER)](https://github.com/WordPress/openverse/pull/$NUMBER) by @$AUTHOR"
exclude-labels:
- "skip-changelog"
include-labels:
diff --git a/.github/release-drafter-frontend.yml b/.github/release-drafter-frontend.yml
index 251b3f925..002eb81f9 100644
--- a/.github/release-drafter-frontend.yml
+++ b/.github/release-drafter-frontend.yml
@@ -14,7 +14,7 @@ categories:
- title: Bug Fixes
label: "๐Ÿ›  goal: fix"
# Identical to the default except it uses `-` instead of `*` to match our Markdown linter
-change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
+change-template: "- [$TITLE (#$NUMBER)](https://github.com/WordPress/openverse/pull/$NUMBER) by @$AUTHOR"
exclude-labels:
- "skip-changelog"
include-labels:
diff --git a/.github/release-drafter-ingestion_server.yml b/.github/release-drafter-ingestion_server.yml
index 576fc63b1..6de50078d 100644
--- a/.github/release-drafter-ingestion_server.yml
+++ b/.github/release-drafter-ingestion_server.yml
@@ -14,7 +14,7 @@ categories:
- title: Bug Fixes
label: "๐Ÿ›  goal: fix"
# Identical to the default except it uses `-` instead of `*` to match our Markdown linter
-change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
+change-template: "- [$TITLE (#$NUMBER)](https://github.com/WordPress/openverse/pull/$NUMBER) by @$AUTHOR"
exclude-labels:
- "skip-changelog"
include-labels:
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 130e8ced4..77302205c 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -706,6 +706,7 @@ jobs:
with:
glotpress_username: ${{ secrets.MAKE_USERNAME }}
glotpress_password: ${{ secrets.MAKE_LOGIN_PASSWORD }}
+ github_token: ${{ secrets.GITHUB_TOKEN }}
# Docs will be located at `/tmp/docs`.
- name: Recreate working directory # to avoid superfluous files from getting tracked automatically
diff --git a/documentation/_ext/link_issues.py b/documentation/_ext/link_issues.py
index fa82d1af8..30ce6854b 100644
--- a/documentation/_ext/link_issues.py
+++ b/documentation/_ext/link_issues.py
@@ -20,8 +20,14 @@ Changes by Tony Narlock (2022-08-21):
Subclassed / typed BuildEnvironment with .tracker_config
- Just GitHub (for demonstration)
+
+Changes by Openverse Contributors:
+- 2023-05-02
+
+ Add GitHub token to prevent rate limiting
"""
import dataclasses
+import os
import re
import time
import typing as t
@@ -265,7 +271,11 @@ def check_project_with_username(tracker_config: TrackerConfig) -> None:
raise ValueError(f"username missing in project name: {tracker_config.project}")
-HEADERS = {"User-Agent": "sphinxcontrib-issuetracker v{}".format("1.0")}
+GITHUB_TOKEN = os.getenv("LINK_ISSUES_GITHUB_TOKEN")
+
+HEADERS = {
+ "User-Agent": "sphinxcontrib-issuetracker v{}".format("1.0"),
+} | ({"Authorization": f"Bearer {GITHUB_TOKEN}"} if GITHUB_TOKEN else {})
def get(app: Sphinx, url: str) -> t.Optional[requests.Response]:
@@ -294,6 +304,20 @@ def lookup_github_issue(
env = app.env
if is_issuetracker_env(env):
+ if not GITHUB_TOKEN:
+ # If there is no GitHub token, bypass resolving issues entirely
+ # to prevent rate limiting and requests from slowing down what
+ # is probably local development.
+ # See https://docs.openverse.org/meta/documentation/link_issues.html for
+ # further details.
+ url = f"https://github.com/{tracker_config.project}/issues/{issue_id}"
+ return Issue(
+ id=issue_id,
+ title="No GitHub Token present; could not resolve issue title.",
+ url=url,
+ closed=False,
+ )
+
# Get rate limit information from the environment
timestamp, limit_hit = getattr(env, "github_rate_limit", (0, False))
diff --git a/documentation/_toc_templates/flat.md b/documentation/_toc_templates/flat.md
deleted file mode 100644
index 3485702b2..000000000
--- a/documentation/_toc_templates/flat.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-suppress_warnings: ["toc.circular"]
----
-
-```{toctree}
-:maxdepth: 1
-:glob:
-
-*
-```
diff --git a/documentation/api/guides/index.md b/documentation/api/guides/index.md
index 3cbc02d06..5042a4da7 100644
--- a/documentation/api/guides/index.md
+++ b/documentation/api/guides/index.md
@@ -1,5 +1,8 @@
# Guides
-```{include} ../../_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+quickstart
+test
```
diff --git a/documentation/api/index.md b/documentation/api/index.md
index 2bcadfeb0..8aa778c24 100644
--- a/documentation/api/index.md
+++ b/documentation/api/index.md
@@ -4,6 +4,10 @@ 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
+```{toctree}
+:titlesonly:
+:maxdepth: 2
+:glob:
+*/index
```
diff --git a/documentation/api/reference/index.md b/documentation/api/reference/index.md
index a20daaa20..88a9498ea 100644
--- a/documentation/api/reference/index.md
+++ b/documentation/api/reference/index.md
@@ -1,5 +1,8 @@
# Reference
-```{include} ../../_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+search_algorithm
+authentication_and_throttling
```
diff --git a/documentation/catalog/index.md b/documentation/catalog/index.md
index ec49a627a..052f2b194 100644
--- a/documentation/catalog/index.md
+++ b/documentation/catalog/index.md
@@ -1,5 +1,3 @@
# Airflow catalog
-```{include} ../_toc_templates/stack_root.md
-
-```
+<!-- Add a toctree once documentation is added here. -->
diff --git a/documentation/changelogs/index.md b/documentation/changelogs/index.md
index 5a3c04f90..0921ce513 100644
--- a/documentation/changelogs/index.md
+++ b/documentation/changelogs/index.md
@@ -8,6 +8,10 @@ type of change. The documents are generated using the
[`release-drafter`](https://github.com/release-drafter/release-drafter)
workflow.
-```{include} ../_toc_templates/stack_root.md
+```{toctree}
+:titlesonly:
+:maxdepth: 2
+:glob:
+*/index
```
diff --git a/documentation/changelogs/ingestion_server/index.md b/documentation/changelogs/ingestion_server/index.md
index 985d59f9d..c70619cb7 100644
--- a/documentation/changelogs/ingestion_server/index.md
+++ b/documentation/changelogs/ingestion_server/index.md
@@ -2,6 +2,15 @@
Changelogs for the internal ingestion server service.
+<!--
+
+Because there are no ingestion server changelogs yet, we need to comment
+this toctree directive out or the build fails due to warnings of unmatched
+files. Luckily, the first time a changelog is added, the build will fail
+due to the new changelog file not being included in the toc tree. At that
+point, whoever is revieweing the changelog PR should uncomment this
+toctree and remove this block of text.
+
```{toctree}
:glob:
:reversed:
@@ -9,3 +18,4 @@ Changelogs for the internal ingestion server service.
*
```
+-->
diff --git a/documentation/conf.py b/documentation/conf.py
index 7505a700e..c11c67473 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -37,8 +37,13 @@ myst_heading_anchors = 6 # Add anchors to all headers, this is disabled by defa
source_suffix = {".rst": "restructuredtext", ".md": "markdown"}
-templates = ["_toc_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".venv"]
+suppress_warnings = [
+ # Pygments does not fully support language features we use
+ # in code blocks in the documentation. Unfortunately the best
+ # way to deal with that is to just ignore highlighting failures.
+ "misc.highlighting_failure",
+]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
diff --git a/documentation/guides/frontend/icons.md b/documentation/frontend/guides/icons.md
similarity index 100%
rename from documentation/guides/frontend/icons.md
rename to documentation/frontend/guides/icons.md
diff --git a/documentation/frontend/guides/index.md b/documentation/frontend/guides/index.md
index 3cbc02d06..979581e6f 100644
--- a/documentation/frontend/guides/index.md
+++ b/documentation/frontend/guides/index.md
@@ -1,5 +1,11 @@
# Guides
-```{include} ../../_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+quickstart
+develop
+test
+analytics
+icons
```
diff --git a/documentation/frontend/index.md b/documentation/frontend/index.md
index 48148a031..ed18b3c37 100644
--- a/documentation/frontend/index.md
+++ b/documentation/frontend/index.md
@@ -1,5 +1,9 @@
# Nuxt frontend
-```{include} ../_toc_templates/stack_root.md
+```{toctree}
+:titlesonly:
+:maxdepth: 2
+:glob:
+*/index
```
diff --git a/documentation/frontend/reference/index.md b/documentation/frontend/reference/index.md
index a20daaa20..f67ff7b97 100644
--- a/documentation/frontend/reference/index.md
+++ b/documentation/frontend/reference/index.md
@@ -1,5 +1,11 @@
# Reference
-```{include} ../../_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+feature_flags
+testing_guidelines
+playwright_tests
+storybook_tests
+miscellaneous
```
diff --git a/documentation/general/index.md b/documentation/general/index.md
index ae7d7eaec..54101081a 100644
--- a/documentation/general/index.md
+++ b/documentation/general/index.md
@@ -1,5 +1,16 @@
# General development guidelines
-```{include} ../_toc_templates/stack_root.md
+```{toctree}
+:titlesonly:
+
+general_setup
+quickstart
+run
+test
+publish
+zero_downtime_database_management
+deployment
+logging
+https
```
diff --git a/documentation/general/zero-downtime-database-management.md b/documentation/general/zero_downtime_database_management.md
similarity index 100%
rename from documentation/general/zero-downtime-database-management.md
rename to documentation/general/zero_downtime_database_management.md
diff --git a/documentation/ingestion_server/guides/index.md b/documentation/ingestion_server/guides/index.md
index 3cbc02d06..5042a4da7 100644
--- a/documentation/ingestion_server/guides/index.md
+++ b/documentation/ingestion_server/guides/index.md
@@ -1,5 +1,8 @@
# Guides
-```{include} ../../_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+quickstart
+test
```
diff --git a/documentation/ingestion_server/index.md b/documentation/ingestion_server/index.md
index 8e7cb295b..070406d79 100644
--- a/documentation/ingestion_server/index.md
+++ b/documentation/ingestion_server/index.md
@@ -1,5 +1,9 @@
# Ingestion server
-```{include} ../_toc_templates/stack_root.md
+```{toctree}
+:titlesonly:
+:maxdepth: 2
+:glob:
+*/index
```
diff --git a/documentation/justfile b/documentation/justfile
index 0aafa48fa..83c7d2486 100644
--- a/documentation/justfile
+++ b/documentation/justfile
@@ -23,8 +23,8 @@ live port="50230": clean
pipenv run sphinx-autobuild -b html . _serve/ --port {{ port }}
# Compile the documentation into a static site
-build:
- pipenv run sphinx-build -b html . _build/
+build +args="":
+ pipenv run sphinx-build {{ args }} -b html . _build/
# Serve the compiled docs using a simple HTTP server
serve port="50231":
diff --git a/documentation/meta/ci_cd/actions.md b/documentation/meta/ci_cd/actions.md
index e896983ce..4b34624a3 100644
--- a/documentation/meta/ci_cd/actions.md
+++ b/documentation/meta/ci_cd/actions.md
@@ -24,7 +24,7 @@ speed and to avoid wasteful consumption of resources.
## `setup-env`
Sets up the runtime environment for a job. It sets up our task runner of choice,
-[`just`](../guides/general_setup.md#just) and also the specified languages and
+[`just`](/general/general_setup.md#just) and also the specified languages and
their respective package managers.
- Python (and Pipenv)
@@ -53,9 +53,10 @@ host dependencies are needed).
## `load-img`
All Docker images needed throughout the CI + CD workflow are built by the
-[`build-images`](#build-images) job matrix, saved as `.tar` files and uploaded
-as artifacts. This action is used by subsequent jobs that need those images. It
-downloads the artifact and load the `.tar` files into Docker as images.
+[`build-images`](/meta/ci_cd/jobs/docker_preparation.md#build-images) job
+matrix, saved as `.tar` files and uploaded as artifacts. This action is used by
+subsequent jobs that need those images. It downloads the artifact and load the
+`.tar` files into Docker as images.
**Inputs:**
@@ -74,7 +75,7 @@ input, passing a space-separated list of image names.
Builds the documentation, including this Sphinx site, the frontend Storybook and
the Tailwind config viewer and stores it at `/tmp/docs`. This compiled
documentation is deployed to an appropriate location by the
-[`emit-docs`](#emit-docs) job.
+[`emit-docs`](/meta/ci_cd/jobs/documentation.md#emit-docs) job.
**Inputs:**
diff --git a/documentation/meta/ci_cd/index.md b/documentation/meta/ci_cd/index.md
index 249446dc4..9b8dac4ea 100644
--- a/documentation/meta/ci_cd/index.md
+++ b/documentation/meta/ci_cd/index.md
@@ -21,28 +21,30 @@ of these, "documentation" is also applicable to PRs.
pushed to `main` that affects the documentation, the documentation is built
and deployed to the [root of the docs site](https://docs.openverse.org).
- See job [`emit-docs`](#emit-docs) for details.
+ See job [`emit-docs`](/meta/ci_cd/jobs/documentation.md#emit-docs) for
+ details.
- **Docker images:** When a new commit is pushed to `main`, the Docker image for
each of the affected services is pushed to
[GHCR](https://github.com/orgs/WordPress/packages?repo_name=openverse). These
images are tagged with the SHA of the commit.
- See job [`publish-images`](#publish-images).
+ See job
+ [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images).
- **Frontend staging:** When a new commit is pushed to `main` which affects the
frontend service and the tests for the frontend pass, a new
[staging deployment of the frontend](https://staging.openverse.org/) is
triggered. The deployment uses the image published above.
- See job [`deploy-frontend`](#deploy-frontend).
+ See job [`deploy-frontend`](/meta/ci_cd/jobs/deployment.md#deploy-frontend).
- **API staging:** When a new commit is pushed to `main` which affects the API
service and the tests for the API pass, a new
[staging deployment of the API](https://api-staging.openverse.engineering/) is
triggered. The deployment uses the image published above.
- See job [`deploy-api`](#deploy-api).
+ See job [`deploy-api`](/meta/ci_cd/jobs/deployment.md#deploy-api).
## Workflow components
diff --git a/documentation/meta/ci_cd/jobs/api.md b/documentation/meta/ci_cd/jobs/api.md
index 1d77e6024..e77b12a73 100644
--- a/documentation/meta/ci_cd/jobs/api.md
+++ b/documentation/meta/ci_cd/jobs/api.md
@@ -13,12 +13,12 @@ flowchart TB
The API flow uses the following other jobs.
-- [`get-changes`](./helpers.md#get-changes)
-- [`determine-images`](./docker.md#determine-images)
-- [`get-image-tag`](./helpers.md#get-image-tag)
-- [`lint`](./helpers.md#lint)
-- [`build-images`](./docker.md#build-images)
-- [`publish-images`](./docker.md#publish-images)
+- [`get-changes`](/meta/ci_cd/jobs/preparation.md#get-changes)
+- [`determine-images`](/meta/ci_cd/jobs/docker_preparation.md#determine-images)
+- [`get-image-tag`](/meta/ci_cd/jobs/preparation.md#get-image-tag)
+- `lint`
+- [`build-images`](/meta/ci_cd/jobs/docker_preparation.md#build-images)
+- [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images)
## `test-api`
@@ -27,8 +27,10 @@ the `api/test` recipe. Tests are run inside a Docker container so neither Python
nor Node.js needs to be installed.
This job is skipped if the API codebase has not changed. Its counterparts are
-[`test-cat`](#test-cat) for the catalog, [`test-ing`](#test-ing) for the
-ingestion server and [`nuxt-build`](#nuxt-build) for the frontend.
+[`test-cat`](/meta/ci_cd/jobs/catalog.md#test-cat) for the catalog,
+[`test-ing`](/meta/ci_cd/jobs/ingestion_server.md#test-ing) for the ingestion
+server and [`nuxt-build`](/meta/ci_cd/jobs/frontend.md#nuxt-build) for the
+frontend.
```{note}
This job is treated as the proof of functionality for publishing Docker images
@@ -48,7 +50,7 @@ recipes.
- `api/doc-test`
This job is skipped if the API codebase has not changed. Its counterpart is
-[`nuxt-checks`](#nuxt-checks) for the frontend.
+[`nuxt-checks`](/meta/ci_cd/jobs/frontend.md#nuxt-checks) for the frontend.
Since this is a required check for a matrix job, it has a bypass counterpart.
-Refer to the documentation for [bypass jobs](#bypass-jobs).
+Refer to the documentation for [bypass jobs](/meta/ci_cd/flow.md#bypass-jobs).
diff --git a/documentation/meta/ci_cd/jobs/catalog.md b/documentation/meta/ci_cd/jobs/catalog.md
index 63ef9e6ae..1617e87ca 100644
--- a/documentation/meta/ci_cd/jobs/catalog.md
+++ b/documentation/meta/ci_cd/jobs/catalog.md
@@ -6,8 +6,9 @@ Runs tests for the catalog using the `catalog/test` recipe. Tests are run inside
a Docker container so neither Python nor Node.js needs to be installed.
This job is skipped if the catalog codebase has not changed. Its counterparts
-are [`test-ing`](#test-ing) for the ingestion server, [`test-api`](#test-api)
-for the API and [`nuxt-build`](#nuxt-build) for the frontend.
+are [`test-ing`](/meta/ci_cd/jobs/ingestion_server.md#test-ing) for the
+ingestion server, [`test-api`](/meta/ci_cd/jobs/api.md#test-api) for the API and
+[`nuxt-build`](/meta/ci_cd/jobs/frontend.md#nuxt-build) for the frontend.
```{note}
This job is treated as the proof of functionality for publishing Docker images
@@ -19,6 +20,7 @@ for the catalog.
Runs tests for the catalog using the `catalog/generate-dag-docs` recipe. The job
runs inside a Docker container so Python does not need to be installed. However,
the job generates a new documentation page that must be linted, so
-[`setup-env`](#setup-env) in invoked to set up Node.js and linting dependencies.
+[`setup-env`](/meta/ci_cd/actions.md#setup-env) in invoked to set up Node.js and
+linting dependencies.
This job is skipped if the catalog codebase has not changed.
diff --git a/documentation/meta/ci_cd/jobs/deployment.md b/documentation/meta/ci_cd/jobs/deployment.md
index 77360de0f..9d6e31db2 100644
--- a/documentation/meta/ci_cd/jobs/deployment.md
+++ b/documentation/meta/ci_cd/jobs/deployment.md
@@ -6,17 +6,19 @@ Triggers a separate workflow using `workflow_dispatch` that deploys the staging
environment of the API service to AWS ECS. That workflow is given two inputs.
- the tag of the image that was published by the
- [`publish-images`](#publish-images) job, which is the output of the
- [`get-image-tag`](#get-image-tag) job
+ [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images) job,
+ which is the output of the
+ [`get-image-tag`](/meta/ci_cd/jobs/preparation.md#get-image-tag) job
- the actor of the CI + CD workflow, for tagging them in Slack messages
This deployment is only triggered if all the following conditions are met.
- the API codebase has changed
-- the [`publish-images`](#publish-images) job has passed, publishing the latest
- frontend image to GHCR
- - The fact that [`publish-images`](#publish-images) ran implies
- [`test-api`](#test-api) passed.
+- the [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images)
+ job has passed, publishing the latest frontend image to GHCR
+ - The fact that
+ [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images) ran
+ implies [`test-api`](/meta/ci_cd/jobs/api.md#test-api) passed.
## `deploy-frontend`
@@ -25,16 +27,18 @@ environment of the frontend service to AWS ECS. That workflow is given two
inputs.
- the tag of the image that was published by the
- [`publish-images`](#publish-images) job, which is the output of the
- [`get-image-tag`](#get-image-tag) job
+ [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images) job,
+ which is the output of the
+ [`get-image-tag`](/meta/ci_cd/jobs/preparation.md#get-image-tag) job
- the actor of the CI + CD workflow, for tagging them in Slack messages
This deployment is only triggered if all the following conditions are met.
- the frontend codebase has changed
-- the [`playwright`](#playwright) job has passed, implying no visual regressions
- have occurred
-- the [`publish-images`](#publish-images) job has passed, publishing the latest
- frontend image to GHCR
- - The fact that [`publish-images`](#publish-images) ran implies
- [`nuxt-build`](#nuxt-build) passed.
+- the [`playwright`](/meta/ci_cd/jobs/frontend.md#playwright) job has passed,
+ implying no visual regressions have occurred
+- the [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images)
+ job has passed, publishing the latest frontend image to GHCR
+ - The fact that
+ [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images) ran
+ implies [`nuxt-build`](/meta/ci_cd/jobs/frontend.md#nuxt-build) passed.
diff --git a/documentation/meta/ci_cd/jobs/docker_preparation.md b/documentation/meta/ci_cd/jobs/docker_preparation.md
index 626d9be90..9a96bd5a0 100644
--- a/documentation/meta/ci_cd/jobs/docker_preparation.md
+++ b/documentation/meta/ci_cd/jobs/docker_preparation.md
@@ -69,7 +69,8 @@ arguments have no effect, the job simply populates all build arguments needed by
all images.
Images built by this job are published as `.tar` artifacts and can be loaded
-into other jobs that need them using the [`load-img`](#load-img) action.
+into other jobs that need them using the
+[`load-img`](/meta/ci_cd/actions.md#load-img) action.
This job is only run if there is at least one image needed to build, based on
the `do_build` output of the [`determine-images`](#determine-images) job.
diff --git a/documentation/meta/ci_cd/jobs/docker_publishing.md b/documentation/meta/ci_cd/jobs/docker_publishing.md
index 99bf32ff3..7d6e75143 100644
--- a/documentation/meta/ci_cd/jobs/docker_publishing.md
+++ b/documentation/meta/ci_cd/jobs/docker_publishing.md
@@ -3,9 +3,10 @@
## `publish-images`
Publishes images to GHCR as dictated by the
-[`determine-images`](#determine-images) job. In a matrix, this job downloads the
-images to be published from their `.tar` files using the [`load-img`](#load-img)
-job and then tags and pushes them to
+[`determine-images`](/meta/ci_cd/jobs/docker_preparation.md#determine-images)
+job. In a matrix, this job downloads the images to be published from their
+`.tar` files using the [`load-img`](/meta/ci_cd/actions.md#load-img) job and
+then tags and pushes them to
[GHCR](https://github.com/orgs/WordPress/packages?repo_name=openverse).
Images are only published if all the following conditions are met.
@@ -13,7 +14,11 @@ Images are only published if all the following conditions are met.
- the event is a push to `main`
- the repo is `WordPress/openverse` and not a fork
- there is at least one image to publish as per the `do_publish` output of the
- [`determine-images`](#determine-images) job
-- all the primary tests ([`test-cat`](#test-cat), [`test-ing`](#test-ing),
- [`test-api`](#test-api), [`nuxt-build`](#nuxt-build)) succeeded, implying that
- their changes are valid, or were skipped, implying that they have no changes.
+ [`determine-images`](/meta/ci_cd/jobs/docker_preparation.md#determine-images)
+ job
+- all the primary tests ([`test-cat`](/meta/ci_cd/jobs/catalog.md#test-cat),
+ [`test-ing`](/meta/ci_cd/jobs/ingestion_server.md#test-ing),
+ [`test-api`](/meta/ci_cd/jobs/api.md#test-api),
+ [`nuxt-build`](/meta/ci_cd/jobs/frontend.md#nuxt-build)) succeeded, implying
+ that their changes are valid, or were skipped, implying that they have no
+ changes.
diff --git a/documentation/meta/ci_cd/jobs/documentation.md b/documentation/meta/ci_cd/jobs/documentation.md
index 77eda87bf..6ab337038 100644
--- a/documentation/meta/ci_cd/jobs/documentation.md
+++ b/documentation/meta/ci_cd/jobs/documentation.md
@@ -26,9 +26,12 @@ Documentation is only emitted if all the following conditions are met.
- the author of the PR is not Dependabot
- either the documentation or the frontend has changed (for the Storybook and
Tailwind Config Viewer)
-- all the primary tests ([`test-cat`](#test-cat), [`test-ing`](#test-ing),
- [`test-api`](#test-api), [`nuxt-build`](#nuxt-build)) succeeded, implying that
- their changes are valid, or were skipped, implying that they have no changes.
+- all the primary tests ([`test-cat`](/meta/ci_cd/jobs/catalog.md#test-cat),
+ [`test-ing`](/meta/ci_cd/jobs/ingestion_server.md#test-ing),
+ [`test-api`](/meta/ci_cd/jobs/api.md#test-api),
+ [`nuxt-build`](/meta/ci_cd/jobs/frontend.md#nuxt-build)) succeeded, implying
+ that their changes are valid, or were skipped, implying that they have no
+ changes.
## `clean-gh-pages`
diff --git a/documentation/meta/ci_cd/jobs/frontend.md b/documentation/meta/ci_cd/jobs/frontend.md
index 276717a27..5210389af 100644
--- a/documentation/meta/ci_cd/jobs/frontend.md
+++ b/documentation/meta/ci_cd/jobs/frontend.md
@@ -19,10 +19,10 @@ Node.js scripts.
- `storybook:smoke`
This job is skipped if the frontend codebase has not changed. Its counterpart is
-[`django-checks`](#django-checks) for the API.
+[`django-checks`](/meta/ci_cd/jobs/api.md#django-checks) for the API.
Since this is a required check for a matrix job, it has a bypass counterpart.
-Refer to the documentation for [bypass jobs](#bypass-jobs).
+Refer to the documentation for [bypass jobs](/meta/ci_cd/flow.md#bypass-jobs).
## `playwright`
@@ -36,9 +36,9 @@ Node.js scripts.
This job is skipped if the frontend codebase has not changed.
```{note}
-This job, combined with the [`nuxt-build` job](#nuxt-build), is treated as the
+This job, combined with the [`nuxt-build` job](/meta/ci_cd/jobs/frontend.md#nuxt-build), is treated as the
proof of functionality for deploying frontend to staging.
```
Since this is a required check for a matrix job, it has a bypass counterpart.
-Refer to the documentation for [bypass jobs](#bypass-jobs).
+Refer to the documentation for [bypass jobs](/meta/ci_cd/flow.md#bypass-jobs).
diff --git a/documentation/meta/ci_cd/jobs/index.md b/documentation/meta/ci_cd/jobs/index.md
index a950aa127..49c837e91 100644
--- a/documentation/meta/ci_cd/jobs/index.md
+++ b/documentation/meta/ci_cd/jobs/index.md
@@ -11,4 +11,6 @@ catalog
ingestion_server
api
documentation
+deployment
+notification
```
diff --git a/documentation/meta/ci_cd/jobs/ingestion_server.md b/documentation/meta/ci_cd/jobs/ingestion_server.md
index f296bbfb8..c9bb0b22d 100644
--- a/documentation/meta/ci_cd/jobs/ingestion_server.md
+++ b/documentation/meta/ci_cd/jobs/ingestion_server.md
@@ -6,9 +6,9 @@ Runs tests for the ingestion server using the `ingestion_server/test-local`
recipe. Tests are run on the host so Python needs to be installed and set up.
This job is skipped if the ingestion server codebase has not changed. Its
-counterparts are [`test-cat`](#test-cat) for the catalog,
-[`test-api`](#test-api) for the API and [`nuxt-build`](#nuxt-build) for the
-frontend.
+counterparts are [`test-cat`](/meta/ci_cd/jobs/catalog.md#test-cat) for the
+catalog, [`test-api`](/meta/ci_cd/jobs/api.md#test-api) for the API and
+[`nuxt-build`](/meta/ci_cd/jobs/frontend.md#nuxt-build) for the frontend.
```{note}
This job is treated as the proof of functionality for publishing Docker images
diff --git a/documentation/meta/ci_cd/jobs/notification.md b/documentation/meta/ci_cd/jobs/notification.md
index 38b896d57..508d0fdec 100644
--- a/documentation/meta/ci_cd/jobs/notification.md
+++ b/documentation/meta/ci_cd/jobs/notification.md
@@ -18,10 +18,10 @@ This report is only sent if all the following conditions are met.
The workflow sends a Slack message, listing the outcome of four jobs
-- [`emit-docs`](#emit-docs)
-- [`publish-images`](#publish-images)
-- [`deploy-frontend`](#deploy-frontend)
-- [`deploy-api`](#deploy-api)
+- [`emit-docs`](/meta/ci_cd/jobs/documentation.md#emit-docs)
+- [`publish-images`](/meta/ci_cd/jobs/docker_publishing.md#publish-images)
+- [`deploy-frontend`](/meta/ci_cd/jobs/deployment.md#deploy-frontend)
+- [`deploy-api`](/meta/ci_cd/jobs/deployment.md#deploy-api)
Receiving this report in Slack is an indicator that the workflow did not
complete successfully. It is up to the MSR to investigate the cause of the
diff --git a/documentation/meta/decision_making/index.md b/documentation/meta/decision_making/index.md
index 882ae9c2a..e5d908b76 100644
--- a/documentation/meta/decision_making/index.md
+++ b/documentation/meta/decision_making/index.md
@@ -7,6 +7,10 @@ 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.
-```{include} ../../_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+process_description
+how_to_use
+additional_practices
```
diff --git a/documentation/meta/documentation/index.md b/documentation/meta/documentation/index.md
index bc19e76af..09e9b2e3b 100644
--- a/documentation/meta/documentation/index.md
+++ b/documentation/meta/documentation/index.md
@@ -1,5 +1,9 @@
# Documentation
-```{include} ../../_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+quickstart
+guidelines
+link_issues
```
diff --git a/documentation/meta/documentation/link_issues.md b/documentation/meta/documentation/link_issues.md
new file mode 100644
index 000000000..042e58f6f
--- /dev/null
+++ b/documentation/meta/documentation/link_issues.md
@@ -0,0 +1,12 @@
+# Sphinx GitHub issue resolver plugin (`link_issues`)
+
+The `link_issues` Sphinx plugin is copied directly into the repository to
+accommodate updates necessary to support modern Sphinx versions.
+
+Please see the
+[documentation string at the top of the module for credits and license text for the code](/_ext/link_issues.py).
+Modifications have been made to the original code to enable the use of GitHub
+authentication tokens to prevent rate limiting from breaking issue resolution.
+If you want to test issue resolution locally, add a `LINK_ISSUES_GITHUB_TOKEN`
+environment variable when running the documentation stack. The token must have
+read permissions for public repositories.
diff --git a/documentation/meta/index.md b/documentation/meta/index.md
index fab9b4fea..b1d63fe05 100644
--- a/documentation/meta/index.md
+++ b/documentation/meta/index.md
@@ -1,5 +1,11 @@
# Managing the Openverse
-```{include} ../_toc_templates/stack_root.md
+```{toctree}
+:titlesonly:
+github_contribution_practices
+dev_flow
+ci_cd/index
+decision_making/index
+documentation/index
```
diff --git a/documentation/projects/planning.md b/documentation/projects/planning.md
index f69efd2a9..93290b94e 100644
--- a/documentation/projects/planning.md
+++ b/documentation/projects/planning.md
@@ -50,6 +50,14 @@ appendixes that go beyond the required scope of the project planning process
described in this document. Those documents should accompany the required ones
in the same subdirectory for the project.
+```{warning}
+Subdirectories require an `index.md` in order to be included in the documentation site's table of contents.
+
+Because project documents prefix their titles with a date, we can safely use a glob to include all project planning documents in a project directory and have them intuitively ordered by date.
+
+Refer to the [project `index.md` templates](/projects/templates/index.md) for a starting point.
+```
+
All project documentation can be authored with any tool, but must be written in
[MyST/Commonmark+ flavored Markdown](https://myst-parser.readthedocs.io/en/latest/syntax/reference.html).
diff --git a/documentation/projects/proposals/3d_model_support/20220221-project_proposal.md b/documentation/projects/proposals/3d_model_support/20220221-project_proposal.md
index 4c3e50650..8098011d0 100644
--- a/documentation/projects/proposals/3d_model_support/20220221-project_proposal.md
+++ b/documentation/projects/proposals/3d_model_support/20220221-project_proposal.md
@@ -1,4 +1,4 @@
-# Project Proposal - 2022-02-21
+# 2022-02-21 Project Proposal: 3D model support
- [x] @sarayourfriend
- [x] @panchovm
diff --git a/documentation/projects/proposals/3d_model_support/index.md b/documentation/projects/proposals/3d_model_support/index.md
index 9f07e684d..697348d26 100644
--- a/documentation/projects/proposals/3d_model_support/index.md
+++ b/documentation/projects/proposals/3d_model_support/index.md
@@ -1,5 +1,8 @@
# 3D Model Support
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.md b/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.md
index 03e808b1f..0e15e06b0 100644
--- a/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.md
+++ b/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.md
@@ -1,4 +1,4 @@
-# Implentation Plan: Frontend event tracking - 2022-10-06
+# 2022-10-06 Implentation Plan: Frontend event tracking
A proposal to emit frontend events based on user interactions and page visits.
diff --git a/documentation/projects/proposals/analytics/20230307-backend_service.md b/documentation/projects/proposals/analytics/20230307-backend_service.md
index bff3c0695..123f5d3f3 100644
--- a/documentation/projects/proposals/analytics/20230307-backend_service.md
+++ b/documentation/projects/proposals/analytics/20230307-backend_service.md
@@ -1,12 +1,12 @@
-# Implementation Plan: Analytics backend and visualisation service - 2023-03-07
+# 2023-03-07 Implementation Plan: Analytics backend and visualisation service
This RFC deals with the backend of analytics, about how we record events sent
from the frontend and what we do with those events.
## Reviewers
-- [ ] TBD
-- [ ] TBD
+- [x] @obulat
+- [x] @sarayourfriend
## Rationale
diff --git a/documentation/projects/proposals/analytics/index.md b/documentation/projects/proposals/analytics/index.md
index 5c146b6f6..ee9feb2cc 100644
--- a/documentation/projects/proposals/analytics/index.md
+++ b/documentation/projects/proposals/analytics/index.md
@@ -1,5 +1,8 @@
# Analytics
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/core_user_interface_improvement/20230314-project_proposal_core_ui_improvement.md b/documentation/projects/proposals/core_user_interface_improvement/20230314-project_proposal_core_ui_improvement.md
index 4159205b1..3889ab9ac 100644
--- a/documentation/projects/proposals/core_user_interface_improvement/20230314-project_proposal_core_ui_improvement.md
+++ b/documentation/projects/proposals/core_user_interface_improvement/20230314-project_proposal_core_ui_improvement.md
@@ -1,4 +1,4 @@
-# Project Proposal - 2023-03-14
+# 2023-03-14 Project Proposal: Core UI Improvement
## Reviewers
diff --git a/documentation/projects/proposals/core_user_interface_improvement/index.md b/documentation/projects/proposals/core_user_interface_improvement/index.md
index 10b78766d..5a293838b 100644
--- a/documentation/projects/proposals/core_user_interface_improvement/index.md
+++ b/documentation/projects/proposals/core_user_interface_improvement/index.md
@@ -1,5 +1,8 @@
# Core User Interface Improvements
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.md b/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.md
index e3ad33f81..9233f52f2 100644
--- a/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.md
+++ b/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.md
@@ -1,5 +1,4 @@
-Project proposal for
-[Document all media properties](https://github.com/WordPress/openverse/issues/412)
+# 2023-03-07 Project proposal for [Document all media properties](https://github.com/WordPress/openverse/issues/412)
## Due date:
@@ -8,7 +7,8 @@ Project proposal for
## Assigned reviewers
- [x] @AetherUnbound
-- [ ] @krysal
+- [x] @krysal
+- [x] @rwidom
## Description
diff --git a/documentation/projects/proposals/document_all_media_properties/index.md b/documentation/projects/proposals/document_all_media_properties/index.md
index 9735cf028..6288e0a5f 100644
--- a/documentation/projects/proposals/document_all_media_properties/index.md
+++ b/documentation/projects/proposals/document_all_media_properties/index.md
@@ -1,5 +1,8 @@
# Document all media properties
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/feature_flags/20220309-project_proposal.md b/documentation/projects/proposals/feature_flags/20220309-project_proposal.md
index 8a536f648..0f72e5e7c 100644
--- a/documentation/projects/proposals/feature_flags/20220309-project_proposal.md
+++ b/documentation/projects/proposals/feature_flags/20220309-project_proposal.md
@@ -1,4 +1,4 @@
-# Project Proposal - 2022-03-09
+# 2022-03-09 Project Proposal: Feature flags
## Reviewers
diff --git a/documentation/projects/proposals/feature_flags/index.md b/documentation/projects/proposals/feature_flags/index.md
index 77b858dad..7d341bf4a 100644
--- a/documentation/projects/proposals/feature_flags/index.md
+++ b/documentation/projects/proposals/feature_flags/index.md
@@ -1,5 +1,8 @@
# Feature Flags
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/frontend_ui_state_cookie/index.md b/documentation/projects/proposals/frontend_ui_state_cookie/index.md
index 227b3210f..fd2a54574 100644
--- a/documentation/projects/proposals/frontend_ui_state_cookie/index.md
+++ b/documentation/projects/proposals/frontend_ui_state_cookie/index.md
@@ -1,5 +1,8 @@
# Frontend UI State Cookie
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/monitoring/20220307-project_proposal.md b/documentation/projects/proposals/monitoring/20220307-project_proposal.md
index 2167fd834..ee6ef31d7 100644
--- a/documentation/projects/proposals/monitoring/20220307-project_proposal.md
+++ b/documentation/projects/proposals/monitoring/20220307-project_proposal.md
@@ -1,4 +1,4 @@
-# Project Proposal - 2022-03-07
+# 2022-03-07 Project Proposal: Monitoring
Note: Because I had to spend a good deal of time sketching out how this stuff
works, I wrote a good deal of preliminary code. It's probably not perfect so
diff --git a/documentation/projects/proposals/monitoring/index.md b/documentation/projects/proposals/monitoring/index.md
index 1c6f309f8..7a9760f50 100644
--- a/documentation/projects/proposals/monitoring/index.md
+++ b/documentation/projects/proposals/monitoring/index.md
@@ -1,5 +1,8 @@
# Monitoring
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/monorepo/20221124-project_proposal.md b/documentation/projects/proposals/monorepo/20221124-project_proposal.md
index 1a69d5884..bf0943107 100644
--- a/documentation/projects/proposals/monorepo/20221124-project_proposal.md
+++ b/documentation/projects/proposals/monorepo/20221124-project_proposal.md
@@ -1,9 +1,9 @@
-# Project Proposal - 2022-11-24
+# 2022-11-24 Project Proposal: Monorepo
## Reviewers
-- [ ] @zackkrida
-- [ ] @sarayourfriend
+- [x] @zackkrida
+- [x] @AetherUnbound
## Rationale
diff --git a/documentation/projects/proposals/monorepo/index.md b/documentation/projects/proposals/monorepo/index.md
index 2801ef5a9..95aceb11e 100644
--- a/documentation/projects/proposals/monorepo/index.md
+++ b/documentation/projects/proposals/monorepo/index.md
@@ -1,5 +1,8 @@
# Monorepo
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/popularity_optimizations/20230406-project_proposal_popularity_optimizations.md b/documentation/projects/proposals/popularity_optimizations/20230406-project_proposal_popularity_optimizations.md
index b78e602e8..b8470e089 100644
--- a/documentation/projects/proposals/popularity_optimizations/20230406-project_proposal_popularity_optimizations.md
+++ b/documentation/projects/proposals/popularity_optimizations/20230406-project_proposal_popularity_optimizations.md
@@ -1,4 +1,4 @@
-# Project Proposal: Popularity Calculation Optimizations
+# 2023-04-06 Project Proposal: Popularity Calculation Optimizations
## Reviewers
diff --git a/documentation/_toc_templates/stack_root.md b/documentation/projects/proposals/popularity_optimizations/index.md
similarity index 50%
rename from documentation/_toc_templates/stack_root.md
rename to documentation/projects/proposals/popularity_optimizations/index.md
index 16c2db251..74be3b217 100644
--- a/documentation/_toc_templates/stack_root.md
+++ b/documentation/projects/proposals/popularity_optimizations/index.md
@@ -1,8 +1,8 @@
+# Popularity Calculation Optimizations
+
```{toctree}
:titlesonly:
-:maxdepth: 2
:glob:
*
-*/index
```
diff --git a/documentation/projects/proposals/search_relevancy_sandbox/20230331-project_proposal_search_relevancy_sandbox.md b/documentation/projects/proposals/search_relevancy_sandbox/20230331-project_proposal_search_relevancy_sandbox.md
index f76e54033..c4c5564f5 100644
--- a/documentation/projects/proposals/search_relevancy_sandbox/20230331-project_proposal_search_relevancy_sandbox.md
+++ b/documentation/projects/proposals/search_relevancy_sandbox/20230331-project_proposal_search_relevancy_sandbox.md
@@ -1,4 +1,4 @@
-# Project Proposal - 2023-03-31
+# 2023-03-31 Project Proposal: Search relevancy sandbox
## Reviewers
diff --git a/documentation/projects/proposals/search_relevancy_sandbox/index.md b/documentation/projects/proposals/search_relevancy_sandbox/index.md
index 1c059139e..f894844ca 100644
--- a/documentation/projects/proposals/search_relevancy_sandbox/index.md
+++ b/documentation/projects/proposals/search_relevancy_sandbox/index.md
@@ -1,5 +1,8 @@
# Search Relevancy Sandbox
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/trust_and_safety/content_report_moderation/20230411-project_proposal_content_report_moderation.md b/documentation/projects/proposals/trust_and_safety/content_report_moderation/20230411-project_proposal_content_report_moderation.md
index 69f5ae5a3..e13c30e80 100644
--- a/documentation/projects/proposals/trust_and_safety/content_report_moderation/20230411-project_proposal_content_report_moderation.md
+++ b/documentation/projects/proposals/trust_and_safety/content_report_moderation/20230411-project_proposal_content_report_moderation.md
@@ -1,11 +1,11 @@
-# 2023-04-11 Project Proposal
+# 2023-04-11 Project Proposal: Sensitive content report moderation: initial practices
## Reviewers
<!-- Choose two people at your discretion who make sense to review this based on their existing expertise. Check in to make sure folks aren't currently reviewing more than one other proposal or RFC. -->
-- [ ] @zackkrida
-- [ ] @olgabulat
+- [x] @zackkrida
+- [x] @olgabulat
## Project summary
diff --git a/documentation/projects/proposals/trust_and_safety/detecting_sensitive_textual_content/20230309-project_proposal_detecting_sensitive_textual_content.md b/documentation/projects/proposals/trust_and_safety/detecting_sensitive_textual_content/20230309-project_proposal_detecting_sensitive_textual_content.md
index d0c090a10..1b4e2c029 100644
--- a/documentation/projects/proposals/trust_and_safety/detecting_sensitive_textual_content/20230309-project_proposal_detecting_sensitive_textual_content.md
+++ b/documentation/projects/proposals/trust_and_safety/detecting_sensitive_textual_content/20230309-project_proposal_detecting_sensitive_textual_content.md
@@ -1,4 +1,4 @@
-# 2023-03-09 Project Proposal
+# 2023-03-09 Project Proposal: Detecting sensitive textual content and blurring all sensitive results
## Reviewers
diff --git a/documentation/projects/proposals/trust_and_safety/index.md b/documentation/projects/proposals/trust_and_safety/index.md
index 5daff48c3..146508288 100644
--- a/documentation/projects/proposals/trust_and_safety/index.md
+++ b/documentation/projects/proposals/trust_and_safety/index.md
@@ -1,5 +1,9 @@
# Trust and Safety
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
+*/index
```
diff --git a/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.md b/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.md
index c3f910c08..e9bbbd3f9 100644
--- a/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.md
+++ b/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.md
@@ -1,4 +1,4 @@
-# Implementation Plan - 2022-02-17
+# 2022-02-17 Implementation Plan: Visual regression testing
A proposal to integrate visual regression testing into the Openverse frontend's
automated testing suite.
diff --git a/documentation/projects/proposals/visual_regression_testing/index.md b/documentation/projects/proposals/visual_regression_testing/index.md
index 66a02102d..854371b29 100644
--- a/documentation/projects/proposals/visual_regression_testing/index.md
+++ b/documentation/projects/proposals/visual_regression_testing/index.md
@@ -1,5 +1,8 @@
# Visual Regression Testing
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/proposals/vuex_to_pina_conversion/20220223-project_proposal.md b/documentation/projects/proposals/vuex_to_pina_conversion/20220223-project_proposal.md
index 7fb7c0798..b9057f042 100644
--- a/documentation/projects/proposals/vuex_to_pina_conversion/20220223-project_proposal.md
+++ b/documentation/projects/proposals/vuex_to_pina_conversion/20220223-project_proposal.md
@@ -1,4 +1,4 @@
-# Project Proposal - 2022-02-23
+# 2022-02-23 Project Proposal: Vuex to Pinia conversion
- [x] @dhruvkb
diff --git a/documentation/projects/proposals/vuex_to_pina_conversion/index.md b/documentation/projects/proposals/vuex_to_pina_conversion/index.md
index 573fdc0c5..660ec32af 100644
--- a/documentation/projects/proposals/vuex_to_pina_conversion/index.md
+++ b/documentation/projects/proposals/vuex_to_pina_conversion/index.md
@@ -1,5 +1,8 @@
# Pinia Conversion
-```{include} /_toc_templates/flat.md
+```{toctree}
+:titlesonly:
+:glob:
+*
```
diff --git a/documentation/projects/templates/index.md b/documentation/projects/templates/index.md
new file mode 100644
index 000000000..8f0d93cb8
--- /dev/null
+++ b/documentation/projects/templates/index.md
@@ -0,0 +1,12 @@
+# Project directory `index.md` template
+
+````md
+# {Project title}
+
+```{toctree}
+:titlesonly:
+:glob:
+
+*
+```
+````
diff --git a/templates/release-drafter.yml.jinja b/templates/release-drafter.yml.jinja
index 1fbffa353..267a8dbed 100644
--- a/templates/release-drafter.yml.jinja
+++ b/templates/release-drafter.yml.jinja
@@ -14,7 +14,7 @@ categories:
- title: Bug Fixes
label: "๐Ÿ›  goal: fix"
# Identical to the default except it uses `-` instead of `*` to match our Markdown linter
-change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
+change-template: "- [$TITLE (#$NUMBER)](https://github.com/WordPress/openverse/pull/$NUMBER) by @$AUTHOR"
exclude-labels:
- "skip-changelog"
include-labels: