-
Notifications
You must be signed in to change notification settings - Fork 16
Revamp docs to be more comprehensive #839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
96e57c3
Revamp docs: User Guide + Developer Guide structure
Copilot 61681bc
Fix doc review issues: spelling, incomplete sentence, placeholder com…
Copilot 5a7b383
Revisions
forsyth2 22ae4a6
Add dependencies graph
forsyth2 1015442
Update dependencies in task docs
forsyth2 925140a
Move dependencies docs to user guide
forsyth2 aa10058
Add specific testing instructions
forsyth2 e90e878
Remove older test docs
forsyth2 45e75a5
Refine test doc references
forsyth2 7872f74
Update archives
forsyth2 ad81918
Address comments
forsyth2 e94f5ac
Fix web server paths
forsyth2 21c0fe7
Formatting fixes and other small changes
forsyth2 14770bc
Update parameter docs for non-plot tasks
forsyth2 bc522bc
Revise task parameter docs to match default.ini structure
Copilot 35e72f1
Revise e3sm_diags parameters doc
forsyth2 3a5823f
Revise mpas_analysis parameters doc
forsyth2 d2aecf5
Revise global_time_series parameters doc
forsyth2 8d61c2d
Revise pcmdi_diags parameter doc
forsyth2 4ef7e91
Add top-level parameter link
forsyth2 c65ca78
Address comments
forsyth2 1021c7a
Explain task design philosophy
forsyth2 91160af
Address Copilot review comments
forsyth2 320736d
Document recently merged code
forsyth2 0a4d4f3
Address Copilot review comments
forsyth2 ada447c
Remove accidental mail-to links
forsyth2 93cc7f4
Fix E3SM Unified wording
forsyth2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,104 @@ | ||
| digraph TaskDependencies { | ||
| // Graph settings | ||
| rankdir=LR // Left-to-right layout (TB for top-to-bottom) | ||
| node [shape=box, style=rounded] | ||
|
|
||
| // Reviewing the dependencies in each `.py` file | ||
| // and the test cfgs, we come up with the following: | ||
|
|
||
| // VERTICES (tasks) | ||
|
|
||
| climo_diurnal_atm [label="climo: diurnal, atm"] | ||
| climo_month_atm [label="climo: monthly, atm"] | ||
| climo_month_lnd [label="climo: monthly, lnd"] | ||
|
|
||
| ts_daily_atm [label="ts: daily, atm"] | ||
| ts_month_atm [label="ts: monthly, atm"] | ||
| ts_month_atm_glb [label="ts: monthly, atm, glb"] | ||
| ts_month_lnd [label="ts: monthly, lnd"] | ||
| ts_month_lnd_glb [label="ts: monthly, lnd, glb"] | ||
| ts_month_rof [label="ts: monthly, rof"] | ||
|
|
||
| e3sm_to_cmip_month_atm [label="e3sm_to_cmip: monthly, atm"] | ||
| e3sm_to_cmip_month_lnd [label="e3sm_to_cmip: monthly, lnd"] | ||
|
|
||
| tc_analysis | ||
|
|
||
| e3sm_diags_diurnal [label="e3sm_diags: diurnal_cycle"] | ||
| e3sm_diags_climo_month_atm [label="e3sm_diags: lat_lon,zonal_mean_xy,\nzonal_mean_2d,polar,cosp_histogram,\nmeridional_mean_2d,annual_cycle_zonal_mean,zonal_mean_2d_stratosphere,\naerosol_aeronet,aerosol_budget"] | ||
| e3sm_diags_climo_month_lnd [label="e3sm_diags: lat_lon_land"] | ||
| e3sm_diags_streamflow [label="e3sm_diags: streamflow"] | ||
| e3sm_diags_tc [label="e3sm_diags: tc_analysis"] | ||
| e3sm_diags_ts_daily_atm [label="e3sm_diags: tropical_subseasonal,precip_pdf"] | ||
| e3sm_diags_ts_month_atm [label="e3sm_diags: enso_diags,qbo,\narea_mean_time_series,mp_partition"] | ||
|
|
||
| mpas_analysis | ||
|
|
||
| global_time_series_classic_atm [label="global_time_series:\nThe 5 atm classic plots"] | ||
| global_time_series_classic_ocn [label="global_time_series:\nThe 3 ocn classic plots"] | ||
| global_time_series_plots_atm [label="global_time_series:\natm plots"] | ||
| global_time_series_plots_ice [label="global_time_series:\nice plots"] // Currently unused | ||
| global_time_series_plots_lnd [label="global_time_series:\nlnd plots"] | ||
| global_time_series_plots_ocn [label="global_time_series:\nocn plots"] | ||
|
|
||
| ilamb_lnd_atm [label="ilamb: lnd & atm"] | ||
| ilamb_lnd_only [label="ilamb: lnd only"] | ||
|
|
||
| livvkit | ||
|
|
||
| pcmdi_diags_mean_climate [label="pcmdi_diags: mean_climate"] | ||
| pcmdi_diags_variability_modes_atm [label="pcmdi_diags: variability_modes_atm"] | ||
| pcmdi_diags_variability_modes_cpl [label="pcmdi_diags: variability_modes_cpl"] | ||
| pcmdi_diags_enso [label="pcmdi_diags: enso"] | ||
| pcmdi_diags_synthetic_plots [label="pcmdi_diags: synthetic_plots"] | ||
|
|
||
|
|
||
| // EDGES (dependencies) | ||
|
|
||
| // Defined in climo.py: | ||
| // None | ||
|
|
||
| // Defined in ts.py: | ||
| // None | ||
|
|
||
| // Defined in e3sm_to_cmip.py: | ||
| ts_month_atm -> e3sm_to_cmip_month_atm | ||
| ts_month_lnd -> e3sm_to_cmip_month_lnd | ||
|
|
||
| // Defined in tc_analysis.py: | ||
| // None | ||
|
|
||
| // Defined in e3sm_diags.py: | ||
| climo_month_atm -> e3sm_diags_climo_month_atm | ||
| climo_month_lnd -> e3sm_diags_climo_month_lnd | ||
| climo_diurnal_atm -> e3sm_diags_diurnal | ||
| tc_analysis -> e3sm_diags_tc | ||
| ts_month_atm -> e3sm_diags_ts_month_atm | ||
| ts_month_rof -> e3sm_diags_streamflow | ||
| ts_daily_atm -> e3sm_diags_ts_daily_atm | ||
|
|
||
| // Defined in mpas_analysis.py: | ||
| mpas_analysis -> mpas_analysis // Later year sets depend on earlier runs | ||
|
|
||
| // Defined in global_time_series.py: | ||
| ts_month_atm_glb -> {global_time_series_classic_atm, global_time_series_plots_atm} | ||
| ts_month_lnd_glb -> global_time_series_plots_lnd | ||
| mpas_analysis -> {global_time_series_classic_ocn, global_time_series_plots_ocn} | ||
|
|
||
| // Defined in ilamb.py: | ||
| ts_month_atm -> ilamb_lnd_atm | ||
| ts_month_lnd -> {ilamb_lnd_atm, ilamb_lnd_only} | ||
| e3sm_to_cmip_month_atm -> ilamb_lnd_atm | ||
| e3sm_to_cmip_month_lnd -> {ilamb_lnd_atm, ilamb_lnd_only} | ||
|
|
||
| // Defined in livvkit.py: | ||
| // Data sources in livvkit.py: "cmb", "smb", "racmo", "merra2", "ceres", "era5" | ||
| // climo extensions in tests/integration/template_weekly_comprehensive_v3.cfg: traave, native, racmo_gis, racmo_ais, merra2, era5 | ||
| // ts extensions in tests/integration/template_weekly_comprehensive_v3.cfg: energy, smb | ||
| climo_month_lnd -> livvkit [label="Specify mapping files"] | ||
| ts_month_lnd -> livvkit [label="Specify mapping files"] | ||
|
|
||
| // Defined in pcmdi_diags.py: | ||
| {ts_month_atm, e3sm_to_cmip_month_atm} -> {pcmdi_diags_mean_climate, pcmdi_diags_variability_modes_atm, pcmdi_diags_variability_modes_cpl, pcmdi_diags_enso} -> pcmdi_diags_synthetic_plots | ||
|
|
||
| } |
This file contains hidden or 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,14 @@ | ||
| .. _archive: | ||
|
|
||
| ******* | ||
| Archive | ||
| ******* | ||
|
|
||
| This page collects documentation that is obsolete or refers to older | ||
| versions of ``zppy`` or the E3SM Unified environment. It is retained for | ||
| historical reference. | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| initial_docs |
This file contains hidden or 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,72 @@ | ||
| ********************************** | ||
| How to set up new documentation | ||
| ********************************** | ||
|
|
||
| .. warning:: | ||
| The instructions below only apply for the initial configuration of the | ||
| Sphinx documentation on the Github repository. They are documented here | ||
| for reference only. Do not follow them unless you are setting up documentation | ||
| for a new repository. (Adapted from `Sphinx documentation on GitHub | ||
| <http://datadesk.latimes.com/posts/2012/01/sphinx-on-github>`_.) | ||
|
|
||
| Create Sphinx conda environment (see above). | ||
|
|
||
| Create a new git branch (gh-pages): :: | ||
|
|
||
| $ git branch gh-pages | ||
| $ git checkout gh-pages | ||
|
|
||
| Clear out anything from the main branch and start fresh :: | ||
|
|
||
| $ git symbolic-ref HEAD refs/heads/gh-pages | ||
| $ rm .git/index | ||
| $ git clean -fdx | ||
|
|
||
| Create documentation :: | ||
|
|
||
| $ sphinx-quickstart | ||
|
|
||
| accept suggested default options, except :: | ||
|
|
||
| Separate source and build directories (y/N) [n]: y | ||
|
|
||
| Edit Makefile and change ``BUILDDIR`` :: | ||
|
|
||
| BUILDDIR = docs | ||
|
|
||
| Remove old build directory :: | ||
|
|
||
| $ rmdir build | ||
|
|
||
| Change the Sphinx theme to 'ReadTheDocs'. Edit 'source/conf.py and change :: | ||
|
|
||
| html_theme = 'alabaster' | ||
|
|
||
| to :: | ||
|
|
||
| import sphinx_rtd_theme | ||
| html_theme = "sphinx_rtd_theme" | ||
| html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] | ||
|
|
||
| Try building documentation :: | ||
|
|
||
| $ make html | ||
|
|
||
| Create an empty .nojekyll file to indicate to GitHub.com that this | ||
| is not a Jekyll static website: :: | ||
|
|
||
| $ touch .nojekyll | ||
|
|
||
| Create a top-level re-direction file: :: | ||
|
|
||
| $ vi index.html | ||
|
|
||
| with the following: :: | ||
|
|
||
| <meta http-equiv="refresh" content="0; url=./docs/html/index.html" /> | ||
|
|
||
| Commit and push back to GitHub: :: | ||
|
|
||
| $ git add . | ||
| $ git commit | ||
| $ git push origin gh-pages | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.