Skip to content

Commit

Permalink
docs: notebooks: Moving between models
Browse files Browse the repository at this point in the history
Signed-off-by: mHash1m <hashimchaudry23@gmail.com>
  • Loading branch information
mhash1m committed May 7, 2021
1 parent 469dc6d commit 1411ccf
Show file tree
Hide file tree
Showing 11 changed files with 431 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .ci/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ if [[ "x${PLUGIN}" == "xmodel/autosklearn" ]] || \
python -m pip install liac-arff psutil smac==0.12.3
fi

if [[ "x${PLUGIN}" == "xdocs" ]]; then
sudo apt-get install -y pandoc
fi

# ========================== END INSTALL DEPENDENCIES ========================


Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ htmlcov/
html/
pages/
examples/shouldi/response.json
examples/notebooks/.ipynb_checkpoints/
docs/plugins/service/http
*pip-wheel-metadata/
*.gz
Expand All @@ -34,3 +35,4 @@ docs/swportal.rst
docs/contributing/consoletest.md
/consoletest/
tests/service/logs/
tests/notebooks/data/
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Tutorial on how to load models dynamically
https://intel.github.io/dffml/tutorials/models/load.html
- Added download progressbar in `util/net.py`
- Usecase example notebook for "Moving between models"
- Documentation and testing support for notebooks
### Changed
- Calls to hashlib now go through helper functions
- Build docs using `dffml service dev docs`
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
"dffml.util.testing.consoletest.builder",
"literalinclude_diff",
"literalinclude_relative",
"nbsphinx",
"nbsphinx_link",
]

intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
Expand Down
15 changes: 12 additions & 3 deletions docs/contributing/docs.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
Documentation
=============

You'll want to have all of the official plugins installed when generating the
documentation. See :ref:`dev_env_install_official_plugins`.
Before building the docs, you'll want to have pandocs as well as all of the
official plugins installed. See :ref:`dev_env_install_official_plugins`.
For most Linux distros, you can install pandocs by

To build, run the docs script.
.. code-block:: console
$ sudo apt-get install pandoc
For alternative ways to install, refer to
`pandocs documentation <https://pandoc.org/installing.html>`_.

After you have installed the required plugins, you can build the docs by running the
script.

.. code-block:: console
Expand Down
1 change: 1 addition & 0 deletions docs/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The following are some example use cases of DFFML.
:maxdepth: 2
:caption: Contents:

notebooks/index
integration
shouldi
dataflows
Expand Down
7 changes: 7 additions & 0 deletions docs/examples/notebooks/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Notebooks
=========

.. toctree::
:maxdepth: 2

moving_between_models
3 changes: 3 additions & 0 deletions docs/examples/notebooks/moving_between_models.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/notebooks/moving_between_models.ipynb"
}

0 comments on commit 1411ccf

Please sign in to comment.