-
Notifications
You must be signed in to change notification settings - Fork 374
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
Convert step-by-step guide to markdown #6326
Conversation
Primary updatesMost obviously, the guide has been converted from Confluence to Markdown. Other differences:
The full output can be seen at https://github.com/E3SM-Project/E3SM/blob/forsyth2/docs/update-guide/docs/step_by_step_guide.md Documentation buildingI followed the directions at Developing Documentation, but I ended up getting:
I even set up a new clone of E3SM to work in, and followed the relevant directions on the Development Getting Started Guide. I wasn't able to build the docs before or after I made the changes here. Other notesI was trying to see if Confluence-to-Markdown exporters exist, but it looked like that could only be accomplished using non-Atlassian plugins. E.g., here and here. Markdown Exporter for Confluence is such an app. But I ultimately decided to just port the guide over manually for two reasons:
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left some questions re: the best ways to update this guide.
# Documenting the Model Run | ||
You should create a Confluence page for your model run in the relevant Confluence space. Use the [Simulation Run Template](https://acme-climate.atlassian.net/wiki/spaces/EWCG/pages/2297299190) as a template. See below for how to fill out this template. | ||
|
||
<!-- TODO: where should the Confluence pages be made for v3 (and for each group)? --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a newer template that should be used? What Confluence directory should v3 simulations be documented in?
Make a bulleted list of links, e.g., for `<url_path>/ts_0001-0050_climo_0021-0050/`, create a bullet `“1-50 (time series), 21-50 (climatology)”. | ||
|
||
## ILAMB | ||
<!-- TODO: Add this section? --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original guide was written with Water Cycle in mind. Is there a preferred way to include ILAMB links in simulation documentation?
Update the simulation Confluence page with information regarding this simulation (For Water Cycle’s v2 work, that page is [V2 Simulation Planning](https://acme-climate.atlassian.net/wiki/spaces/ED/pages/2766340117)). In the `zstash archive` column, specify: | ||
- `/home/<first letter>/<username>/E3SMv2/<case_name>` | ||
- `zstash_create_<stamp>.log` | ||
- `zstash_check_<stamp>.log` | ||
|
||
<!-- TODO: Is there a v3 planning page to link? --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a corresponding v3 simulation planning page with information about all the simulations?
@mccoy20 and @chengzhuzhang requested a thorough update to the step-by-step guide, since it was written a while ago. @golaz @chengzhuzhang requested that the new version be done in Markdown rather than Confluence. I have implemented these requests here. @golaz, @wlin7, @ndkeen -- @chengzhuzhang suggested you three as reviewers to check if the new guide is properly up-to-date. I'm therefore marking you all as reviewers. Thank you. @rljacob, @wlin7 -- @chengzhuzhang suggested you two as being able to provide more instruction on including the Markdown guide into the E3SM Documentation. Thank you. I've followed the directions at Developing Documentation, but I wasn't able to get the documentation built (see note above). I'm also not quite sure how to link in the new guide. That page mentions a |
@forsyth2 the error is likely related to using python 3.6. Could you try with the latest e3sm-unified (1.9.3)? Just activate e3sm-unified and simply build with |
Also, could you please link this new file so that it appears in the docs? See preview of this PR here: https://e3sm-project.github.io/E3SM/pr-preview/pr-6326/. As an example of how to get this done, see the following change in PR #6246. (In other words, I would just link it on the main landing page as well as on the navigation panel, but others may have different preferences.) |
Ah, I didn't realize just using Unified would work. With that, I can start serving the documentation, but I now realize I have no way of looking at it, since it's serving locally on Chrysalis (where I do the bulk of my development) and not on my own machine. I figured just using the GitHub markdown rendering would work fine since it's just one page (as opposed to many connected ones).
The second commit includes this change. |
mkdocs.yaml
Outdated
@@ -3,8 +3,10 @@ site_name: E3SM | |||
nav: | |||
- Introduction: 'index.md' | |||
- 'Developing Docs': 'https://acme-climate.atlassian.net/wiki/spaces/DOC/pages/3924787306/Developing+Documentation' | |||
- 'Step by Step Guide': 'https://e3sm-project.github.io/E3SM/pr-preview/pr-6326/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I may have misled you with my comment. This should be
- 'Step by Step Guide': 'https://e3sm-project.github.io/E3SM/pr-preview/pr-6326/' | |
- 'Step by Step Guide': 'step_by_step_guide.md' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@forsyth2 see a rendering of your additions here: https://e3sm-project.github.io/E3SM/pr-preview/pr-6326/step_by_step_guide/
We have the preview in the PR to help users: #6326 (comment). However, just in case it is helpful, you could do the following
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-review using the actual rendering and the GitHub rendering.
There are a large number of things that render fine in the GitHub rendering, but not the actual rendering. Are we actually using a different variant of Markdown? Or is the document rendering software we use only capable of handling a subset of Markdown? In any case, the line "Our documentation is written in Markdown language. See Basic writing and formatting syntax - GitHub Docs to get started." in Developing Documentation should be updated to reflect the fact that a great number of useful features don't actually work as in GitHub...
- Chrysalis – `source ~/.bashrc` | ||
- Compy – `source ~/.bash_profile` | ||
- Perlmutter – `source ~/.bash_profile.ext` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These bullets show up fine on the GitHub rendering but all in one line on the actual rendering...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This problem recurs throughout the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and others can be fixed. Do you want me to go through it and help guide edits to meet the mkdocs rendering?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that would be great. Thanks @mahf708! (I still think the docs on developing our docs should be updated to reflect that we have some differences from standard GitHub markdown.)
<run_scripts_dir>: `${HOME}/E3SM/scripts` | ||
|
||
<code_source_dir>: `${HOME}/E3SM/code` | ||
|
||
<simulations_dir> differs amongst machines: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These show up fine in the GitHub rendering, but in the actual rendering, anything in <>
brackets simply shows up as an empty string...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This problem recurs throughout the file.
docs/step_by_step_guide.md
Outdated
# Configuring the Model Run – Run Script | ||
Start with an example of a run script for a low-resolution coupled simulation: | ||
|
||
We'll use the template script in the E3SM repository, which uses Perlmutter: https://github.com/E3SM-Project/E3SM/blob/master/run_e3sm.template.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link works in the GitHub rendering, but not the actual rendering. In any case, I'm replacing it with this line:
We'll use the [template script](https://github.com/E3SM-Project/E3SM/blob/master/run_e3sm.template.sh) in the E3SM repository, which uses Perlmutter.
> [!IMPORTANT] | ||
> If this is part of a simulation campaign, ask your group lead about using a `CASE_GROUP` label. Otherwise, please use a unique name to distinguish from existing `CASE_GROUP` label names, (e.g., “v2.LR“). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This note box works in the GitHub rendering, but not fully correct in the actual rendering. It does show up as a sidebar/quote block, but the information about the note type is lost (and it just prints the [!IMPORTANT]
as if it were regular text).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This problem recurs throughout the file.
1. The model starts without errors. | ||
2. The model produces BFB (bit-for-bit) results after a restart. | ||
3. The model produces BFB results when changing PE layout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The numbered list works in the GitHub rendering, but not in the actual rendering (where it shows up all in one line).
| Component | Directory | File naming pattern | | ||
| --- | --- | --- | | ||
| Atmosphere (Earth Atmospheric Model) | `archive/atm/hist` | `*.eam.h*` | | ||
| Coupler | `archive/cpl/hist` | `*.cpl.h*` | | ||
| Sea Ice (MPAS-Sea-Ice) | `archive/ice/hist` | `*.mpassi.hist.*` | | ||
| Land (Earth Land Model) | `archive/lnd/hist` | `*.elm.h*` | | ||
| Ocean (MPAS-Ocean) | `archive/ocn/hist` | `*.mpaso.hist.*` | | ||
| River Runoff (MOSART) | `archive/rof/hist` | `*.mosart.h*` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The table shows up in the GitHub rendering, but all as one line in the actual rendering...
Use `--force-move` to move instead of copying, which can take a long time. Set `--last-date` to the latest date in the simulation you want to archive. You do not have to specify a beginning date. | ||
```shell | ||
cd <simulations_dir>/<case_name>/case_scripts | ||
./case.st_archive --last-date 0051-01-01 --force-move --no-incomplete-logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0051
shows up as red in the actual rendering for some reason
c1bfcc8
to
56ba2cc
Compare
56ba2cc
to
6e9ab8f
Compare
@forsyth2 regarding rendering diffs: the docs are converted to html from markdown by mkdocs and the html is what gets displayed on the github.io page. |
I'm still a little confused here. Does that mean |
Yes its a different rendering engine. mkdocs has options to further change the rendered look and feel. That's why the our documentation docs tell the user to use the mkdocs built-in html server to look at the result. |
If you want, this could be added at a higher level in the github docs: https://e3sm-project.github.io/. To do that, make a PR to https://github.com/E3SM-Project/E3SM-Project.github.io |
@rljacob That sounds good to me. I'll do that, thanks! |
Closing in favor of E3SM-Project/E3SM-Project.github.io#2 |
Converting the original step-by-step guide from Confluence to Markdown.