From 7483fd46c6c5cda02417db36d9e4c09474eac185 Mon Sep 17 00:00:00 2001 From: jvonrick Date: Tue, 7 May 2024 17:45:05 +0200 Subject: [PATCH] Use latest python version for docs. Implement fix for sort gallery --- .github/workflows/ci_cd.yml | 2 +- doc/source/conf.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 235b225a8..ebaed7525 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -12,7 +12,7 @@ on: inputs: env: - MAIN_PYTHON_VERSION: '3.9' + MAIN_PYTHON_VERSION: '3.12' CONTAINER_TAG: 'latest' PACKAGE_NAME: 'ansys-dpf-composites' DOCUMENTATION_CNAME: 'composites.dpf.docs.pyansys.com' diff --git a/doc/source/conf.py b/doc/source/conf.py index 603669a6e..27c39c11a 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -6,7 +6,6 @@ import numpy as np import pyvista from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper -from sphinx_gallery.sorting import FileNameSortKey from ansys.dpf.composites import __version__ @@ -133,7 +132,7 @@ # Remove the "Download all examples" button from the top level gallery "download_all_examples": False, # Sort gallery example by file name instead of number of lines (default) - "within_subsection_order": FileNameSortKey, + "within_subsection_order": "FileNameSortKey", # directory where function granular galleries are stored "backreferences_dir": None, # Modules for which function level galleries are created. In