Skip to content

Commit cf3c6e9

Browse files
committed
Add CoC to footer
1 parent 604fdf7 commit cf3c6e9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

astropy_sphinx_theme/astropy-unified/theme.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ navbar_links = [
3434
["Affiliated Packages", "affiliated/index.html", 2],
3535
["Team", "team.html", 2],
3636
]
37-
rtd_extra_search_projects = [["astropy-org-test", "https://astropy-org-test.readthedocs.io"]]
37+
rtd_extra_search_projects = [["astropy-org-test", "https://astropy-org-test.readthedocs.io"]]
38+
footer_links = [["Code of Conduct", "code_of_conduct.html", 2]]

astropy_sphinx_theme/astropy_unified.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ def get_html_theme_path():
1010

1111

1212
def update_config(app) -> None:
13-
# Set the logo to the astropy logo unless it's overridden in the user config
13+
# Here we default some config options (i.e. things in conf.py) unless they are set by the user
14+
# Theme options are defaulted in theme.toml
15+
1416
if not utils.config_provided_by_user(app, "html_logo"):
1517
app.config.html_logo = str(get_html_theme_path() / "static" / "img" / "astropy_logo_notext.svg")
1618

0 commit comments

Comments
 (0)