From a38906e5cbef1b5f2376eaded4db43c7ed8fb577 Mon Sep 17 00:00:00 2001 From: Christophe CHAUVET Date: Wed, 1 May 2024 22:05:44 +0200 Subject: [PATCH] build: add better indexing (#92) --- .github/workflows/gh-pages.yml | 4 ++-- .github/workflows/python-package.yml | 2 +- requirements.txt | 1 + source/conf.py | 10 ++++++++-- source/programmation/c.rst | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 80113c9..e77807d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -23,12 +23,12 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 - name: "Install Python dependencies" run: | pip3 install pipenv - pipenv install --python 3.9 + pipenv install --python 3.11 -r requirements.txt - name: "Build Sphinx Doc" run: | diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 23897d5..1e3e06e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | pip3 install pipenv - pipenv install --python ${{ matrix.python-version }} + pipenv install --python ${{ matrix.python-version }} -r requirements.txt - name: Generate HTML page run: | pipenv run make html diff --git a/requirements.txt b/requirements.txt index f6933dc..eec63e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ Sphinx==7.3.7 sphinx-autobuild==2024.4.16 sphinx-sitemap==2.6.0 furo==2024.4.27 +sphinxcontrib-googleanalytics==0.4 \ No newline at end of file diff --git a/source/conf.py b/source/conf.py index ca90bbf..cf8d660 100644 --- a/source/conf.py +++ b/source/conf.py @@ -29,7 +29,11 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx_sitemap', 'sphinx.ext.githubpages'] +extensions = [ + 'sphinx_sitemap', + 'sphinx.ext.githubpages', + 'sphinxcontrib.googleanalytics' +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -371,4 +375,6 @@ sitemap_excludes = [ "search.html", "genindex.html", -] \ No newline at end of file +] + +googleanalytics_id="GTM-MHD7527M" \ No newline at end of file diff --git a/source/programmation/c.rst b/source/programmation/c.rst index 782379a..5cd6258 100644 --- a/source/programmation/c.rst +++ b/source/programmation/c.rst @@ -20,7 +20,7 @@ Bibliothèque libpq .. index:: libpq -La bibliothèque pour le language C se nomme `libpq `_ . +La bibliothèque pour le language C se nomme `libpq `_ . D'autres langages de programmation on également leur bibliothèque mais les principales s'appuie sur la libpq