-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use exact match when dealing with MooseDocs gitutils #29097
Labels
C: Documentation
C: Python
for content in the python directory
T: task
An enhancement to the software.
Comments
milljm
added a commit
to milljm/moose
that referenced
this issue
Nov 19, 2024
Add ability to perform recursion by request from the markdown document. Closes idaholab#29097
After speaking with Cody, we want to keep |
milljm
added a commit
to milljm/moose
that referenced
this issue
Nov 19, 2024
Perform an exact match instead of relying on endswith. This should fix same-named recursive repos within the project. Closes idaholab#29097
milljm
added a commit
to milljm/moose
that referenced
this issue
Dec 12, 2024
Perform an exact match instead of relying on endswith. This should fix same-named recursive repos within the project. Closes idaholab#29097
milljm
added a commit
to milljm/moose
that referenced
this issue
Dec 12, 2024
When matching for submodule repos, sort by length. This will ensure the .endswith(str) will match toplevel submodules before nested submodules of the same name. Nested modules can still be matched, but the user will need to specify that in markdown by supplying the full path, exp: [!git!submodule-hash url=https://github.com/idaholab/moose](contribs/moose) instead of [!git!submodule-hash url=https://github.com/idaholab/moose](moose) Of course, (moose) will still match properly, if this is the only 'moose' submodule in the repo. Closes idaholab#29097
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C: Documentation
C: Python
for content in the python directory
T: task
An enhancement to the software.
Motivation
By default gitutils in MooseDocs uses recursion when querying git submodules. This can inadvertently bring in multiple "moose's". And as such will list the wrong hash when building SQA documentation.
Current design example. Take Bison:
MooseDocs ends up using
iapws95/moose
instead ofmoose
, when generating this page: https://mooseframework.inl.gov/bison/sqa/bison_sll.html (current version of moose identified as being used to build Bison).Design
Allow the git extension to supply recursion at the document level, instead of by global default.
Impact
Correct reporting of certain SQA documents when rendering the MOOSE sited.
The text was updated successfully, but these errors were encountered: