Skip to content

Commit

Permalink
More trials
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Jan 29, 2025
1 parent bd86606 commit 751d834
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: github.ref != 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: pr-docs
name: html-docs
path: doc/_build/html
retention-days: 3
- name: Archive PDF Docs
Expand Down
10 changes: 7 additions & 3 deletions doc/user/inputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1591,9 +1591,9 @@ through ``self.cs``.


.. exec::
from armi import settings
import textwrap
from dochelpers import escapeSpecialCharacters
from armi import settings

def looks_like_path(s):
"""Super quick, not robust, check if a string looks like a file path."""
Expand All @@ -1607,8 +1607,12 @@ through ``self.cs``.
# User textwrap to split up long words that mess up the table.
wrapper = textwrap.TextWrapper(width=25, subsequent_indent='')
wrapper2 = textwrap.TextWrapper(width=10, subsequent_indent='')
content = '\n.. rst-class:: break_before, ssp-landscape, break_after\n\n.. list-table:: ARMI Settings\n :header-rows: 1\n :widths: 20 30 15 15\n :class: ssp-tiny\n \n'
content += ' * - Name\n - Description\n - Default\n - Options\n'
content = '\n.. rst-class:: break_before, ssp-landscape, break_after\n\n'
content += '.. list-table:: ARMI Settings\n'
content += ' :widths: 25 25 10 25\n'
content += ' :class: ssp-tinier \n'
content += ' :header-rows: 1\n'
content += ' \n * - Name\n - Description\n - Default\n - Options\n'

for setting in sorted(cs.values(), key=lambda s: s.name):
content += ' * - {}\n'.format(' '.join(wrapper.wrap(setting.name)))
Expand Down

0 comments on commit 751d834

Please sign in to comment.