-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Docs initial commit * Fixed wrong pip install path and added README on how to build docs * Set full path to doc artifacts * Try docs/_build/html * Fixed typo on docs.yml * Specified github-pages env var * Added Makefile for building docs locally * Test .ipynb notebook * Restructured docs * CI: Renamed upload-pages-artifact -> upload-artifact * CI: Revert to upload-page-artifact@v2 * CI: Revert to upload-pages-artifact@v2 * CI: Supported pip caching * CI: Add checks for dead links * CI: Fixed wrong path for linkcheck * Slightly modified ToC structure * Set branch to docs-initial * Disabled edit button * Renamed Tutorials -> User's Guide * Added eCLM Source Code browser * docs.yml: Fixed working-directory path * Uploaded FORD_options.md * Added description for building eCLM on JSC machines * Updated description for building eCLM on JSC machines * Additional updates to building eCLM on JSC machines * Added introduction to the Guide, updated toc * Updates to INDEX and introduction * Updated introduction and eCLM build on JSC machines * Updated URLs * Modified README of case_creation * Added SCRIP grid file and mapping file creation * Corrections to SCRIP grid file and mapping file creation * Added creation of domain file * Added surface file creation * Added description for surface file creation * Edited introduction and added 'running eCLM' to the guide * Added descriptions for running eCLM and analyzing model output * Added documentation on running eCLM * Updated INDEX.md file * Edited case examples and made a few corrections * Added images directory and modified case creaion * Added note on domain file creation * corrected typo * Fixed text that fails linkcheck; add linkcheck to default jupyterbook build * docs.yml: Prioritize doc build over src browser * README: Removed install steps and added link to docs * Changed image in introduction, modified step 5 and 6 of case creation * Updated links * Modifed surface and domain file creation * Fixed hyperlink * "Edited domain file creation to include swapping of ocean and land mask" * Updated explanations for surface and domain file modifications * Corrected path to CSMDATA * adding a few links to the doc * typo fix * link to existing resource for logging in to JSC machines * small command fix * remove prerequisites parts that duplicate existing startup-guide * remove prerequisites parts that duplicate existing startup-guide II * small style change * docs: add `apt install` command loading Ubuntu system requirements * docs: add `apt update` command * docs: add `apt install` command for blas/lapack * docs: Ubuntu `apt` calls: more structure, added Python-packages * docs: `-r` flags for `cp` command needed Error message: ``` cp: -r not specified; omitting directory '/p/scratch/cslts/shared_data/rlmod_eCLM/example_cases/nrw_300x300' ``` * docs: include links to namelist variable list * docs: mention flag `--parallel` for parallel build --------- Co-authored-by: kvrigor <[email protected]> Co-authored-by: Johannes Keller <[email protected]>
- Loading branch information
1 parent
b882524
commit 4a809b0
Showing
49 changed files
with
2,591 additions
and
79 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,56 @@ | ||
name: Deploy Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'docs-**' | ||
|
||
env: | ||
BASE_URL: /${{ github.event.repository.name }} | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
deploy-docs: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
permissions: | ||
pages: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: pip install -r ${GITHUB_WORKSPACE}/docs/requirements.txt | ||
|
||
- name: Build eCLM doc homepage | ||
working-directory: ./docs | ||
run: | | ||
make clean docs | ||
- name: Build eCLM Source Code browser | ||
working-directory: ./docs | ||
run: | | ||
make src-browser | ||
- name: Upload documentation artifacts | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: "docs/_build/html" | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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,16 @@ | ||
--- | ||
project: eCLM Source Code Browser | ||
author: HPSC TerrSys | ||
doc_license: mit | ||
base_url: https://hpscterrsys.github.io/eCLM/src | ||
project_github: https://github.com/HPSCTerrSys/eCLM | ||
--- | ||
|
||
Test 1 2 3 | ||
|
||
<!-- | ||
FORD (FORtran Documenter) project options list: | ||
https://forddocs.readthedocs.io/en/latest/user_guide/project_file_options.html#project-file-options | ||
--> | ||
|
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,8 @@ | ||
# eCLM Documentation | ||
|
||
```{important} | ||
**Welcome!** You are viewing the first version of the documentation for eCLM. This is a living document, which means it will be continuously updated and improved. Please check back regularly for the latest information and updates. | ||
``` | ||
|
||
```{tableofcontents} | ||
``` |
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,15 @@ | ||
BUILD_DIR = ./_build | ||
SRC_DIR = ../src | ||
|
||
all: docs src-browser | ||
|
||
docs: | ||
jupyter-book build -W -n --keep-going . | ||
|
||
src-browser: | ||
ford -d $(SRC_DIR) -o $(BUILD_DIR)/html/src FORD_options.md | ||
|
||
.PHONY: clean | ||
|
||
clean: | ||
jupyter-book clean . |
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,18 @@ | ||
# Building eCLM Documentation | ||
|
||
If you'd like to develop and/or build the eCLM documentation, you should: | ||
|
||
1. Switch to this directory: `cd docs` | ||
2. Run `pip install -r requirements.txt` | ||
3. (*Optional*) Edit the books source files (`*.md`) in this folder. Check out the [MyST syntax cheat sheet](https://jupyterbook.org/en/stable/reference/cheatsheet.html) for reference. | ||
4. Build the docs: `make clean docs`. | ||
5. (*Optional*) Build eCLM source code browser: `make src-browser` | ||
6. Launch the doc homepage on your default browser: `open _build/html/index.html` | ||
|
||
## Contributors | ||
|
||
We welcome and recognize all contributions. You can see a list of current contributors in the [contributors tab](https://github.com/HPSCTerrSys/eCLM/graphs/contributors). | ||
|
||
## Credits | ||
|
||
This project is created using the excellent open source [Jupyter Book project](https://jupyterbook.org/) and the [executablebooks/cookiecutter-jupyter-book template](https://github.com/executablebooks/cookiecutter-jupyter-book). |
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,40 @@ | ||
####################################################################################### | ||
# A default configuration that will be loaded for all jupyter books | ||
# See the documentation for help and more options: | ||
# https://jupyterbook.org/customize/config.html | ||
|
||
####################################################################################### | ||
# Book settings | ||
title : eCLM Documentation # The title of the book. Will be placed in the left navbar. | ||
author : HPSC TerrSys # The author of the book | ||
copyright : "2024" # Copyright year to be placed in the footer | ||
logo : "" # A path to the book logo | ||
|
||
# Force re-execution of notebooks on each build. | ||
# See https://jupyterbook.org/content/execute.html | ||
execute: | ||
execute_notebooks: force | ||
|
||
# Define the name of the latex output file for PDF builds | ||
latex: | ||
latex_documents: | ||
targetname: book.tex | ||
|
||
sphinx: | ||
config: | ||
language: en | ||
|
||
# Information about where the book exists on the web | ||
repository: | ||
url: https://github.com/HPSCTerrSys/eCLM # Online location of your book | ||
path_to_book: docs # Optional path to your book, relative to the repository root | ||
branch: docs-initial # Which branch of the repository should be used when creating links (optional) | ||
|
||
# Add GitHub buttons to your book | ||
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository | ||
html: | ||
use_issues_button: true | ||
use_repository_button: true | ||
|
||
# Do not parse these files | ||
exclude_patterns: [FORD_options.md, README.md] |
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,59 @@ | ||
# https://hpscterrsys.github.io/eCLM | ||
|
||
format: jb-book | ||
root: INDEX | ||
parts: | ||
- caption: User's Guide | ||
chapters: | ||
|
||
- file: users_guide/introduction_to_eCLM/README | ||
title: Introduction to eCLM | ||
sections: | ||
- file: users_guide/introduction_to_eCLM/introduction | ||
- file: users_guide/introduction_to_eCLM/prerequisites | ||
- file: users_guide/introduction_to_eCLM/how_to_use_this_document | ||
|
||
- file: users_guide/building_eCLM/README | ||
title: Building eCLM | ||
sections: | ||
- file: users_guide/building_eCLM/Ubuntu | ||
- file: users_guide/building_eCLM/JSC/README | ||
title: JSC | ||
sections: | ||
- file: users_guide/building_eCLM/JSC/prerequisites_JSC_users | ||
- file: users_guide/building_eCLM/JSC/setting_up_eCLM | ||
- file: users_guide/building_eCLM/Levante | ||
|
||
- file: users_guide/case_examples/README | ||
title: Running example cases | ||
sections: | ||
- file: users_guide/case_examples/Wuestebach | ||
- file: users_guide/case_examples/NRW | ||
- file: users_guide/case_examples/EURO-CORDEX | ||
|
||
- file: users_guide/case_creation/README | ||
title: Creating a custom case | ||
sections: | ||
- file: users_guide/case_creation/1_create_grid_file | ||
- file: users_guide/case_creation/2_create_mapping_file | ||
- file: users_guide/case_creation/3_create_domain_file | ||
- file: users_guide/case_creation/4_create_surface_file | ||
- file: users_guide/case_creation/5_modifications_surface_domain_file | ||
- file: users_guide/case_creation/6_create_atm_forcings | ||
|
||
- file: users_guide/running_eCLM/README | ||
title: Running eCLM | ||
sections: | ||
- file: users_guide/running_eCLM/basic_commands | ||
- file: users_guide/running_eCLM/case_customization | ||
|
||
- file: users_guide/analyzing_model_output | ||
title: Analyzing model output | ||
|
||
- caption: Reference | ||
chapters: | ||
- file: reference/history_fields | ||
- url: https://escomp.github.io/ctsm-docs/versions/release-clm5.0/html/tech_note/index.html | ||
title: Technical Note | ||
- url: https://hpscterrsys.github.io/eCLM/src | ||
title: eCLM Source Code Browser |
Oops, something went wrong.