Skip to content

Commit

Permalink
new docs format, fixes cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
David Erb committed Jun 7, 2023
1 parent 0419cb3 commit 7ce7293
Show file tree
Hide file tree
Showing 24 changed files with 107 additions and 154 deletions.
34 changes: 2 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,6 @@ xchembku

XChem Business Knowledge Unit. Service, Client, API, persistent store.

Installation
-----------------------------------------------------------------------
::

pip install xchembku

xchembku --version

Documentation
-----------------------------------------------------------------------

See https://www.cs.diamond.ac.uk/xchembku for more detailed documentation.

Building and viewing the documents locally::

git clone git+https://gitlab.diamond.ac.uk/scisoft/bxflow/xchembku.git
cd xchembku
virtualenv /scratch/$USER/venv/xchembku
source /scratch/$USER/venv/xchembku/bin/activate
pip install -e .[dev]
make -f .xchembku/Makefile validate_docs
browse to file:///scratch/$USER/venvs/xchembku/build/html/index.html

Topics for further documentation:

- TODO list of improvements
- change log


..
Anything below this line is used when viewing README.rst and will be replaced
when included in index.rst
Database service for other XChem Lifesupport services.

For documentation see: https://diamondlightsource.github.io/xchembku
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

# If true, Sphinx will warn about all references where the target cannot
# be found.
nitpicky = True
nitpicky = False

# A list of (type, target) tuples (by default empty) that should be ignored when
# generating warnings in "nitpicky mode". Note that type should include the
Expand Down Expand Up @@ -197,4 +197,4 @@ def setup(app):
app.connect("source-read", ultimateReplace)


# dae_devops_fingerprint c1c571c112da8688ea81070cffde5401
# dae_devops_fingerprint 555976e9a952e0d19b731360f4d76fc4
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
..
Use the file automatically generated by dae-devops.
.. include:: ../../../.dae-devops/docs/developing.rst
.. include:: ../../.dae-devops/docs/conventions.rst
4 changes: 4 additions & 0 deletions docs/explanations/docs_structure.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
..
Use the file automatically generated by dae-devops.
.. include:: ../../.dae-devops/docs/docs_structure.rst
12 changes: 12 additions & 0 deletions docs/explanations/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
:orphan:

Explanations
============

Explanation, or discussions, clarify and illuminate a particular topic. They broaden the documentation's coverage of a topic.

.. toctree::

docs_structure
conventions
todo
7 changes: 7 additions & 0 deletions docs/explanations/todo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TODO
=======================================================================

- Remove matplotlib from imports done by mib2hdfConvert package to decrease load time and debug volume.
- Make sure we can collect and process mib files which are not in a material subdirectory.
- Add unit tests for the mib_convert task.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
..
Use the file automatically generated by dae-devops.
.. include:: ../../../.dae-devops/docs/testing.rst
.. include:: ../../.dae-devops/docs/developing.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
..
Use the file automatically generated by dae-devops.
.. include:: ../../../.dae-devops/docs/devops.rst
.. include:: ../../.dae-devops/docs/devops.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
..
Use the file automatically generated by dae-devops.
.. include:: ../../../.dae-devops/docs/installing.rst
.. include:: ../../.dae-devops/docs/documenting.rst
16 changes: 16 additions & 0 deletions docs/how-to/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
:orphan:

How-to Guides
=============

How-to guides take the reader through the steps required to solve a real-world problem.
Practical step-by-step guides for the more experienced user.

.. toctree::

installing
developing
testing
documenting
devops

5 changes: 5 additions & 0 deletions docs/how-to/installing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
..
Use the file automatically generated by dae-devops.
.. include:: ../../.dae-devops/docs/installing.rst

4 changes: 4 additions & 0 deletions docs/how-to/testing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
..
Use the file automatically generated by dae-devops.
.. include:: ../../.dae-devops/docs/testing.rst
27 changes: 9 additions & 18 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
.. include:: ../README.rst
:end-before: when included in index.rst
xchembku
=======================================================================

Source repository
-----------------------------------------------------------------------
XChem Business Knowledge Unit. Service, Client, API, persistent store.

${git_url}/${repository_name}

Documentation
-----------------------------------------------------------------------

.. grid:: 2

.. grid-item-card:: :material-regular:`person;4em`
:link: user/index
:link-type: doc

The User Guide contains documentation on how to install and use the software.
Database service for other XChem Lifesupport services.

.. toctree::
:hidden:
:titlesonly:

user/index
tutorials/index
how-to/index
explanations/index
reference/index
7 changes: 7 additions & 0 deletions docs/reference/classes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Classes
=======================================================================

DirectPoll Collector
-----------------------------------------------------------------------
.. autoclass:: xchembku_lib.datafaces.direct.Direct
:members:
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Command Line
=======================================================================

dls-multiconf
xchembku
-----------------------------------------------------------------------
.. argparse::
:module: dls_multiconf_lib.__main__
:module: xchembku_lib.__main__
:func: get_parser
:prog: dls-multiconf
:prog: xchembku
13 changes: 13 additions & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:orphan:

Reference
=========

Reference guides are technical descriptions of the machinery and how to operate it.

.. toctree::
:maxdepth: 2

command_line
classes
modules
7 changes: 7 additions & 0 deletions docs/reference/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Functions
=======================================================================

Version Functions
------------------------------------------------------------------------
.. automodule:: xchembku_lib.version
:members:
11 changes: 11 additions & 0 deletions docs/tutorials/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:orphan:

Tutorials
=========

Tutorials are lessons that take the reader by the hand through a series of steps to complete a project of some kind.
They are what your project needs in order to show a beginner that they can achieve something with it.

.. toctree::

tbd
2 changes: 1 addition & 1 deletion docs/user/tutorials/tbd.rst → docs/tutorials/tbd.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TBD
TBD Tutorial
=======================================================================

TBD
18 changes: 0 additions & 18 deletions docs/user/explanations/25-docs-structure.rst

This file was deleted.

58 changes: 0 additions & 58 deletions docs/user/index.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/user/reference/api.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/user/reference/api/classes.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/user/reference/api/modules.rst

This file was deleted.

0 comments on commit 7ce7293

Please sign in to comment.