Skip to content

Commit 86d30c7

Browse files
committed
fix sphinx
add sphinx install fix sphinx fix version fix sphinx build fix sphinx test new copyright year fix docstrings and sphinx sphinx napoleon show cloudmesh.ee instead of cloudmesh
1 parent 47490d7 commit 86d30c7

11 files changed

Lines changed: 43 additions & 127 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
run: |
2121
python -m pip install -r requirements.txt
2222
python -m pip install -r requirements-dev.txt
23+
python -m pip install -r requirements-sphinx.txt
2324
python -m pip install -e .
2425
2526
- name: Build Sphinx Site

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,5 @@ ENV/
9191

9292
# Rope project settings
9393
.ropeproject
94+
95+
docs/source/generated/

docs/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ help:
2323
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2424
%: Makefile
2525
make -f Makefile man
26-
sphinx-apidoc -o source ../cloudmesh
26+
mkdir -p source/generated
27+
python -m sphinx.ext.apidoc -o source/generated ../src/cloudmesh --implicit-namespaces -f --remove-old
2728
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2829

2930
#man:

docs/source/api.rst

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
Cloudmesh ee
2-
================
3-
4-
.. autosummary::
5-
:toctree: generated
6-
7-
cloudmesh.ee
8-
manual/ee
9-
10-
.. rubric:: Modules
11-
12-
.. toctree::
13-
:maxdepth: 2
14-
15-
modules
1+
API Reference
2+
=============
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
generated/cloudmesh.ee

docs/source/cloudmesh.ee.command.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/source/cloudmesh.ee.rst

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/source/cloudmesh.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
import sphinx_rtd_theme
1010
import os
1111
import sys
12-
import cloudmesh.ee
13-
from cloudmesh.ee.__version__ import version as cc_version
12+
13+
from importlib.metadata import version as pkg_version
14+
cc_version = pkg_version("cloudmesh-ee")
1415

1516
rtd = True
1617
# rtd = False
1718

18-
sys.path.insert(0, os.path.abspath('..'))
19-
# sys.path.insert(0, os.path.abspath('../../cloudmesh'))
19+
sys.path.insert(0, os.path.abspath('../../src'))
20+
sys.path.insert(0, os.path.abspath('../..'))
2021

2122

2223
numfig = True
@@ -26,7 +27,7 @@
2627

2728

2829
project = 'cloudmesh-ee'
29-
copyright = '2022, Gregor von Laszewski'
30+
copyright = '2025, Gregor von Laszewski'
3031
author = 'Gregor von Laszewski'
3132
release = cc_version
3233

@@ -48,7 +49,7 @@
4849
extensions.append('sphinx_copybutton')
4950

5051
#extensions.append('sphinx.ext.githubpages')
51-
#extensions.append('sphinx.ext.napoleon')
52+
extensions.append('sphinx.ext.napoleon')
5253
#extensions.append('sphinx.ext.todo')
5354

5455

docs/source/modules.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

requirements-sphinx.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ mistune==0.8.4
1313
sphinxcontrib-openapi
1414
sphinx-copybutton
1515
sphinx_autodoc_typehints
16+
lxml[html_clean]

0 commit comments

Comments
 (0)