diff --git a/.github/workflows/publish-python-apidocs.yml b/.github/workflows/publish-python-apidocs.yml index 8d19a626de..0ac99c0883 100644 --- a/.github/workflows/publish-python-apidocs.yml +++ b/.github/workflows/publish-python-apidocs.yml @@ -2,7 +2,8 @@ name: Update Python API Docs on: push: branches: - - master + - main + workflow_dispatch: jobs: publish: diff --git a/docs/python/inference/conf.py b/docs/python/inference/conf.py index b299aa0081..300f6da4c0 100644 --- a/docs/python/inference/conf.py +++ b/docs/python/inference/conf.py @@ -34,6 +34,7 @@ extensions = [ "sphinx_gallery.gen_gallery", "sphinx.ext.graphviz", "pyquickhelper.sphinxext.sphinx_runpython_extension", + "sphinxcontrib.googleanalytics", ] templates_path = ["_templates"] @@ -57,6 +58,10 @@ html_logo = "ONNX_Runtime_icon.png" html_static_path = ["_static"] graphviz_output_format = "svg" +# -- Options for Google Analytics ------------------------------------------------- + +googleanalytics_id = "UA-156955408-1" + # -- Options for intersphinx extension --------------------------------------- # Example configuration for intersphinx: refer to the Python standard library. diff --git a/docs/python/requirements.txt b/docs/python/requirements.txt index 197c04e5a2..02614db8c3 100644 --- a/docs/python/requirements.txt +++ b/docs/python/requirements.txt @@ -5,6 +5,7 @@ skl2onnx sphinx sphinx-gallery sphinxcontrib.imagesvg +sphinxcontrib.googleanalytics sphinx_rtd_theme pyquickhelper pandas @@ -15,4 +16,4 @@ numpy packaging protobuf sympy -onnx \ No newline at end of file +onnx