diff --git a/.docs/conf.py b/.docs/conf.py index dd3b87f92c..0113ff54c1 100644 --- a/.docs/conf.py +++ b/.docs/conf.py @@ -23,15 +23,8 @@ # -- determine if running on readthedocs ------------------------------------ on_rtd = os.environ.get("READTHEDOCS") == "True" -# -- determine if this version is a release candidate -with open("../README.md") as f: - lines = f.readlines() -rc_text = "" -for line in lines: - if line.startswith("### Version"): - if "release candidate" in line: - rc_text = "release candidate" - break +# -- determine if this is a development or release version ------------------ +branch_or_version = __version__ if "dev" not in __version__ else "develop" # -- get authors with open("../CITATION.cff") as f: @@ -45,8 +38,6 @@ for line in lines: if line.startswith("**Documentation for version"): line = f"**Documentation for version {__version__}" - if rc_text != "": - line += f" --- {rc_text}" line += "**\n" f.write(line) @@ -272,6 +263,35 @@ nbsphinx_prolog = ( r""" {% set docname = env.doc2path(env.docname, base=None) %} + +.. raw:: html + +