Skip to content

Commit 2b775e1

Browse files
committed
update docs
1 parent 807c86a commit 2b775e1

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ script:
3636
- mkdir data
3737
- which nosetests
3838
- nosetests tests -v --with-id --with-coverage --cover-package=pySDC,tutorial --cover-inclusive --cover-html --cover-html-dir=target/doc/build/test_coverage
39-
- travis-sphinx --branches=pySDC_v2,master -n build
39+
- travis-sphinx --branches=pySDC_v2,master build
4040

4141
after_success:
4242
- travis-sphinx deploy

docs/source/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Playgrounds
4444
API documentation
4545
-----------------
4646

47+
.. include:: ../../pySDC/README.rst
48+
4749
.. toctree::
4850
:maxdepth: 3
4951

docs/update_apidocs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ echo "generating new .rst files ..."
2525
#${SPHINX_APIDOC} -o docs/source/pySDC/implementations pySDC/implementations --force -M -T
2626
#${SPHINX_APIDOC} -o docs/source/pySDC/helpers pySDC/helpers --force -M -T
2727
${SPHINX_APIDOC} -o docs/source/pySDC pySDC --force -M -T
28+
rm docs/source/pySDC/pySDC.rst

pySDC/README.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
This contains the main parts of pySDC.
2+
In ``core``, the basic structure is implemented and abstract classes show how user-level functionality has to be included.
3+
Many implementations of e.g. sweepers, data types or problems can be found in ``implementations``.
4+
These contain the specialized ingredients for a user-defined setup, e.g. an LU-based MLSDC run for the generalized Fisher's equation with Gauss-Radau nodes.
5+
In ``helpers``, we can find helper functions used by the core routines, the implementations or by the user.
6+
7+
The Python files contained in these three packages are fully documented and their API is generated automatically with sphinx-apidoc after each update.
8+
The API (as well as the tutorial pages) can also be generated manually and locally by executing
9+
10+
.. code-block:: none
11+
12+
> ./docs/update_apidocs.sh
13+
> nosetests tests -v --with-id --with-coverage --cover-inclusive --cover-package=pySDC,tutorial --cover-html --cover-html-dir=target/doc/build/test_coverage
14+
> travis-sphinx build
15+
16+
in the root directory. Then, the main index can be found in `` target/doc/build/index.html``. Anyway, here is the online version:
17+

0 commit comments

Comments
 (0)