Skip to content

Commit

Permalink
more defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Apr 6, 2024
1 parent 8ba4e7b commit c05b059
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/sunpy_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ def setup(app: Sphinx):
root_domain = (
theme_options.get("sst_site_root", "https://sunpy.org").removeprefix("https://").removeprefix("http://")
)
default_endpoint = theme_options.get(
"goatcounter_non_domain_endpoint", theme_options["goatcounter_analytics_url"]
)
default_endpoint = theme_options.get("goatcounter_non_domain_endpoint", False)
if default_endpoint is False:
default_endpoint = ""
app.add_js_file(
Expand Down
5 changes: 3 additions & 2 deletions src/sunpy_sphinx_theme/theme/sunpy/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ sst_project_name = SunPy
# Enable sending stats to goat counter
# Set this URL to something like https://MYCODE.goatcounter.com/count
goatcounter_analytics_url =
# If you only want to count visits to sst_site_root
goatcounter_non_domain_endpoint =
# If you only want to count visits to sst_site_root or subdomains there of then set this to False
# otherwise set it to another (or the same) goat counter endpoint
goatcounter_non_domain_endpoint = False
# The logo to go in the top navbar in place of the project name
sst_logo =
navbar_links =
Expand Down

0 comments on commit c05b059

Please sign in to comment.