Skip to content

Commit

Permalink
Merge pull request #2948 from locustio/add-google-analytics-to-docs
Browse files Browse the repository at this point in the history
Add Google Analytics to docs.locust.io
  • Loading branch information
heyman authored Oct 21, 2024
2 parents b918971 + 58d4fa4 commit 5884289
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def save_locust_env_variables():
"sphinx.ext.viewcode",
"sphinx_search.extension",
"sphinx_rtd_theme",
"sphinxcontrib.googleanalytics",
]

# autoclass options
Expand Down Expand Up @@ -161,6 +162,9 @@ def save_locust_env_variables():
html_static_path = ["_static"]
html_css_files = ["_static/theme-overrides.css", "_static/css/rtd_sphinx_search.min.css"]

# Google Analytics ID
googleanalytics_id = "G-MCG99XYF9M"
googleanalytics_enabled = True

# HTML theme
# html_theme = "haiku"
Expand Down
2 changes: 1 addition & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Basic auth (Authorization header) does not work after redirection
which is typically on a different domain and use mulitple redirections (30x).

Since ``allow_redirects=True`` is the default ``request`` behavior you'll have to turn it off,
handle manually the redirections and inject again the authorization header, ex::
handle manually the redirections and inject again the authorization header, ex:


.. code-block:: python
Expand Down
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ sphinxcontrib-htmlhelp = "2.0.1"
sphinxcontrib-jsmath = "1.0.1"
sphinxcontrib-qthelp = "1.0.3"
sphinxcontrib-serializinghtml = "1.1.10"
sphinxcontrib-googleanalytics = ">=0.4"

[tool.poetry.scripts]
locust = "locust.main:main"
Expand Down

0 comments on commit 5884289

Please sign in to comment.