Skip to content

Commit 4c90486

Browse files
authored
Cleanup docs (#621)
1 parent f1403d0 commit 4c90486

25 files changed

+545
-584
lines changed

docs/cli_usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The main one is `convert`
88
.. code-block:: bash
99
1010
sssom convert -i tests/data/basic.tsv -o basic.ttl
11-
11+
1212
.. click:: sssom.cli:main
1313
:prog: sssom
1414
:nested: full

docs/developer_docs/api.rst

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,33 @@ Datamodel
77
Top-level Document object
88

99
.. automodule:: sssom.sssom_document
10-
:members:
11-
:inherited-members:
12-
:show-inheritance:
10+
:members:
11+
:inherited-members:
12+
:show-inheritance:
1313

1414
A Document holds a MappingSet which is a collection of mappings
1515

1616
.. automodule:: sssom.sssom_datamodel
17-
:members:
18-
:inherited-members:
19-
:show-inheritance:
20-
17+
:members:
18+
:inherited-members:
19+
:show-inheritance:
2120

2221
I/O
2322
---
2423

2524
Conversion between TSV/pandas, internal datamodel and RDF
2625

2726
.. automodule:: sssom.io
28-
:members:
29-
:inherited-members:
30-
:show-inheritance:
31-
27+
:members:
28+
:inherited-members:
29+
:show-inheritance:
3230

3331
Utils
3432
-----
3533

3634
Utils - currently boomer-specific
3735

3836
.. automodule:: sssom.util
39-
:members:
40-
:inherited-members:
41-
:show-inheritance:
42-
37+
:members:
38+
:inherited-members:
39+
:show-inheritance:

docs/developer_docs/modules.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Technical Documentation
2-
========
2+
=======================
33

44
.. toctree::
5-
:maxdepth: 4
5+
:maxdepth: 4
66

7-
api
8-
sssom
9-
sphinx
7+
api
8+
sssom
9+
sphinx

docs/developer_docs/sphinx.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Using your terminal, ``cd`` to the 'docs' directory within the project.
1010
New page
1111
--------
1212

13-
If you need to add a new page create a new file in this directory (docs/*filename*.rst). Update the content
14-
within *filename*.rst to the documentation you wish to add using the guidance provided by the
15-
`Sphinx <https://www.sphinx-doc.org/en/master/contents.html>`_ web page.
13+
If you need to add a new page create a new file in this directory (docs/*filename*.rst). Update the
14+
content within *filename*.rst to the documentation you wish to add using the guidance provided by
15+
the `Sphinx <https://www.sphinx-doc.org/en/master/contents.html>`_ web page.
1616

1717
Update and page deployment
18-
-----------
18+
--------------------------
1919

20-
This is done automatically by GitHub Actions through a workflow as soon as the
21-
pull request is merged to the ``master`` branch.
20+
This is done automatically by GitHub Actions through a workflow as soon as the pull request is
21+
merged to the ``master`` branch.

docs/developer_docs/sssom.rst

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,92 +5,91 @@ sssom.cli module
55
----------------
66

77
.. automodule:: sssom.cli
8-
:members:
9-
:undoc-members:
10-
:show-inheritance:
8+
:members:
9+
:undoc-members:
10+
:show-inheritance:
1111

1212
sssom.cliques module
1313
--------------------
1414

1515
.. automodule:: sssom.cliques
16-
:members:
17-
:undoc-members:
18-
:show-inheritance:
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
1919

2020
sssom.context module
2121
--------------------
2222

2323
.. automodule:: sssom.context
24-
:members:
25-
:undoc-members:
26-
:show-inheritance:
24+
:members:
25+
:undoc-members:
26+
:show-inheritance:
2727

2828
sssom.io module
2929
---------------
3030

3131
.. automodule:: sssom.io
32-
:members:
33-
:undoc-members:
34-
:show-inheritance:
35-
:noindex:
32+
:members:
33+
:undoc-members:
34+
:show-inheritance:
35+
:noindex:
3636

3737
sssom.parsers module
3838
--------------------
3939

4040
.. automodule:: sssom.parsers
41-
:members:
42-
:undoc-members:
43-
:show-inheritance:
41+
:members:
42+
:undoc-members:
43+
:show-inheritance:
4444

4545
sssom.sparql\_util module
4646
-------------------------
4747

4848
.. automodule:: sssom.sparql_util
49-
:members:
50-
:undoc-members:
51-
:show-inheritance:
52-
:noindex:
49+
:members:
50+
:undoc-members:
51+
:show-inheritance:
52+
:noindex:
5353

5454
sssom.sssom\_datamodel module
5555
-----------------------------
5656

5757
.. automodule:: sssom.sssom_datamodel
58-
:members:
59-
:undoc-members:
60-
:show-inheritance:
61-
:noindex:
58+
:members:
59+
:undoc-members:
60+
:show-inheritance:
61+
:noindex:
6262

6363
sssom.sssom\_document module
6464
----------------------------
6565

6666
.. automodule:: sssom.sssom_document
67-
:members:
68-
:undoc-members:
69-
:show-inheritance:
70-
:noindex:
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:
70+
:noindex:
7171

7272
sssom.util module
7373
-----------------
7474

7575
.. automodule:: sssom.util
76-
:members:
77-
:undoc-members:
78-
:show-inheritance:
79-
:noindex:
76+
:members:
77+
:undoc-members:
78+
:show-inheritance:
79+
:noindex:
8080

8181
sssom.writers module
8282
--------------------
8383

8484
.. automodule:: sssom.writers
85-
:members:
86-
:undoc-members:
87-
:show-inheritance:
88-
85+
:members:
86+
:undoc-members:
87+
:show-inheritance:
8988

9089
Module contents
9190
---------------
9291

9392
.. automodule:: sssom
94-
:members:
95-
:undoc-members:
96-
:show-inheritance:
93+
:members:
94+
:undoc-members:
95+
:show-inheritance:

docs/examples.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ Examples
22
========
33

44
``parse`` command
5-
------------------
5+
-----------------
66

7-
The ``parse`` command is a way to import a mapping file. In this example, the file `basic.tsv <https://github.com/mapping-commons/sssom-py/blob/master/tests/data/basic.tsv>`_
8-
will be parsed. The CLI command is as follows:
7+
The ``parse`` command is a way to import a mapping file. In this example, the file `basic.tsv
8+
<https://github.com/mapping-commons/sssom-py/blob/master/tests/data/basic.tsv>`_ will be parsed. The
9+
CLI command is as follows:
910

1011
.. code-block:: bash
1112
1213
sssom parse basic.tsv
1314
14-
This results in the contents of the file displayed on the terminal.
15-
If the result is needed to be exported into another tsv, an ``--output``
16-
parameter could be passed and the command will look like this:
15+
This results in the contents of the file displayed on the terminal. If the result is needed to be
16+
exported into another tsv, an ``--output`` parameter could be passed and the command will look like
17+
this:
1718

1819
.. code-block:: bash
1920
@@ -22,20 +23,18 @@ parameter could be passed and the command will look like this:
2223
``convert`` command
2324
-------------------
2425

25-
The ``convert`` command converts files from one format to another. In this example,
26-
we convert a tsv file into an owl format.
26+
The ``convert`` command converts files from one format to another. In this example, we convert a tsv
27+
file into an owl format.
2728

2829
.. code-block:: bash
2930
3031
sssom convert basic.tsv --output basic.owl --output-format owl
3132
32-
3333
``diff`` command
34-
-------------------
34+
----------------
3535

3636
Mapping files can be compared and differences highlighted using the ``diff`` command.
3737

3838
.. code-block:: bash
3939
4040
sssom diff basic.tsv basic2.tsv -o diff_output.tsv
41-

docs/index.rst

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
1-
.. sssom-py documentation master file, created by
2-
sphinx-quickstart on Fri Aug 12 08:35:01 2022.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
1+
..
2+
sssom-py documentation master file, created by
3+
sphinx-quickstart on Fri Aug 12 08:35:01 2022.
4+
You can adapt this file completely to your liking, but it should at least
5+
contain the root `toctree` directive.
56
67
SSSOM Mapping Format Python Utilities
78
=====================================
89

9-
SSSOM (Simple Standard for Sharing Ontology Mappings) is a TSV format
10-
for representing ontology mappings, or mappings between pairs of
11-
entities in general:
10+
SSSOM (Simple Standard for Sharing Ontology Mappings) is a TSV format for representing ontology
11+
mappings, or mappings between pairs of entities in general:
1212

13-
GitHub: https://github.com/mapping-commons/sssom
14-
Documentation: https://mapping-commons.github.io/sssom/
15-
Publication: https://arxiv.org/abs/2112.07051
16-
Tutorials: https://mapping-commons.github.io/sssom/tutorial/
13+
- GitHub: https://github.com/mapping-commons/sssom
14+
- Documentation: https://mapping-commons.github.io/sssom/
15+
- Publication: https://arxiv.org/abs/2112.07051
16+
- Tutorials: https://mapping-commons.github.io/sssom/tutorial/
1717

18-
sssom-py is a Python library and command line toolkit for working with
19-
SSSOM:
18+
sssom-py is a Python library and command line toolkit for working with SSSOM:
2019

2120
GitHub: https://github.com/mapping-commons/sssom-py
2221

23-
2422
Contents
2523
--------
2624

2725
.. toctree::
28-
:maxdepth: 2
29-
:caption: Contents:
26+
:maxdepth: 2
27+
:caption: Contents:
3028

31-
installation
32-
cli_usage
33-
examples
34-
sphinx
35-
developer_docs/modules
29+
installation
30+
cli_usage
31+
examples
32+
sphinx
33+
developer_docs/modules
3634

3735
Indices and tables
3836
==================
3937

40-
* :ref:`genindex`
41-
* :ref:`modindex`
42-
* :ref:`search`
38+
- :ref:`genindex`
39+
- :ref:`modindex`
40+
- :ref:`search`

0 commit comments

Comments
 (0)