Skip to content
Snippets Groups Projects
Verified Commit 3a0bd236 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

update documentation, add rst files, build step in pipeline is not needed anymore

parent 33064fb7
No related branches found
No related tags found
1 merge request!49Feature/update documentation
Pipeline #84197 canceled
...@@ -13,9 +13,4 @@ docs/vale/styles/* ...@@ -13,9 +13,4 @@ docs/vale/styles/*
venv/ venv/
.venv/ .venv/
# Ignore files generated by apidoc
docs/source/lso.rst
docs/source/lso.*.rst
docs/source/modules.rst
config.json config.json
...@@ -5,7 +5,6 @@ export SETTINGS_FILENAME=./config.json.example ...@@ -5,7 +5,6 @@ export SETTINGS_FILENAME=./config.json.example
python docs/dump-openapi-spec.py python docs/dump-openapi-spec.py
rm -r ./docs/build/* rm -r ./docs/build/*
sphinx-apidoc lso lso/app.py -o docs/source -d 2 -f
vale --config=docs/vale/.vale.ini sync vale --config=docs/vale/.vale.ini sync
vale --config=docs/vale/.vale.ini docs/source/*.rst lso/*.py vale --config=docs/vale/.vale.ini docs/source/*.rst lso/*.py
sphinx-build -b html docs/source docs/build sphinx-build -b html docs/source docs/build
......
--- ---
##### Sphinx - Generate documentation
build-documentation:
stage: documentation
tags:
- docker-executor
image: sphinxdoc/sphinx:latest
needs:
- job: run-tox-pipeline
artifacts: true
before_script:
- pip install sphinx_rtd_theme
script:
- sphinx-apidoc lso lso/app.py -o docs/source -d 2 -f
- sphinx-build -b html docs/source docs/build
artifacts:
paths:
- $CI_PROJECT_DIR/docs/build
##### Vale - Documentation linter ##### Vale - Documentation linter
lint-documentation: lint-documentation:
stage: documentation stage: documentation
...@@ -29,8 +9,7 @@ lint-documentation: ...@@ -29,8 +9,7 @@ lint-documentation:
tags: tags:
- docker-executor - docker-executor
needs: needs:
- job: build-documentation # Only run when documentation has been built - job: run-tox-pipeline # Only run when tox has finished
artifacts: true
before_script: before_script:
- vale --config=docs/vale/.vale.ini sync - vale --config=docs/vale/.vale.ini sync
......
...@@ -75,8 +75,7 @@ html_css_files = ['custom.css'] ...@@ -75,8 +75,7 @@ html_css_files = ['custom.css']
html_logo = '_static/geant_logo_white.svg' html_logo = '_static/geant_logo_white.svg'
# Both the class' and the __init__ method's docstring # Both the class' and the ``__init__`` method's docstring are concatenated and inserted.
# are concatenated and inserted.
autoclass_content = 'both' autoclass_content = 'both'
autodoc_typehints = 'none' autodoc_typehints = 'none'
......
Lightweight service orchestrator Lightweight Service Orchestrator
================================ ================================
Documentation for LSO (Lightweight Service Orchestrator). Documentation for LSO (Lightweight Service Orchestrator).
...@@ -8,7 +8,7 @@ Documentation for LSO (Lightweight Service Orchestrator). ...@@ -8,7 +8,7 @@ Documentation for LSO (Lightweight Service Orchestrator).
:caption: Contents: :caption: Contents:
quickstart quickstart
lso modules
`Swagger API Docs <_static/openapi.html>`__ `Swagger API Docs <_static/openapi.html>`_
``lso.config``
==============
.. automodule:: lso.config
:members:
:show-inheritance:
``lso.playbook``
================
.. automodule:: lso.playbook
:members:
:show-inheritance:
``lso.routes.default``
======================
.. automodule:: lso.routes.default
:members:
:show-inheritance:
``lso.routes``
==============
.. automodule:: lso.routes
:members:
:show-inheritance:
Submodules
----------
.. toctree::
:maxdepth: 2
:titlesonly:
default
ip_trunk
router
``lso.routes.ip_trunk``
=======================
.. automodule:: lso.routes.ip_trunk
:members:
:show-inheritance:
``lso.routes.router``
======================
.. automodule:: lso.routes.router
:members:
:show-inheritance:
=========================
Sub-packages and -modules
=========================
This page lists references to the documentation of all sub-packages and -modules.
Subpackages
-----------
.. toctree::
:maxdepth: 2
:titlesonly:
module/routes/index
Submodules
----------
.. toctree::
:maxdepth: 2
:titlesonly:
module/config
module/playbook
==========
.. automodule:: lso
:members:
:show-inheritance:
Quick start Quick start
================== ===========
*This is a quick setup guide for running standalone on your local machine* This is a quick setup guide for running standalone on your local machine.
Install the module Install the module
-------------------- ------------------
*One of these should be what you're looking for:* *One of these should be what you're looking for:*
...@@ -32,11 +32,11 @@ Install the module ...@@ -32,11 +32,11 @@ Install the module
pip install -r requirements.txt pip install -r requirements.txt
Running the app Running the app
------------------- ---------------
* Create a settings file, see `config.json.example` for an example. * Create a settings file, see ``config.json.example`` for an example.
* If necessary, set the environment vairable `ANSIBLE_HOME` to a custom path. * If necessary, set the environment variable ``ANSIBLE_HOME`` to a custom path.
* Run the app like this (`app.py` starts the server on port 44444): * Run the app like this (``app.py`` starts the server on port 44444):
.. code-block:: bash .. code-block:: bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment