Skip to content

Commit

Permalink
Add Google Analytics to viser docs (nerfstudio-project#129)
Browse files Browse the repository at this point in the history
* added gtag extension to sphynx

* reformat conf.py

* Update pinned black + re-run

---------

Co-authored-by: Brent Yi <[email protected]>
  • Loading branch information
BrianSantoso and brentyi authored Nov 16, 2023
1 parent 0f391e5 commit a870e9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ docutils==0.20.1
m2r2==0.3.3.post2
git+https://github.com/brentyi/sphinxcontrib-programoutput.git
git+https://github.com/brentyi/ansi.git
git+https://github.com/sphinx-contrib/googleanalytics.git
4 changes: 4 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"m2r2",
"sphinxcontrib.programoutput",
"sphinxcontrib.ansi",
"sphinxcontrib.googleanalytics", # google analytics extension https://github.com/sphinx-contrib/googleanalytics/tree/master
]
programoutput_use_ansi = True
html_ansi_stylesheet = "black-on-white.css"
Expand Down Expand Up @@ -217,6 +218,9 @@

# -- Extension configuration --------------------------------------------------

# Google Analytics ID
googleanalytics_id = "G-RRGY51J5ZH"

# -- Options for todo extension ----------------------------------------------

# If true, `todo` and `todoList` produce output, else they produce nothing.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dev = [
"pyright>=1.1.308",
"mypy>=1.4.1",
"ruff==0.0.267",
"black==23.3.0",
"black==23.11.0",
"pre-commit==3.3.2",
]
examples = [
Expand Down

0 comments on commit a870e9a

Please sign in to comment.