Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elbeejay committed Feb 28, 2024
1 parent f46e1db commit 8734791
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Dependencies
run: |
if [ -f pyproject.toml ]; then pip install ".[docs]"; fi
- name: Copy the notebooks
run: |
if [ -d notebooks ]; then cp -r notebooks docs/notebooks; fi
- name: Build Sphinx Documentation
run: |
sphinx-build docs _build/html -b html
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ dmypy.json
_build/
docs/api/
src/GOSTurban/_version.py
docs/notebooks/
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ pip install GOSTurban
```shell
pip install .
```
### Developer Installation

Install the package **in editable** mode with dependencies:
Install the package **in editable** mode with all of the dependencies needed to run the tests and build the documentation locally:

```shell
pip install -e .
```
```shell
pip install -e .[dev]
```

The `-e` flag stands for "editable," meaning changes to the source code will immediately affect the installed package.
The `-e` flag stands for "editable," meaning changes to the source code will immediately affect the installed package.

## License

Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ logo: images/logo.png
# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: off
execute_notebooks: force

# Add a bibtex file so that we can create citations
bibtex_bibfiles:
Expand Down
41 changes: 38 additions & 3 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,41 @@ parts:
- file: urbanization_comparison
- caption: Tutorials
chapters:
- file: ../Notebooks/Tutorials/UrbanAreas_tutorials.ipynb
- file: ../Notebooks/Tutorials/LEI_Example.ipynb

- file: notebooks/Tutorials/UrbanAreas_tutorials.ipynb
- file: notebooks/Tutorials/LEI_Example.ipynb
- caption: Implementations
chapters:
- file: notebooks/Implementations/JUP_SURGP_GLO_B_D__LEI_Evaluation.ipynb
- file: notebooks/Implementations/URB_DECAT_B_ExploringGHSSMODcode.ipynb
- file: notebooks/Implementations/URB_SEAU1_B_A_Ka_ExtractDataUrban.ipynb
- file: notebooks/Implementations/WSF_DECAT_B_ExploringIDCerrors.ipynb
- caption: KAZ_SCADR_UrbanizationReview
chapters:
- file: notebooks/Implementations/KAZ_SCADR_UrbanizationReview/ECA_Urban_Extents.ipynb
- file: notebooks/Implementations/KAZ_SCADR_UrbanizationReview/Urban_metrics_Combine_All.ipynb
- file: notebooks/Implementations/KAZ_SCADR_UrbanizationReview/Urban_metrics_Shape.ipynb
- file: notebooks/Implementations/KAZ_SCADR_UrbanizationReview/Urban_metrics_Structure.ipynb
- file: notebooks/Implementations/KAZ_SCADR_UrbanizationReview/KAZ_Urbanization_Review.ipynb
- file: notebooks/Implementations/KAZ_SCADR_UrbanizationReview/Urban_metrics_Fullness.ipynb
- file: notebooks/Implementations/KAZ_SCADR_UrbanizationReview/Urban_metrics_Sprawl.ipynb
- caption: POV_EEAPV_COG_urban_assessment
chapters:
- file: notebooks/Implementations/POV_EEAPV_COG_urban_assessment/Summarize_Urban.ipynb
- caption: Slum_Mapping
chapters:
- file: notebooks/Implementations/Slum_Mapping/Imagery_Search.ipynb
- caption: URB_SCAUR_UKR_B_I_urbanizationReview
chapters:
- file: notebooks/Implementations/URB_SCAUR_UKR_B_I_urbanizationReview/URB_SCAUR_UKR_B_I_urbanizationReview.ipynb
- caption: URB_SEAU1_NovelUrbanization
chapters:
- file: notebooks/Implementations/URB_SEAU1_NovelUrbanization/Create_Mosaick_Datasets.ipynb
- file: notebooks/Implementations/URB_SEAU1_NovelUrbanization/GHSL_Standardize_To_Country.ipynb
- file: notebooks/Implementations/URB_SEAU1_NovelUrbanization/MAP_Urbanization.ipynb
- file: notebooks/Implementations/URB_SEAU1_NovelUrbanization/NGA_specific_results.ipynb
- file: notebooks/Implementations/URB_SEAU1_NovelUrbanization/URB_SEAU1_B_A_Ka_NovelUrbanizaton.ipynb
- file: notebooks/Implementations/URB_SEAU1_NovelUrbanization/WBGAPI_Extract_urbanization_GDP.ipynb
- caption: URB_SURDR_ZAF_Energy_Transition
chapters:
- file: notebooks/Implementations/URB_SURDR_ZAF_Energy_Transition/Data Preparation.ipynb
- file: notebooks/Implementations/URB_SURDR_ZAF_Energy_Transition/Zonal_statistics.ipynb
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ dependencies = [
]

[project.optional-dependencies]
dev = ["pytest", "pytest-cov"]
dev = ["pytest", "pytest-cov", "GOSTurban[docs]"]
docs = [
"docutils==0.17.1",
"jupyter-book>=1,<2",
"sphinxcontrib-apidoc>=0.4.0,<1",
"jupyter-cache>=0.6.0",
]

[project.urls]
Expand Down

0 comments on commit 8734791

Please sign in to comment.