File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ doc/renames.rstgen: tools/names.py tools/renames.json
8787 env PYTHONPATH=. $(PYTHON ) tools/names.py rst-gen > doc/renames.rstgen
8888
8989doc-depends : # # pip installs packages needed to build doc
90- $(PYTHON ) -m pip install -U --upgrade-strategy eager sphinx sphinx_rtd_theme
90+ $(PYTHON ) -m pip install -U --upgrade-strategy eager sphinx sphinx_rtd_theme sphinxcontrib-googleanalytics
9191
9292dev-depends : # # pip installs packages useful for development (none are necessary except setuptools)
9393 $(PYTHON ) -m pip install -U --upgrade-strategy eager build wheel setuptools pip
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ def split(self, input):
2525 "sphinx.ext.autosummary" ,
2626]
2727
28+ if not os .getenv ("APSW_NO_GA" ):
29+ extensions .append ("sphinxcontrib.googleanalytics" )
30+ googleanalytics_id = "G-2NR9GDCQLT"
31+
32+
2833# this shows shorter names like Buffer instead of collections.abc.Buffer
2934python_use_unqualified_type_names = True
3035# less verbose Literal [ "one", "two"] -> "one" : "two"
@@ -81,13 +86,10 @@ def split(self, input):
8186html_title = f"{ project } { version } documentation"
8287html_theme = "sphinx_rtd_theme"
8388html_theme_options = {
84- "analytics_id" : "G-2NR9GDCQLT" ,
8589 "prev_next_buttons_location" : "both" ,
8690}
8791html_css_files = ["apsw.css" ]
88-
89- if os .getenv ("APSW_NO_GA" ):
90- del html_theme_options ["analytics_id" ]
92+ html_baseurl = "https://rogerbinns.github.io/apsw/"
9193
9294html_favicon = "favicon.ico"
9395
You can’t perform that action at this time.
0 commit comments