2023-06-06 22:20:50 +02:00
|
|
|
# Configuration file for the Sphinx documentation builder.
|
|
|
|
|
#
|
|
|
|
|
# For the full list of built-in configuration values, see the documentation:
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
|
|
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
|
|
|
|
|
|
|
|
project = "CP2K"
|
2026-01-01 15:17:33 +01:00
|
|
|
copyright = "2000-2026, CP2K Developers"
|
2023-06-06 22:20:50 +02:00
|
|
|
author = "CP2K Developers"
|
|
|
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
|
|
2024-04-09 23:15:49 +02:00
|
|
|
extensions = [
|
|
|
|
|
"myst_parser",
|
|
|
|
|
"sphinx_rtd_theme",
|
2024-12-22 18:26:13 +01:00
|
|
|
"sphinx_reredirects",
|
2024-04-09 23:15:49 +02:00
|
|
|
"sphinx.ext.mathjax",
|
|
|
|
|
"sphinx.ext.intersphinx",
|
|
|
|
|
"sphinxcontrib.youtube",
|
2024-12-21 15:31:37 +01:00
|
|
|
"sphinxcontrib.mermaid",
|
2024-04-09 23:15:49 +02:00
|
|
|
]
|
2023-10-19 19:51:17 +02:00
|
|
|
|
2026-03-01 00:38:26 +08:00
|
|
|
myst_heading_anchors = 3
|
|
|
|
|
|
2023-11-17 12:38:29 +01:00
|
|
|
myst_enable_extensions = [
|
|
|
|
|
"attrs_inline",
|
|
|
|
|
"dollarmath",
|
|
|
|
|
"smartquotes",
|
|
|
|
|
"strikethrough",
|
|
|
|
|
]
|
2023-06-06 22:20:50 +02:00
|
|
|
|
2024-12-21 15:31:37 +01:00
|
|
|
myst_fence_as_directive = ["mermaid"]
|
|
|
|
|
|
2023-06-06 22:20:50 +02:00
|
|
|
templates_path = ["_templates"]
|
2023-08-10 16:20:25 +02:00
|
|
|
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "README.md"]
|
2023-06-06 22:20:50 +02:00
|
|
|
|
2023-08-11 12:35:28 +02:00
|
|
|
suppress_warnings = ["ref"]
|
2023-06-06 22:20:50 +02:00
|
|
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
|
|
|
|
|
|
html_theme = "sphinx_rtd_theme"
|
|
|
|
|
html_static_path = ["_static"]
|
2023-07-31 16:40:22 +02:00
|
|
|
html_favicon = "_static/favicon.png"
|
2023-10-29 16:22:17 +01:00
|
|
|
html_copy_source = False
|
2026-07-13 16:55:09 +08:00
|
|
|
html_last_updated_fmt = "%a, %d %b %Y %H:%M:%S +0000"
|
|
|
|
|
html_last_updated_use_utc = True
|
2023-06-06 22:20:50 +02:00
|
|
|
|
2023-08-11 12:35:28 +02:00
|
|
|
add_module_names = False
|
2023-06-06 22:20:50 +02:00
|
|
|
|
|
|
|
|
# https://myst-parser.readthedocs.io/en/v0.16.1/syntax/optional.html#syntax-header-anchors
|
|
|
|
|
|
2023-09-10 16:32:04 +02:00
|
|
|
html_context = {
|
|
|
|
|
"display_github": True,
|
|
|
|
|
"github_user": "cp2k",
|
|
|
|
|
"github_repo": "cp2k",
|
|
|
|
|
"github_version": "master",
|
|
|
|
|
"conf_py_path": "/docs/",
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-09 19:07:25 +01:00
|
|
|
# https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html
|
|
|
|
|
|
|
|
|
|
html_theme_options = {
|
|
|
|
|
"collapse_navigation": False,
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-22 18:26:13 +01:00
|
|
|
redirects = {
|
|
|
|
|
"getting-started/CMake": "build-from-source.html",
|
|
|
|
|
"getting-started/spack": "build-with-spack.html",
|
2026-05-23 05:34:00 +08:00
|
|
|
"methods/optimization/geometry": "geometry_and_cell_opt.html",
|
2026-06-03 20:28:43 +08:00
|
|
|
"methods/properties/bandstructure_gw": "../electronic_structure/band/gw.html",
|
|
|
|
|
"methods/properties/resp_charges": "../electronic_structure/population/resp.html",
|
2024-12-22 18:26:13 +01:00
|
|
|
}
|
|
|
|
|
|
2023-06-06 22:20:50 +02:00
|
|
|
# EOF
|