Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store code examples in API docs using notebooks (#2123)
* Add new infrastructure for generating docs from notebooks * Move rugplot examples into notebook * More imporvements to new notebook processing infrastructure * Add output stripping to doc notebook build * Add script for auto-generating API doc notebooks * Improve Makefile infra * Convert kdeplot API docs to notebook * Read notebook kernel from environment variable * Add pandoc to GH doc build * Consolidate workflow
- Loading branch information
Showing
11 changed files
with
798 additions
and
252 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,10 @@ | ||
rst_files := $(patsubst %.ipynb,%.rst,$(wildcard *.ipynb)) | ||
|
||
docstrings: ${rst_files} | ||
|
||
%.rst: %.ipynb | ||
@../tools/nb_to_doc.py $*.ipynb | ||
@cp -r $*_files ../generated/ | ||
@if [ -f ../generated/seaborn.$*.rst ]; then \ | ||
touch ../generated/seaborn.$*.rst; \ | ||
fi |
Oops, something went wrong.