Skip to content

Update 2026#68

Merged
CallumWalley merged 5 commits intomainfrom
update-2026
Apr 15, 2026
Merged

Update 2026#68
CallumWalley merged 5 commits intomainfrom
update-2026

Conversation

@CallumWalley
Copy link
Copy Markdown
Member

@CallumWalley CallumWalley commented Apr 15, 2026

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

@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

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.

Comment thread checks/run_meta_check.py

msg_count = {"debug": 0, "notice": 0, "warning": 0, "error": 0}

msg_count = {"debug": 0, "notice": 0, "warning": 0, "error": 0}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Redundant initialization of msg_count. It is already defined on line 25.

Comment thread checks/run_meta_check.py
Comment on lines +56 to +63
global \
input_path, \
title_from_h1, \
title_from_filename, \
title, \
meta, \
contents, \
input_path
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Redundant input_path in the global statement. It is listed at both line 57 and line 63.

    global \
        input_path, \
        title_from_h1, \
        title_from_filename, \
        title, \
        meta, \
        contents

Comment thread checks/run_meta_check.py
Comment on lines 132 to 135
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)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

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.

Suggested change
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)

Comment thread checks/run_meta_check.py
Comment on lines +345 to +346
"message": "Try to include at least 2 'tags'\
(helps with search optimisation).",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The error message mentions "at least 2 'tags'", but the MIN_TAGS constant was updated to 1 on line 33. The message should be updated to reflect the current requirement.

            "message": "Try to include at least 1 'tag' (helps with search optimisation)."

Comment thread checks/run_meta_check.py
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():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The function dynamic_slurm_link is defined twice in this file (once at line 396 and again at line 406). The second definition is redundant and should be merged or removed.

Comment thread checks/run_proselint.py

ALLOWABLE_NOTICES = 5

ALLOWABLE_NOTICES = 5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Redundant initialization of ALLOWABLE_NOTICES. It is already defined on line 16.

Comment on lines +338 to +341
.md-typeset .admonition.objectives,
.md-typeset details.time {
border-color: var(--reannz-purple)
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

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.

Suggested change
.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{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Typo in CSS selector: .admonition-titl e should be .admonition-title.

Suggested change
.quiz-question > .admonition-titl e::before{
.quiz-question > .admonition-title::before{

Comment thread mkdocs.yml
@lbrick
Copy link
Copy Markdown
Collaborator

lbrick commented Apr 15, 2026

LGTM

I did notice with the nav changes that we lost the index level of those nav items eg all the index.md files

@CallumWalley
Copy link
Copy Markdown
Member Author

Looks the same to me?
image

@lbrick
Copy link
Copy Markdown
Collaborator

lbrick commented Apr 15, 2026

LGTM

@CallumWalley CallumWalley merged commit daaa8c7 into main Apr 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update dependencies. and stuff.

2 participants