Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Migration docs to Sphinx.
Browse files Browse the repository at this point in the history
  • Loading branch information
plankter committed Mar 16, 2021
1 parent b271107 commit 639ca51
Show file tree
Hide file tree
Showing 15 changed files with 107 additions and 94 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: docs

on:
push:
branches:
- master
workflow_dispatch:

jobs:
docs:
name: Documentation
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,3 @@ Created and maintained by Vito Zanotelli [[email protected]](mailto:vito.zan
## License

[MIT](https://bodenmillergroup.github.io/imctools/LICENSE.html)

## Contents

```{toctree}
quickstart
api_reference
CONTRIBUTING
CHANGELOG
LICENSE
```
35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/_templates/autosummary/class.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/source/_templates/autosummary/module.rst

This file was deleted.

22 changes: 6 additions & 16 deletions docs/source/api_reference.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
API reference
=============

.. autosummary::
:nosignatures:
:caption: API reference
:toctree: stubs
.. toctree::
:maxdepth: 2

imctools.cli
imctools.converters
imctools.data
imctools.io

..
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
imctools.cli.rst
imctools.converters.rst
imctools.data.rst
imctools.io.rst
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
extensions = [
'myst_parser',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
# 'sphinx.ext.autosummary',
'sphinx.ext.napoleon',
'sphinx_autodoc_typehints',
'sphinx_paramlinks'
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = []

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -57,4 +57,4 @@

add_module_names = False
autodoc_member_order = 'bysource'
autosummary_generate = True
autosummary_generate = False
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
============

.. automodule:: imctools.cli
:imported-members:
:members:
:undoc-members:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
===================

.. automodule:: imctools.converters
:imported-members:
:members:
:undoc-members:
:undoc-members:
38 changes: 38 additions & 0 deletions docs/source/imctools.data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
imctools.data
=============

imctools.data.acquisition
-------------------------
.. automodule:: imctools.data.acquisition
:members:
:undoc-members:

imctools.data.acquisitiondata
-----------------------------
.. automodule:: imctools.data.acquisitiondata
:members:
:undoc-members:

imctools.data.channel
---------------------
.. automodule:: imctools.data.channel
:members:
:undoc-members:

imctools.data.panorama
----------------------
.. automodule:: imctools.data.panorama
:members:
:undoc-members:

imctools.data.session
---------------------
.. automodule:: imctools.data.session
:members:
:undoc-members:

imctools.data.slide
-------------------
.. automodule:: imctools.data.slide
:members:
:undoc-members:
44 changes: 44 additions & 0 deletions docs/source/imctools.io.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
imctools.io
===========

imctools.io.utils
-----------------
.. automodule:: imctools.io.utils
:members:
:undoc-members:

imctools.io.imc
---------------
.. automodule:: imctools.io.imc.imcparser
:members:
:undoc-members:

.. automodule:: imctools.io.imc.imcwriter
:members:
:undoc-members:

imctools.io.mcd
---------------
.. automodule:: imctools.io.mcd.mcdparser
:members:
:undoc-members:

.. automodule:: imctools.io.mcd.mcdxmlparser
:members:
:undoc-members:

.. automodule:: imctools.io.mcd.constants
:members:
:undoc-members:

imctools.io.ometiff
-------------------
.. automodule:: imctools.io.ometiff.ometiffparser
:members:
:undoc-members:

imctools.io.txt
---------------
.. automodule:: imctools.io.txt.txtparser
:members:
:undoc-members:
8 changes: 8 additions & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
```{include} ../../README.md
```

```{toctree}
quickstart
api_reference
CONTRIBUTING
CHANGELOG
LICENSE
```
4 changes: 2 additions & 2 deletions docs/source/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# imctools
# Quickstart

> `imctools` v2.x has many changes in IMC data output format, available CLI commands, dropped Python 2 and Fiji plugins support, etc.
> If you are using `imctools` in pre-processing pipelines, please install v1.x version until your pipeline is modified accordingly!
Expand Down Expand Up @@ -79,7 +79,7 @@ ac_data.save_tiffs("/home/anton/tiffs", compression=0, bigtiff=False)
parser.close()
```

### Usage of previous version 1.x
## Usage of version 1.x

```python
import imctools.io.mcdparser as mcdparser
Expand Down
6 changes: 0 additions & 6 deletions docs/source/stubs/imctools.data.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/source/stubs/imctools.io.rst

This file was deleted.

0 comments on commit 639ca51

Please sign in to comment.