Skip to content

Commit 35cc54f

Browse files
authored
Merge pull request #3184 from samsrabin/docs-bugfixes-20250527
ctsm5.3.050: Doc infrastructure and docs: fixes and improvements
2 parents 9d83498 + f1d63ce commit 35cc54f

File tree

14 files changed

+286
-76
lines changed

14 files changed

+286
-76
lines changed

.github/ISSUE_TEMPLATE/03_documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ about: Something should be added to or fixed in the documentation
55
---
66

77

8-
### What sort(s) of issue is this?
8+
### What sort(s) of documentation issue is this?
99
- [ ] Something is missing.
10-
- [ ] Something is (or might be) incorrect.
10+
- [ ] Something is (or might be) incorrect or outdated.
1111
- [ ] Something is confusing.
1212
- [ ] Something is broken.
1313

.github/workflows/docker-image-common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- name: Build docs using Docker (Podman has trouble on GitHub runners)
8888
id: build-docs
8989
run: |
90-
cd doc && ./build_docs -b ${PWD}/_build -c -d --container-cli-tool docker -i $IMAGE_TAG
90+
cd doc && ./build_docs -b ${PWD}/_build -c -d -i $IMAGE_TAG
9191
9292
9393
check-version:

.github/workflows/docs-build-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
bin/git-fleximod update -o
5353
cd doc
54-
./build_docs_to_publish -d --container-cli-tool docker --site-root https://escomp.github.io/CTSM
54+
./build_docs_to_publish -d --site-root https://escomp.github.io/CTSM
5555
5656
- name: Upload artifact
5757
uses: actions/upload-pages-artifact@v3

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ jobs:
5656
- name: Build docs using Docker (Podman has trouble on GitHub runners)
5757
id: build-docs
5858
run: |
59-
cd doc && ./build_docs -b ${PWD}/_build -c -d --container-cli-tool docker
59+
cd doc && ./build_docs -b ${PWD}/_build -c -d

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial
124124
[submodule "doc-builder"]
125125
path = doc/doc-builder
126126
url = https://github.com/ESMCI/doc-builder
127-
fxtag = v2.2.3
127+
fxtag = v2.2.6
128128
fxrequired = ToplevelOptional
129129
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
130130
fxDONOTUSEurl = https://github.com/ESMCI/doc-builder

doc/ChangeLog

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,123 @@
11
===============================================================
2+
Tag name: ctsm5.3.050
3+
Originator(s): samrabin (Sam Rabin)
4+
Date: Thu May 29 11:26:21 MDT 2025
5+
One-line Summary: Fix Linux Podman; prefer Linux Docker; update docs docs.
6+
7+
Purpose and description of changes
8+
----------------------------------
9+
10+
- Fixes Podman builds on Ubuntu (mostly; see ESMCI/doc-builder#27)
11+
- Docker now preferred on non-Mac systems
12+
- Improves docs docs
13+
14+
Significant changes to scientifically-supported configurations
15+
--------------------------------------------------------------
16+
17+
Does this tag change answers significantly for any of the following physics configurations?
18+
(Details of any changes will be given in the "Answer changes" section below.)
19+
20+
[Put an [X] in the box for any configuration with significant answer changes.]
21+
22+
[ ] clm6_0
23+
24+
[ ] clm5_0
25+
26+
[ ] ctsm5_0-nwp
27+
28+
[ ] clm4_5
29+
30+
31+
Bugs fixed
32+
----------
33+
List of CTSM issues fixed (include CTSM Issue # and description):
34+
- [Issue #3163: Docs docs: Extraneous variable in a command](https://github.com/ESCOMP/CTSM/issues/3163)
35+
36+
Notes of particular relevance for users
37+
---------------------------------------
38+
39+
User's Guide section on docs updated with new instructions.
40+
41+
42+
Notes of particular relevance for developers:
43+
---------------------------------------------
44+
45+
Caveats for developers (e.g., code that is duplicated that requires double maintenance):
46+
- If you're running doc/testing.sh locally, you'll need both Docker and Podman installed.
47+
48+
49+
Testing summary:
50+
----------------
51+
52+
All required testing happened in GitHub workflows on the PR.
53+
54+
55+
Other details
56+
-------------
57+
58+
List any git submodules updated: doc-builder
59+
60+
Pull Requests that document the changes (include PR ids):
61+
- [Pull Request #3184: ctsm5.3.050: Doc infrastructure and docs: fixes and improvements by samsrabin](https://github.com/ESCOMP/CTSM/pull/3184)
62+
63+
===============================================================
64+
===============================================================
65+
Tag name: ctsm5.3.049
66+
Originator(s): samrabin (Sam Rabin)
67+
Date: Tue May 27 12:49:00 MDT 2025
68+
One-line Summary: Switch docs to use Podman
69+
70+
Purpose and description of changes
71+
----------------------------------
72+
73+
Updates doc-builder to a version that prefers to use podman instead of docker. Also updates documentation to instruct docs-writers to use Podman instead of Docker, along with some other improvements.
74+
75+
76+
Significant changes to scientifically-supported configurations
77+
--------------------------------------------------------------
78+
79+
Does this tag change answers significantly for any of the following physics configurations?
80+
(Details of any changes will be given in the "Answer changes" section below.)
81+
82+
[Put an [X] in the box for any configuration with significant answer changes.]
83+
84+
[ ] clm6_0
85+
86+
[ ] clm5_0
87+
88+
[ ] ctsm5_0-nwp
89+
90+
[ ] clm4_5
91+
92+
93+
Bugs fixed
94+
----------
95+
[Remove any lines that don't apply. Remove entire section if nothing applies.]
96+
97+
List of CTSM issues fixed (include CTSM Issue # and description) [one per line]:
98+
99+
Notes of particular relevance for users
100+
---------------------------------------
101+
102+
User's Guide section on docs updated with new instructions.
103+
104+
105+
Testing summary:
106+
----------------
107+
108+
All required testing happened in GitHub workflows on the PR.
109+
110+
111+
Other details
112+
-------------
113+
114+
List any git submodules updated: doc-builder
115+
116+
Pull Requests that document the changes (include PR ids):
117+
- [Pull Request #3153: ctsm5.3.049: Preferentially use Podman for ctsm-docs container by samsrabin](https://github.com/ESCOMP/CTSM/pull/3153)
118+
119+
===============================================================
120+
===============================================================
2121
Tag name: ctsm5.3.048
3122
Originator(s): samrabin (Sam Rabin, UCAR/TSS)
4123
Date: Mon May 26 18:30:59 MDT 2025

doc/ChangeSum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Tag Who Date Summary
22
============================================================================================================================
3+
ctsm5.3.050 samrabin 05/29/2025 Fix Linux Podman; prefer Linux Docker; update docs docs.
4+
ctsm5.3.049 samrabin 05/27/2025 Switch docs to use Podman
35
ctsm5.3.048 samrabin 05/26/2025 Automatically publish docs to this repo
46
ctsm5.3.047 samrabin 05/26/2025 Merge b4b-dev to master
57
ctsm5.3.046 rgknox 05/26/2025 For FATES set itype to ispval and a few unused variables to nan to help prevent future problems

doc/ctsm-docs_container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ CMD ["/bin/bash", "-l"]
2929

3030
LABEL org.opencontainers.image.title="Container for building CTSM documentation"
3131
LABEL org.opencontainers.image.source=https://github.com/ESCOMP/CTSM
32-
LABEL org.opencontainers.image.version="v1.0.2b"
32+
LABEL org.opencontainers.image.version="v1.0.2c"

doc/source/users_guide/working-with-documentation/building-docs-multiple-versions.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ Building multiple versions of the documentation
55

66
There is a menu in the lower left of the webpage that lets readers switch between different versions of the documentation. To build a website with this menu properly set up—so that all our versions appear and all the links work—you need to use ``docs/build_docs_to_publish`` instead of ``docs/build_docs``.
77

8-
If you'd like to try, this will generate a local site for you in ``_publish/`` and then open it:
8+
Note that this is not necessary in order for you to contribute an update to the documentation. GitHub will test this automatically when you open a PR. But if you'd like to try, this will generate a local site for you in ``_publish/`` and then open it:
99

1010
.. literalinclude:: ../../../testing.sh
1111
:start-at: ./build_docs_to_publish
1212
:end-before: VERSION LINKS WILL NOT RESOLVE
1313
:append: open _publish/index.html
1414

15+
**Note:** This is not yet supported with Podman on Linux (including Ubuntu VM on Windows). See `doc-builder Issue #27: build_docs_to_publish fails on Linux (maybe just Ubuntu?) with Podman <https://github.com/ESMCI/doc-builder/issues/27>`_.
16+
1517

1618
How this works
1719
--------------

0 commit comments

Comments
 (0)