Manual: Add support for youtube videos

This commit is contained in:
Ole Schütt 2024-04-09 23:15:49 +02:00 committed by Ole Schütt
parent 0c0c0a7c81
commit 10d5862cfd
3 changed files with 21 additions and 2 deletions

View file

@ -13,7 +13,13 @@ author = "CP2K Developers"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ["myst_parser", "sphinx_rtd_theme", "sphinx.ext.mathjax"]
extensions = [
"myst_parser",
"sphinx_rtd_theme",
"sphinx.ext.mathjax",
"sphinx.ext.intersphinx",
"sphinxcontrib.youtube",
]
myst_enable_extensions = [
"attrs_inline",

View file

@ -6,3 +6,11 @@ In the meantime, the following links might be helpful:
- [](#Lippert1999)
- [](#VandeVondele2006)
```{youtube} L0hKLjvjIFU
---
url_parameters: ?start=4
align: center
privacy_mode:
---
```

View file

@ -29,7 +29,12 @@ apt-get install -qq --no-install-recommends \
python3-pip
rm -rf /var/lib/apt/lists/*
pip3 install --quiet sphinx myst-parser sphinx_rtd_theme lxml
pip3 install --quiet \
sphinx \
myst-parser \
sphinx_rtd_theme \
sphinxcontrib-youtube \
lxml
echo -e "\n========== Generating Manual =========="