Skip to content

Commit

Permalink
Update docs and change position of notebooks in order to make sphinx …
Browse files Browse the repository at this point in the history
…find them (see spatialaudio/nbsphinx#170)
  • Loading branch information
maxgalli committed Feb 2, 2022
1 parent 18cead5 commit 660b0d5
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ docs-gen:
image: gitlab-registry.cern.ch/ci-tools/ci-worker:cc7
script:
- yum -y install python3 pip3 locmap
- pip3 install sphinx breathe sphinx_rtd_theme sphinx-argparse
- pip3 install sphinx breathe sphinx_rtd_theme sphinx-argparse nbsphinx
- mkdir "$CI_OUTPUT_DIR"
- cd docs
- make html
- cd docs/source
- sphinx-apidoc -o modules -E -M ../../higgs_dna
- cd ..
- sphinx-build source build
- cd -
- mv docs/build/html/* "$CI_OUTPUT_DIR"
- mv docs/build/* "$CI_OUTPUT_DIR"
artifacts:
paths:
# Upload as an artifact the folder where the output has been generated
Expand Down
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
extensions = [
'nbsphinx',
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.ifconfig',
Expand Down
3 changes: 3 additions & 0 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Examples
========

.. toctree::
../../notebooks/basics
1 change: 1 addition & 0 deletions docs/source/modules/higgs_dna.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Subpackages

higgs_dna.metaconditions
higgs_dna.samples
higgs_dna.selections
higgs_dna.systematics
higgs_dna.tools
higgs_dna.utils
Expand Down
18 changes: 18 additions & 0 deletions docs/source/modules/higgs_dna.samples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,21 @@ Submodules
:members:
:undoc-members:
:show-inheritance:


.. automodule:: higgs_dna.samples.file
:members:
:undoc-members:
:show-inheritance:


.. automodule:: higgs_dna.samples.sample
:members:
:undoc-members:
:show-inheritance:


.. automodule:: higgs_dna.samples.sample_manager
:members:
:undoc-members:
:show-inheritance:
28 changes: 28 additions & 0 deletions docs/source/modules/higgs_dna.selections.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
higgs\_dna.selections package
=============================

.. automodule:: higgs_dna.selections
:members:
:undoc-members:
:show-inheritance:

Submodules
----------


.. automodule:: higgs_dna.selections.jet_selections
:members:
:undoc-members:
:show-inheritance:


.. automodule:: higgs_dna.selections.lepton_selections
:members:
:undoc-members:
:show-inheritance:


.. automodule:: higgs_dna.selections.object_selections
:members:
:undoc-members:
:show-inheritance:
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions notebooks

0 comments on commit 660b0d5

Please sign in to comment.