From 9f98b5820d6972d1219bda8188266f2e8d29c511 Mon Sep 17 00:00:00 2001 From: kshitij-maths Date: Thu, 26 Mar 2026 13:08:39 +0100 Subject: [PATCH 1/2] docs: resolve CAD rendering --- docs/source/conf.py | 32 ++++++++++++++++++++++++++++++++ pyproject.toml | 4 ++++ 2 files changed, 36 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 332d770..7ced156 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -27,6 +27,33 @@ # -- General configuration ------------------------------------------------ +autodoc_mock_imports = [ + "OCC", + "OCC.Core", + "OCC.Core.TopoDS", + "OCC.Core.TopExp", + "OCC.Core.TopAbs", + "OCC.Core.TopTools", + "OCC.Core.GeomConvert", + "OCC.Core.BRep", + "OCC.Core.BRepBuilderAPI", + "OCC.Core.BRepPrimAPI", + "OCC.Core.BRepAlgoAPI", + "OCC.Core.STEPControl", + "OCC.Core.Interface", + "OCC.Core.IFSelect", + "OCC.Core.gp", + "OCC.Core.TColgp", + "OCC.Core.BRepOffsetAPI", + "OCC.Core.BRepFilletAPI", + "OCC.Core.Geom", + "OCC.Extend", + "OCC.Extend.TopologyUtils", + "vtk", + "vtk.util", + "vtk.util.numpy_support" +] + # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. @@ -321,3 +348,8 @@ # If true, do not generate a @detailmenu in the "Top" node's menu. # texinfo_no_detailmenu = False autodoc_member_order = "bysource" + + +# -- MathJax configuration ------------------------------------------------- +# This ensures that math formulae render correctly on hosted sites like GitHub Pages +mathjax_path = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML' \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 314e46f..fa6620f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,10 @@ [project] name = "pygem" +<<<<<<< HEAD version = "2.0.4" +======= +version = "2.0.1" +>>>>>>> f834adf (docs: resolve CAD rendering) description = "Python Geometrical Morphing" readme = {file = "README.md", content-type = "text/markdown"} keywords = [ From a284143d2ca8783ca91652bd370703730f36c929 Mon Sep 17 00:00:00 2001 From: kshitij-maths Date: Thu, 26 Mar 2026 14:03:18 +0100 Subject: [PATCH 2/2] version mismatch fix --- pyproject.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fa6620f..314e46f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,6 @@ [project] name = "pygem" -<<<<<<< HEAD version = "2.0.4" -======= -version = "2.0.1" ->>>>>>> f834adf (docs: resolve CAD rendering) description = "Python Geometrical Morphing" readme = {file = "README.md", content-type = "text/markdown"} keywords = [