Skip to content

Commit

Permalink
Updated mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jun 10, 2021
1 parent b9cf654 commit 7212f1d
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
pip install --user --no-cache-dir Cython
pip install --user -r requirements.txt
pip install --user -r requirements_dev.txt
pip install --user .
- name: PKG-TEST
run: |
python -m unittest discover tests/
Expand Down
114 changes: 114 additions & 0 deletions docs/examples/examples.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import subprocess\n",
"\n",
"try:\n",
" import whiteboxgui\n",
"except ImportError:\n",
" print('Installing whiteboxgui ...')\n",
" subprocess.check_call([\"python\", '-m', 'pip', 'install', 'whiteboxgui'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import whiteboxgui"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"whiteboxgui.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"whiteboxgui.show(tree=True)"
]
}
],
"metadata": {
"hide_input": false,
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
},
"varInspector": {
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"delete_cmd_postfix": "",
"delete_cmd_prefix": "del ",
"library": "var_list.py",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"delete_cmd_postfix": ") ",
"delete_cmd_prefix": "rm(",
"library": "var_list.r",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
],
"window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 4
}
5 changes: 4 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ plugins:
- git-revision-date
- mkdocs-jupyter:
include_source: True
# execute: True
ignore_h1_titles: True
execute: True

markdown_extensions:
- attr_list
Expand All @@ -43,3 +44,5 @@ nav:
- Report Issues: https://github.com/giswqs/whiteboxgui/issues
- API Reference:
- whiteboxgui module: whiteboxgui.md
- Notebooks:
- examples/examples.ipynb

0 comments on commit 7212f1d

Please sign in to comment.