Skip to content

Commit

Permalink
Generalize
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHeybrock committed Jul 15, 2022
1 parent d98e896 commit 851186a
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def add_buttons(
#
html_theme_options = {
"logo_only": True,
"repository_url": "https://github.com/scipp/scippnexus",
"repository_url": "https://github.com/scipp/{project}",
"repository_branch": "main",
"path_to_docs": "docs",
"use_repository_button": True,
Expand All @@ -188,8 +188,8 @@ def add_buttons(

if outdated:
html_theme_options["announcement"] = (
"⚠️ You are viewing the documentation for an old version of scippnexus. "
"Switch to <a href='https://scipp.github.io/scippnexus' "
"⚠️ You are viewing the documentation for an old version of {project}. "
f"Switch to <a href='https://scipp.github.io/{project}' "
"style='color:white;text-decoration:underline;'"
">latest</a> version. ⚠️")

Expand All @@ -208,23 +208,7 @@ def add_buttons(

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}
latex_elements = {}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
Expand Down

0 comments on commit 851186a

Please sign in to comment.