Skip to content

Commit f143a4c

Browse files
authored
Merge pull request #191 from simphony/dev
Merge sprint #5.
2 parents efafee8 + 500b592 commit f143a4c

23 files changed

+855
-1194
lines changed

.dockerignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
.vscode/
2-
docs/build
3-
*.pyc
4-
build/
5-
dist/
6-
*.egg-info/
7-
.eggs/
2+
build/

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
pip install wheel
2525
pip install -r requirements.txt
2626
- name: Build docs
27-
run: python setup.py install
27+
run: sphinx-build docs/source docs/build/html

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
.vscode/
2-
docs/build
3-
*.pyc
4-
build/
5-
dist/
6-
*.egg-info/
7-
.eggs/
2+
build/

docs/source/api_ref.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
```eval_rst
1+
```{eval-rst}
22
.. raw:: html
33
44
<h1>API Reference</h1>
@@ -7,14 +7,14 @@
77
This document is for developers and/or advanced users of OSP-core, it contains all API details.
88

99
## CUDS
10-
```eval_rst
10+
```{eval-rst}
1111
.. autoclass:: osp.core.cuds.Cuds
1212
:members:
1313
:show-inheritance:
1414
```
1515

1616
## Ontology interface
17-
```eval_rst
17+
```{eval-rst}
1818
.. autoclass:: osp.core.ontology.namespace.OntologyNamespace
1919
:members:
2020
:special-members: __getattr__, __getitem__, __contains__, __iter__, __eq__
@@ -46,7 +46,7 @@ This document is for developers and/or advanced users of OSP-core, it contains a
4646
```
4747

4848
## Sessions
49-
```eval_rst
49+
```{eval-rst}
5050
.. autoclass:: osp.core.session.session.Session
5151
:members:
5252
:show-inheritance:
@@ -73,14 +73,14 @@ This document is for developers and/or advanced users of OSP-core, it contains a
7373
```
7474

7575
## Registry
76-
```eval_rst
76+
```{eval-rst}
7777
.. autoclass:: osp.core.session.registry.Registry
7878
:members:
7979
:show-inheritance:
8080
```
8181

8282
## Utilities
83-
```eval_rst
83+
```{eval-rst}
8484
.. automodule:: osp.core.utils
8585
:imported-members:
8686
:members:

docs/source/conf.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# import os
88
# import sys
99
# sys.path.insert(0, os.path.abspath('.'))
10-
from recommonmark.transform import AutoStructify
1110

1211
# -- Project information -----------------------------------------------------
1312
project = 'SimPhoNy'
@@ -18,7 +17,7 @@
1817

1918
# -- General configuration ---------------------------------------------------
2019
extensions = [
21-
'recommonmark', # markdown source support
20+
'myst_parser', # markdown source support
2221
'sphinx.ext.autodoc', # API ref
2322
'sphinx.ext.napoleon', # API ref Google and NumPy style
2423
'sphinx.ext.viewcode', # API link to source
@@ -60,18 +59,4 @@
6059
latex_logo = '_static/img/simphony_logo_dark.png'
6160
latex_elements = {'figure_align': 'H'}
6261

63-
64-
def setup(app):
65-
# Configuration for recommonmark
66-
app.add_config_value('recommonmark_config', {
67-
# 'auto_toc_tree_section': 'Contents',
68-
# 'enable_math': False,
69-
# 'enable_inline_math': False,
70-
'auto_toc_maxdepth': 2,
71-
'enable_eval_rst': True,
72-
# 'enable_auto_doc_ref': True,
73-
}, True)
74-
app.add_transform(AutoStructify)
75-
76-
7762
nbsphinx_allow_errors = True

docs/source/contribute.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,23 @@ All wrappers and OSP-core are part of a common directory structure:
4242
An owner of the project should be tagged for review.
4343
They will review and merge the PR if the fix is correct, deleting the `issue branch` afterwards.
4444
The changes should be clearly explained in the issue/Pull Request.
45-
```eval_rst
46-
.. warning::
45+
```{warning}
4746
If the issue is a critical software bug detected in the stable release, a
48-
:code:`hotfix branch` should be created from the :code:`master/main` branch
47+
`hotfix branch` should be created from the `master/main` branch
4948
instead.
5049
5150
After committing to such branch, a new Pull/Merge request (targeting
52-
:code:`dev`) should be created. If the fix is correct, the project owner
53-
will merge the PR to :code:`dev`, additionally merge the
54-
:code:`hotfix branch` to :code:`master/main`, and then delete the
55-
:code:`hotfix branch`.
51+
`dev`) should be created. If the fix is correct, the project owner
52+
will merge the PR to `dev`, additionally merge the
53+
`hotfix branch` to `master/main`, and then delete the
54+
`hotfix branch`.
5655
```
5756
- Once the features for a release have been reached, `dev` will be merged to
5857
`master/main`. Every new commit in the `master/main` branch generally corresponds
59-
to a new release, which is labeled with a
58+
to a new release, which is labelled with a
6059
[git tag](https://git-scm.com/book/en/v2/Git-Basics-Tagging) matching its
61-
version number. An exception to this rule may apply, for example when several
62-
critical hotfixes are applied in a row, as it would then be better to just to
60+
version number. An exception to this rule may apply, for example when several
61+
critical hotfixes are applied in a row, as it would then be better to just to
6362
publish a single release afterwards. In regard to version numbering, we adhere to the
6463
[_Semantic versioning_](https://semver.org/) rules.
6564

0 commit comments

Comments
 (0)