Skip to content

Commit

Permalink
Expose documentation unit to MooseDocs page and apply CSS formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cticenhour committed Sep 18, 2024
1 parent f7ea6d6 commit 6aaef37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/doc/content/css/moose.css
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ li{
.moose-parameter-description span,
.moose-parameter-description-default span,
.moose-parameter-description-cpptype span,
.moose-parameter-description-doc-unit span,
.moose-parameter-description-options span,
.moose-parameter-description-controllable span{
padding-right:10px;
Expand Down
5 changes: 5 additions & 0 deletions python/MooseDocs/extensions/appsyntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,11 @@ def createMaterialize(self, parent, token, page):
html.Tag(p, 'span', string='C++ Type:')
html.String(p, content=cpp_type, escape=True)

doc_unit = param['doc_unit']
p = html.Tag(body, 'p', class_='moose-parameter-description-doc-unit')
html.Tag(p, 'span', string='Unit:')
html.String(p, content=doc_unit)

if param['options']:
p = html.Tag(body, 'p', class_='moose-parameter-description-options')
html.Tag(p, 'span', string='Options:')
Expand Down

0 comments on commit 6aaef37

Please sign in to comment.