Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-lts-latest
tools:
python: "3.11"
python: "3.12"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
Expand Down
16 changes: 7 additions & 9 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"notfound.extension",
"sphinx_copybutton",
"sphinx_design",
"sphinx_sitemap",
"sphinx_togglebutton",
]

Expand Down Expand Up @@ -134,11 +135,16 @@
"html_admonition",
]

# sitemap extension configuration
site_url = "https://causalpy.readthedocs.io/"
sitemap_url_scheme = f"{{lang}}{version}/{{link}}"

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "labs_sphinx_theme"
html_static_path = ["_static"]
html_extra_path = ["robots.txt"]
html_favicon = "_static/favicon_logo.png"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand All @@ -156,6 +162,7 @@
"github_version": "main",
"doc_path": "docs/source/",
"default_mode": "light",
"baseurl": "https://causalpy.readthedocs.io/",
}

# -- Options for autodoc ----------------------------------------------------
Expand All @@ -167,12 +174,3 @@

# Don't show class signature with the class' name.
autodoc_class_signature = "separated"

# Add "Edit on Github" link. Replaces "view page source" ----------------------
html_context = {
"display_github": True, # Integrate GitHub
"github_user": "pymc-labs", # Username
"github_repo": "CausalPy", # Repo name
"github_version": "master", # Version
"conf_py_path": "/docs/source/", # Path in the checkout to the docs root
}
12 changes: 12 additions & 0 deletions docs/source/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Custom robots.txt file
# It controls the crawling and indexing of your documentation by search engines.
# Part of the configuration happens through readthedocs and part through extensions
#
# You can learn more about robots.txt, including how to customize it, in our rtd docs:
#
# * Our documentation on Robots.txt: https://docs.readthedocs.com/platform/stable/reference/robots.html
# * Our guide about SEO techniques: https://docs.readthedocs.com/platform/stable/guides/technical-docs-seo-guide.html

User-agent: *

Sitemap: https://causalpy.readthedocs.io/en/stable/sitemap.xml
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ docs = [
"sphinx",
"sphinx-autodoc-typehints",
"sphinx_autodoc_defaultargs",
"labs-sphinx-theme",
"labs-sphinx-theme @ git+https://github.com/pymc-labs/labs-sphinx-theme@v016_update",
"sphinx-copybutton",
"sphinx-rtd-theme",
"sphinx-sitemap",
"statsmodels",
"sphinxcontrib-bibtex",
"sphinx-notfound-page",
Expand Down