Skip to content

Commit dc63701

Browse files
authored
Rtd update (#58)
* Update read the docs config *Update copyright year in docs * Update python version * Change build configuration * Change version read in config * Refactor config files * Refactor api config
1 parent 517013b commit dc63701

8 files changed

Lines changed: 23 additions & 22 deletions

File tree

.readthedocs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ version: 2
33
sphinx:
44
configuration: docs/source/conf.py
55

6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.12"
10+
611
python:
7-
version: 3.11
812
install:
913
- requirements: requirements.txt
1014
- requirements: docs/requirements.txt

docs/source/api/Siterator.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Siterator
22
=========
33

4-
.. automodule:: Splitter
4+
.. automodule:: stree
55
.. autoclass:: Siterator
66
:members:
77
:undoc-members:
88
:private-members:
9-
:show-inheritance:
9+
:show-inheritance:
10+
:noindex:

docs/source/api/Snode.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Snode
22
=====
33

4-
.. automodule:: Splitter
5-
.. autoclass:: Snode
4+
.. autoclass:: stree.Splitter.Snode
65
:members:
76
:undoc-members:
87
:private-members:
9-
:show-inheritance:
8+
:show-inheritance:
9+
:noindex:

docs/source/api/Splitter.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Splitter
22
========
33

4-
.. automodule:: Splitter
4+
.. automodule:: stree.Splitter
55
.. autoclass:: Splitter
66
:members:
77
:undoc-members:
88
:private-members:
9-
:show-inheritance:
9+
:show-inheritance:
10+
:noindex:

docs/source/api/Stree.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Stree
66
:members:
77
:undoc-members:
88
:private-members:
9-
:show-inheritance:
9+
:show-inheritance:
10+
:noindex:

docs/source/conf.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,21 @@
66

77
# -- Path setup --------------------------------------------------------------
88

9-
# If extensions (or modules to document with autodoc) are in another directory,
10-
# add these directories to sys.path here. If the directory is relative to the
11-
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
13-
import os
149
import sys
15-
from stree._version import __version__
10+
from pathlib import Path
11+
12+
sys.path.insert(0, str(Path(__file__).parent.parent.parent))
1613

17-
sys.path.insert(0, os.path.abspath("../../stree/"))
14+
import stree
1815

1916
# -- Project information -----------------------------------------------------
2017

2118
project = "STree"
22-
copyright = "2020 - 2022, Ricardo Montañana Gómez"
19+
copyright = "2020 - 2024, Ricardo Montañana Gómez"
2320
author = "Ricardo Montañana Gómez"
2421

2522
# The full version, including alpha/beta/rc tags
26-
version = __version__
27-
release = version
28-
23+
version = release = stree.__version__
2924

3025
# -- General configuration ---------------------------------------------------
3126

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Welcome to STree's documentation!
55
:caption: Contents:
66
:titlesonly:
77

8-
98
stree
109
install
1110
hyperparameters

stree/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.4.1"
1+
__version__ = "1.4.0"

0 commit comments

Comments
 (0)