-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate notebooks in online documentation
- Add a "notebooks" tab in upper left menu: - subsection for each notebooks found in "notebooks/" sorted alphabetically (toc to have a list at the top of the page) - extraction of title and description from 1st cell if it is a markdown cell - title: first line if beginning with "# " - description: other lines - links to github and binder generated (see below) - Add a link to it inside "Examples" subsection of guide - Remove previous Examples subpage (the previous generated notebooks will be added in this new notebooks page) To generate the binder and github links, the autodoc.py script uses environment variables: In order to define appropriate links for notebooks (github source + launching on binder), we need several environment variables: - AUTODOC_BINDER_ENV_GH_REPO_NAME: name of the github repository hosting the binder environment (default: airbus/scikit-decide) - AUTODOC_BINDER_ENV_GH_BRANCH: branch hosting the binder environment (default: binder) - AUTODOC_NOTEBOOKS_REPO_URL: url of the content repository for the notebooks - AUTODOC_NOTEBOOKS_BRANCH: branch containing the notebooks For instance, one can build locally the doc by typing from root directory : ```shell export AUTODOC_BINDER_ENV_GH_REPO_NAME="airbus/scikit-decide" export AUTODOC_BINDER_ENV_GH_BRANCH="binder" current_repo_url_withdotgit=$(git remote get-url origin) export AUTODOC_NOTEBOOKS_REPO_URL=${current_repo_url_withdotgit/.git/} export AUTODOC_NOTEBOOKS_BRANCH=$(git branch --show-current) poetry run yarn docs:dev ``` provided you have already installed the library in developper mode with poetry.
- Loading branch information
Showing
4 changed files
with
179 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Notebooks | ||
|
||
We present here a curated list of notebooks recommended to start with scikit-decide, available in the `notebooks/` folder of the repository. | ||
|
||
[[toc]] | ||
|
||
[[notebooks-list]] |