-
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.
feat: Update FES2022 documentation and binder configuration
The code changes include adding a new environment.yml file in the binder directory, which specifies the dependencies for the pyfes project. Additionally, the postBuild script has been modified to generate Jupyter notebooks from Python files and remove non-notebook files. The conf.py file in the docs/source directory has been updated to include the binder configuration for the FES2022 documentation. Recent user commits and repository commits indicate a focus on documentation updates, code development information, and fixing syntax errors.
- Loading branch information
Showing
3 changed files
with
46 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: pyfes | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- cartopy | ||
- matplotlib | ||
- jupyter | ||
- pyfes | ||
- sphinx-gallery | ||
- sphinx-inline-tabs |
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,21 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
TMP_CONTENT_DIR=/tmp/pyinterp | ||
mkdir -p $TMP_CONTENT_DIR | ||
cp -r examples binder $TMP_CONTENT_DIR | ||
|
||
find . -delete | ||
|
||
GENERATED_NOTEBOOKS_DIR=.generated-notebooks | ||
cp -r $TMP_CONTENT_DIR/examples $GENERATED_NOTEBOOKS_DIR | ||
|
||
find $GENERATED_NOTEBOOKS_DIR -name '*.py' -exec sphx_glr_python_to_jupyter.py '{}' + | ||
NON_NOTEBOOKS=$(find $GENERATED_NOTEBOOKS_DIR -type f | grep -v '\.ipynb') | ||
rm -f $NON_NOTEBOOKS | ||
|
||
mv $TMP_CONTENT_DIR/binder . | ||
rm -rf $TMP_CONTENT_DIR | ||
|
||
mkdir notebooks | ||
ln -s ../$GENERATED_NOTEBOOKS_DIR notebooks/auto_examples |
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