Skip to content

Commit 2517217

Browse files
authored
Merge pull request #10 from d-SEAMS/pyseams_docs
Pyseams docs
2 parents ee7776f + e690542 commit 2517217

File tree

8 files changed

+2269
-92
lines changed

8 files changed

+2269
-92
lines changed

docs/source/conf.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@
1111
copyright = '2024, d-SEAMS developers'
1212
author = 'Ruhila'
1313

14+
import pyseams
15+
1416
# -- General configuration ---------------------------------------------------
1517
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1618

1719
#referenced my favourite [1]
1820
extensions = [
1921
"myst_parser",
20-
"autodoc2",
21-
"sphinx.ext.autodoc",
22-
"sphinx.ext.napoleon",
22+
#"autodoc2",
2323
"sphinx.ext.intersphinx",
2424
"sphinx.ext.todo",
2525
"sphinx.ext.githubpages",
2626
"sphinx_contributors",
2727
"sphinx_copybutton",
2828
"sphinx_design",
2929
"sphinxcontrib.spelling",
30+
"sphinx.ext.autosummary",
31+
"sphinx.ext.autodoc",
32+
"sphinx.ext.napoleon",
3033
]
34+
autosummary_generate = True
3135

32-
autodoc2_render_plugin = "myst"
33-
autodoc2_packages = [
34-
f"../../src/{project.lower()}",
35-
]
3636

3737
myst_enable_extensions = [
3838
"deflist",
@@ -47,6 +47,11 @@
4747
templates_path = ['_templates']
4848
exclude_patterns = []
4949

50+
# The suffix(es) of source filenames.
51+
source_suffix = [".rst", ".md"]
52+
53+
# The master toctree document.
54+
master_doc = "index"
5055

5156

5257
# -- Options for HTML output -------------------------------------------------
@@ -63,6 +68,7 @@
6368
}
6469
# --- Plugin options
6570
autodoc2_render_plugin = "myst"
71+
autodoc2_packages = [f"../../{project.lower()}"]
6672

6773

6874
#references

docs/source/index.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,25 @@ cd pyseams
2727

2828

2929

30-
## Additional Topics
30+
## documentation for pyseams-bindings
3131

32-
.. toctree::
33-
:maxdepth: 2
34-
:caption: Contents:
35-
36-
api/library_root
32+
```{toctree}
33+
:maxdepth: 2
34+
:caption: Contents
3735
36+
```
3837

38+
```{eval-rst}
39+
.. automodule:: pyseams.cyoda
40+
```
3941

42+
<!-- ```{autodoc2-summary}
43+
pyseams.cyoda
44+
```
4045
46+
```{eval-rst}
4147
48+
``` -->
4249

4350
## Indices and tables
4451

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ py.extension_module(
3939

4040
# pyseams main package
4141
py.install_sources([
42-
'pyseams/__init__.py',
42+
'src/__init__.py',
4343
],
4444
pure: false, # install next to compiled extension
4545
subdir: 'pyseams/'

0 commit comments

Comments
 (0)