Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Automatically generate labels.

Alex Vandiver430536ad479a
diff --git a/docs/conf.py b/docs/conf.py
index 5c91efc42e0..10eb2c3b7b4 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,6 +16,7 @@ on_rtd = os.environ.get("READTHEDOCS") == "True"
# General configuration
extensions = [
+ "sphinx.ext.autosectionlabel",
"myst_parser",
"sphinx_rtd_theme",
"sphinx_design",
@@ -29,9 +30,13 @@ release = ZULIP_VERSION
exclude_patterns = ["_build", "README.md"]
suppress_warnings = [
"myst.header",
+ "autosectionlabel.git/terminology", # HEAD vs head
]
pygments_style = "sphinx"
+autosectionlabel_prefix_document = True
+autosectionlabel_maxdepth = 2
+
# Options for Markdown parser
myst_enable_extensions = [
diff --git a/docs/git/pull-requests.md b/docs/git/pull-requests.md
index edc1320ad90..1ec843a60be 100644
--- a/docs/git/pull-requests.md
+++ b/docs/git/pull-requests.md
@@ -1,4 +1,4 @@
-# Create a pull request
+# Pull requests
When you're ready for feedback, submit a pull request. Pull requests
are a feature specific to GitHub. They provide a simple, web-based way