Skip to content

Commit

Permalink
Migrated to Documenteer 0.6 config API
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Apr 14, 2021
1 parent f9d384c commit 0cbbd69
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions conf.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
"""Sphinx configurations for pipeline_lsst_io.
These configurations are centrally defined in Documenteer
(https://github.com/lsst-sqre/documenteer).
These configurations are centrally defined in Documenteer:
https://documenteer.lsst.io/pipelines/configuration.html
"""

from documenteer.sphinxconfig.stackconf import \
build_pipelines_lsst_io_configs
from documenteer.conf.pipelines import * # noqa: F403


globals().update(build_pipelines_lsst_io_configs(
project_name='LSST Science Pipelines',
))

# Patch EUPS tag subsitutions
rst_epilog = """
.. |eups-tag| replace:: v21_0_0
.. |eups-tag-mono| replace:: ``v21_0_0``
.. |eups-tag-bold| replace:: **v21_0_0**
"""

# Patch EUPS and Git tag context for Jinja templating
jinja_contexts = {
"default": {
"release_eups_tag": "v21_0_0",
"release_git_ref": "21.0.0",
"version": "v21_0_0",
"release": "v21_0_0",
"scipipe_conda_ref": "21.0.0",
"pipelines_demo_ref": "21.0.0",
"newinstall_ref": "21.0.0",
}
}
project_name = "LSST Science Pipelines"
html_theme_options["logotext"] = project_name # noqa: F405
html_title = project_name
html_short_title = project_name

0 comments on commit 0cbbd69

Please sign in to comment.