Skip to content

Commit

Permalink
Adjust to RTD's upcoming addon changes (#12)
Browse files Browse the repository at this point in the history
* Include config changes suggested by RTD

* Remove duplicate workflow file
  • Loading branch information
glatterf42 authored Jul 24, 2024
1 parent d8791e1 commit 03daab5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 43 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/build-docs.yml

This file was deleted.

16 changes: 12 additions & 4 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import datetime
import os

# -- Project information -----------------------------------------------------

Expand All @@ -38,7 +37,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []
exclude_patterns: list[str] = []

# -- Intersphinx -------------------------------------------------------------

Expand Down Expand Up @@ -69,10 +68,19 @@
"iiasa.css",
]

# Define the canonical URL if you are using a custom domain on Read the Docs
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True

# prolog for all rst files
rst_prolog = """
.. |br| raw:: html
<br>
"""
"""

0 comments on commit 03daab5

Please sign in to comment.