From 54258bb99689537f09b04e59f635aadf4032af9d Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Thu, 23 Feb 2023 14:15:09 +0700 Subject: [PATCH] Using pydata analytics option (#1756) * Using pydata analytics option * Updating pydata * Updating sphinx * Update pyproject.toml * updating pyansys-sphinx --------- Co-authored-by: Camille <78221213+clatapie@users.noreply.github.com> --- .github/workflows/dependabot.yml | 2 +- doc/source/conf.py | 6 +----- pyproject.toml | 5 ++--- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index d77a95854e..f8b76cbca1 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: marcoroth/dependabot-bump-together-action@v0.3.1 with: - dependencies: ansys-api-mapdl,vtk, ansys-corba, ansys-dpf-core, ansys-mapdl-reader, ansys-platform-instancemanagement, ansys-sphinx-theme, pyansys-tools-report, appdirs, autopep8, click, imageio-ffmpeg, imageio, importlib-metadata, jupyter_sphinx, jupyterlab, matplotlib, numpy, numpydoc, pandas, pexpect, plotly, protobuf, pyiges, pypandoc, pytest-cov, pytest-rerunfailures, pytest-sphinx, pytest, pythreejs, pyvista, scipy, setuptools, sphinx-autobuild, sphinx-autodoc-typehints, sphinx-copybutton, sphinx-gallery, sphinx-notfound-page, sphinxcontrib-websupport, sphinxemoji, tqdm, wheel + dependencies: ansys-api-mapdl, vtk, ansys-corba, ansys-dpf-core, ansys-mapdl-reader, ansys-platform-instancemanagement, ansys-sphinx-theme, pyansys-tools-report, appdirs, autopep8, click, imageio-ffmpeg, imageio, importlib-metadata, jupyter_sphinx, jupyterlab, matplotlib, numpy, numpydoc, pandas, pexpect, plotly, protobuf, pyiges, pypandoc, pytest-cov, pytest-rerunfailures, pytest-sphinx, pytest, pythreejs, pyvista, scipy, setuptools, sphinx-autobuild, sphinx-autodoc-typehints, sphinx-copybutton, sphinx-gallery, sphinx-notfound-page, sphinxcontrib-websupport, sphinxemoji, tqdm, wheel package_managers: pip directory: / branch: main diff --git a/doc/source/conf.py b/doc/source/conf.py index 9d6e417732..3c268b2e05 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -64,7 +64,6 @@ "sphinx_gallery.gen_gallery", "sphinxemoji.sphinxemoji", "sphinx.ext.graphviz", - "sphinxcontrib.googleanalytics", ] # Intersphinx mapping @@ -159,10 +158,6 @@ # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = False -# Google analytics setup -googleanalytics_id = "G-JQJKPV6ZVB" -googleanalytics_enabled = True - # Copy button customization --------------------------------------------------- # exclude traditional Python prompts from the copied code copybutton_prompt_text = r">>> ?|\.\.\. " @@ -197,6 +192,7 @@ html_theme = "ansys_sphinx_theme" html_logo = pyansys_logo_black html_theme_options = { + "analytics": {"google_analytics_id": "G-JQJKPV6ZVB"}, "github_url": "https://github.com/pyansys/pymapdl", "show_prev_next": False, "show_breadcrumbs": True, diff --git a/pyproject.toml b/pyproject.toml index 95dc3f16cc..8d942e5ab1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,10 +65,10 @@ tests = [ "pytest-rerunfailures==11.1.1", ] doc = [ - "Sphinx==5.3.0", + "sphinx==5.3.0", "ansys-dpf-core==0.7.2", "ansys-mapdl-reader==0.52.9", - "ansys-sphinx-theme==0.8.2", + "ansys-sphinx-theme==0.9.0", "grpcio==1.51.1", "imageio-ffmpeg==0.4.8", "imageio==2.25.1", @@ -90,7 +90,6 @@ doc = [ "sphinxcontrib-websupport==1.2.4", "sphinxemoji==0.2.0", "vtk==9.2.6", - "sphinxcontrib-googleanalytics==0.4", ] [tool.flit.module]