Skip to content

Commit 3744658

Browse files
committed
Minor tweaks to documentation
1 parent 0b31080 commit 3744658

File tree

5 files changed

+28
-7
lines changed

5 files changed

+28
-7
lines changed

docs/sphinx/source/api/Installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Requirements
44

5-
Python >=3.7 is required. Support on Python 3.11 is limited.
5+
Python >=3.7 is required. Support on Python 3.11 is limited (see [here](https://github.com/ModECI/modelspec/issues/25)).
66

77
## Installation using pip
88

docs/sphinx/source/api/Quickstart.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ More details, and importantly, how to set up a [virtual environment](https://vir
1515

1616
### Simple example
1717

18-
A basic example which illustrates how to create the specification for a document(model) and create serialized instances can be found [here](examples/README)
18+
A basic example which illustrates how to create the specification for a document(model) and create serialized instances can be found [here](examples/README).
1919

2020
### Serialization formats
2121

22-
Python scripts can be used to generate the specification of a type of model(e.g. [this](https://github.com/ModECI/modelspec/blob/main/examples/document.py)), but the models are saved in standardized format in either text based [JSON](https://github.com/ModECI/modelspec/blob/main/examples/document.json) or [YAML](https://github.com/ModECI/modelspec/blob/main/examples/document.yaml) formats or in binary [BSON](https://github.com/ModECI/modelspec/blob/main/examples/document.bson) format.
22+
Python scripts can be used to generate the specification of a type of model(e.g. [this](https://github.com/ModECI/modelspec/blob/main/examples/document.py)), but the models are saved in standardized format in either text based [JSON](https://github.com/ModECI/modelspec/blob/main/examples/document.json) or [YAML](https://github.com/ModECI/modelspec/blob/main/examples/document.yaml) formats or in binary [BSON](https://github.com/ModECI/modelspec/blob/main/examples/document.bson) format. Support for XML serialization is under development.
2323

24-
### Currently supported environments
24+
### Current formats using modelspec
2525

2626
#### MDF
2727

28-
Mdf uses modelspec to create the structure of its models and convert the models into serialize formats such as json, yaml, and bson.
28+
MDF uses modelspec to create the structure of its models and convert the models into serialized formats such as JSON, YAML, and BSON.
2929

3030
#### NeuroML
3131

32-
NeuroMLite uses modelspec to create the structure of its models and convert the models into serialize formats such as json, yaml, and bson.
32+
NeuroMLlite uses modelspec to create the structure of its models and convert the models into serialize formats such as JSON, YAML, and BSON.
Binary file not shown.

docs/sphinx/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Welcome to Modelspec's documentation
1111
Modelspec is an open source, community-supported standard library used for specifying the structure of models
1212
and enabling automatic serialization.
1313
It is still in development and it is being used by
14-
`MDF <https://github.com/ModECI/MDF>`_ and `NeuroMLite <https://github.com/NeuroML/NeuroMLlite>`_.
14+
`MDF <https://github.com/ModECI/MDF>`_ and `NeuroMLlite <https://github.com/NeuroML/NeuroMLlite>`_.
1515

1616
.. toctree::
1717
:maxdepth: 1

test_all.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,40 @@
11
#!/bin/bash
22
set -ex
33

4+
## Install
5+
46
pip install .
57

8+
9+
## Test main example
10+
611
cd examples
712
python document.py
813

914
cd test
1015
python test.py
1116

17+
18+
## Test NeuroML example
19+
1220
cd ../neuroml2
1321
python neuroml2_spec.py
1422

1523
cd ../..
1624

25+
26+
## Run pytest
27+
1728
pytest tests -v
1829

30+
31+
## Generate the docs
32+
33+
cd docs
34+
python generate.py
35+
cd sphinx
36+
make clean
37+
make html
38+
cd ..
39+
1940
pre-commit run --all-files

0 commit comments

Comments
 (0)