1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

docs: support markdown (MR 2361)

Let's write all new documentation in markdown, and convert existing ones
at some point. I think we are all much more familiar with markdown than
with the rst format.
This commit is contained in:
Oliver Smith 2024-07-10 23:36:21 +02:00
parent 591a737733
commit 89a3136f08
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 4 additions and 1 deletions

View file

@ -4,10 +4,11 @@
# https://postmarketos.org/pmb-ci # https://postmarketos.org/pmb-ci
# Ensure sphinx_rtd_theme is installed # Install sphinx + extensions when running in CI
if [ "$(id -u)" = 0 ]; then if [ "$(id -u)" = 0 ]; then
set -x set -x
apk -q add \ apk -q add \
py3-myst-parser \
py3-sphinx_rtd_theme \ py3-sphinx_rtd_theme \
py3-sphinxcontrib-autoprogram py3-sphinxcontrib-autoprogram
exec su "${TESTUSER:-build}" -c "sh -e $0" exec su "${TESTUSER:-build}" -c "sh -e $0"

View file

@ -34,6 +34,7 @@ version = ".".join(release.split(".")[:3])
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [ extensions = [
"myst_parser",
"sphinx.ext.autodoc", "sphinx.ext.autodoc",
"sphinx.ext.autosummary", "sphinx.ext.autosummary",
"sphinx.ext.doctest", "sphinx.ext.doctest",
@ -42,6 +43,7 @@ extensions = [
templates_path = ["_templates"] templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
source_suffix = [".rst", ".md"]
# -- Options for HTML output ------------------------------------------------- # -- Options for HTML output -------------------------------------------------
html_theme = "sphinx_rtd_theme" html_theme = "sphinx_rtd_theme"