Update 2026#68
Conversation
|
Test deployment available at https://callumwalley.github.io/mkdocs-demo-deploy/nesi/research-developer-cloud/update-2026 See all deployed demo sites |
There was a problem hiding this comment.
Code Review
This pull request enhances the documentation build system and user interface. Key additions include an ARIA reference checker, a title capitalization linter, and a light/dark mode palette toggle. The documentation theme was also updated with new styles for tutorials, quizzes, and various admonition types. Technical feedback focuses on resolving several redundancies and inefficiencies in the Python check scripts, such as duplicate variable initializations and function definitions. Additionally, corrections are required for CSS selector typos and a logic mismatch between the tag count requirement and its corresponding error message.
|
|
||
| msg_count = {"debug": 0, "notice": 0, "warning": 0, "error": 0} | ||
|
|
||
| msg_count = {"debug": 0, "notice": 0, "warning": 0, "error": 0} |
| global \ | ||
| input_path, \ | ||
| title_from_h1, \ | ||
| title_from_filename, \ | ||
| title, \ | ||
| meta, \ | ||
| contents, \ | ||
| input_path |
| for check in WALKCHECKS: | ||
| in_code_block = not in_code_block if re.match(r"^\s*```\s?\w*$", line) else in_code_block | ||
|
|
||
| _get_nav_tree() | ||
| _run_check(check) |
There was a problem hiding this comment.
Performance improvement: _get_nav_tree() only needs to be called once per line to update the TOC structure. Moving it outside the inner loop avoids redundant calls for each check in WALKCHECKS.
| for check in WALKCHECKS: | |
| in_code_block = not in_code_block if re.match(r"^\s*```\s?\w*$", line) else in_code_block | |
| _get_nav_tree() | |
| _run_check(check) | |
| _get_nav_tree() | |
| for check in WALKCHECKS: | |
| _run_check(check) |
| "message": "Try to include at least 2 'tags'\ | ||
| (helps with search optimisation).", |
| print(m1.group(2)) | ||
| yield {"line": lineno,"message": f"Link '{m1.group(0)}', does not use dynamic slurm version. Use 'https://slurm.schedmd.com/archive/{{{{ config.extra.slurm }}}}/{m1.group(2)}"} | ||
|
|
||
| def dynamic_slurm_link(): |
|
|
||
| ALLOWABLE_NOTICES = 5 | ||
|
|
||
| ALLOWABLE_NOTICES = 5 |
| .md-typeset .admonition.objectives, | ||
| .md-typeset details.time { | ||
| border-color: var(--reannz-purple) | ||
| } |
There was a problem hiding this comment.
Possible copy-paste error: details.time is used within the objectives style block. It should likely be details.objectives. Additionally, the border-color property is missing a trailing semicolon.
| .md-typeset .admonition.objectives, | |
| .md-typeset details.time { | |
| border-color: var(--reannz-purple) | |
| } | |
| .md-typeset .admonition.objectives, | |
| .md-typeset details.objectives { | |
| border-color: var(--reannz-purple); | |
| } |
| background-color: rgba(241, 128, 0, 0.1); | ||
| } | ||
|
|
||
| .quiz-question > .admonition-titl e::before{ |
|
LGTM I did notice with the nav changes that we lost the index level of those nav items eg all the index.md files |
|
LGTM |

Updates checks and dependencies to be inline with main docs.
Fixes #67