Skip to content

Improve Job Script Environment Variables reference #853

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

Conversation

jfrost-mo
Copy link
Contributor

@jfrost-mo jfrost-mo commented Aug 1, 2025

The variables CYLC_ENV_NAME and CYLC_WORKFLOW_LOG_DIR were newly added, and existing variables had their descriptions and examples improved, notably adding the run sub-directory to the example paths.

The longer name for CYLC_TASK_LOG_ROOT does however make a scrollbar appear. To counter this, and also to make better use of the semantics of HTML, I've then converted this reference to a definitions list. This should be more accessible, easier to copy from, and IMO is easier to read.

Rendered version: https://tmpweb.net/V5cucaJ-1HKF/reference/job-script-vars/

Fixes: #779

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.

@jfrost-mo jfrost-mo force-pushed the job_script_environment_variables branch from f12e0ae to 50b2694 Compare August 1, 2025 16:35
jfrost-mo added a commit to jfrost-mo/cylc-doc that referenced this pull request Aug 1, 2025
This make better use of the semantics of HTML, and should also be more
accessible. It also avoid this issue of longer lines of description
causing a scrollbar to appear that was noted in cylc#853.
@jfrost-mo jfrost-mo marked this pull request as ready for review August 1, 2025 17:31
@oliver-sanders
Copy link
Member

oliver-sanders commented Aug 4, 2025

Should work better than a code-block, however, the plan was to use the Sphinx envvar directive: #226 (and also #124)

@jfrost-mo
Copy link
Contributor Author

jfrost-mo commented Aug 4, 2025

I realise I forgot to copy the second commit message into the PR description. The first commit adds a number of missing variables and improves descriptions, while the second changes the formatting to use a HTML definition lists. (Mostly because it is one of my favourite HTML elements currently.)

Would you like me to convert this to use the envvar domain?

@oliver-sanders
Copy link
Member

oliver-sanders commented Aug 7, 2025

Would you like me to convert this to use the envvar domain?

Not now, this is enough of an improvement as it is. I'll leave that issue open.

@jfrost-mo jfrost-mo force-pushed the job_script_environment_variables branch from e281d3b to 6b2422c Compare August 7, 2025 13:34
@oliver-sanders
Copy link
Member

The "check contributor list" test failure is not related to this PR.

@oliver-sanders
Copy link
Member

oliver-sanders commented Aug 7, 2025

But the test failure is related :(

We have a (very annoying) spellchecker which fails everything!


Words can be added globally here: https://github.com/cylc/cylc-doc/tree/master/src/dictionaries

Or locally (to a particular file) using a directive:

.. spelling:word-list::
exeter


Use make spelling to test.

@jfrost-mo jfrost-mo force-pushed the job_script_environment_variables branch from f37b095 to c2474b5 Compare August 7, 2025 14:06
@jfrost-mo
Copy link
Contributor Author

Spelling fixed in c2474b5.

@jfrost-mo jfrost-mo force-pushed the job_script_environment_variables branch from c2474b5 to 714654f Compare August 7, 2025 15:11
The variable CYLC_WORKFLOW_LOG_DIR was newly added, and existing
variables had their descriptions and examples improved, notably adding
the run sub-directory to the example paths. Variables have also been
slightly reordered to be more logically grouped.

The longer name for CYLC_TASK_LOG_ROOT does however make a scrollbar
appear, which may be undesirable.

Fixes: cylc#779
Signed-off-by: James Frost <[email protected]>
This make better use of the semantics of HTML, and should also be more
accessible. It also avoid this issue of longer lines of description
causing a scrollbar to appear.
@jfrost-mo jfrost-mo force-pushed the job_script_environment_variables branch from 714654f to 9ff59d2 Compare August 7, 2025 15:13
@jfrost-mo
Copy link
Contributor Author

Rebased to fix conflict. (And add gregorian to non-proper nouns, due to how we are using it.)

@jfrost-mo
Copy link
Contributor Author

Looks like the failure is just a transient linkcheck issue. Rerunning should fix it.

Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers.

@oliver-sanders oliver-sanders added this to the 8.6.0 milestone Aug 7, 2025
@oliver-sanders oliver-sanders added the content Addition or modification of documentation label Aug 7, 2025
@oliver-sanders oliver-sanders merged commit d9674a7 into cylc:master Aug 7, 2025
1 of 2 checks passed
@jfrost-mo jfrost-mo deleted the job_script_environment_variables branch August 8, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Addition or modification of documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undocumented $CYLC_WORKFLOW_LOG_DIR
2 participants