Skip to content
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

Adding Requirements and QA to Docs #2076

Merged
merged 54 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
0c46e4d
Placeholder for ARMI QA docs
john-science Feb 4, 2025
79e1f7d
reverting doc changes
john-science Feb 5, 2025
477b9ed
Adding release note
john-science Feb 5, 2025
e3f8e60
Let's try test reporting
john-science Feb 5, 2025
ad6b2fc
Filling out STR
john-science Feb 6, 2025
28fd654
typo fix
john-science Feb 6, 2025
846da9b
Fixing missing paren
john-science Feb 6, 2025
f65ac5a
merging in main
john-science Feb 6, 2025
f11a982
Trying to free up Sphinx deps versions
john-science Feb 7, 2025
54e8f05
Fixing data file pathing
john-science Feb 7, 2025
b01c0b6
pathing fun
john-science Feb 7, 2025
28c1f0c
pathing fun
john-science Feb 7, 2025
35207be
dependency troubs
john-science Feb 7, 2025
59be4e7
Pin doc deps
john-science Feb 7, 2025
5fb8e8b
Merging in main branch - reqs revamp
john-science Feb 7, 2025
a945a98
Merge branch 'main' into qa_docs
john-science Feb 7, 2025
3077605
Merge branch 'main' into qa_docs
john-science Feb 27, 2025
a1b574f
Adding requirement text in
john-science Feb 27, 2025
2d3f479
Trying to fix Settings Report
john-science Feb 27, 2025
0dc342d
Responding to comments
john-science Feb 28, 2025
1e2bbaa
Code block widths
john-science Feb 28, 2025
6c7a8e9
Fixing code formatting
john-science Feb 28, 2025
3ab757f
Testing
john-science Feb 28, 2025
cd07b32
Trying to fix exclude
john-science Feb 28, 2025
1198b4c
TEMPORARILY remove CI, to make testing faster
john-science Feb 28, 2025
087726e
Fixing sphinx warnings
john-science Mar 3, 2025
861d735
Tweak
john-science Mar 3, 2025
09adf8b
Testing the deploy
john-science Mar 3, 2025
47b7b7f
Mergin in main
john-science Mar 3, 2025
8695a46
Trying to add docs back into CI
john-science Mar 3, 2025
eefc91c
Merge branch 'qa_docs' of https://www.github.com/terrapower/armi into…
john-science Mar 4, 2025
3919d6a
testing... dont build HTML
john-science Mar 4, 2025
463d5bc
debugging simplepdf css warnings
john-science Mar 4, 2025
f262812
Let's try latex
john-science Mar 5, 2025
6d8c2e9
linting
john-science Mar 5, 2025
2367ece
boop
john-science Mar 5, 2025
a5e7902
Missing dep?
john-science Mar 5, 2025
8c5075e
testing
john-science Mar 5, 2025
b1d5444
Let's try latexmk
john-science Mar 5, 2025
eb003f8
Merge branch 'qa_docs' of https://www.github.com/terrapower/armi into…
john-science Mar 5, 2025
35bd369
A was wondering if it could be a venv diff
john-science Mar 5, 2025
13b7c50
Trying preamble - naive version
john-science Mar 5, 2025
7c9eb61
nonstopmode
john-science Mar 5, 2025
5ab427c
Don't build the docs twice
john-science Mar 5, 2025
1e679de
Merge branch 'qa_docs' of https://www.github.com/terrapower/armi into…
john-science Mar 5, 2025
3a0c167
Removing 3 deps
john-science Mar 5, 2025
63a5d86
Removing the hyperref thing
john-science Mar 5, 2025
fc498e3
Adding the TEX file to the build -temporary
john-science Mar 5, 2025
7fd5ed9
Merge branch 'qa_docs' of https://www.github.com/terrapower/armi into…
john-science Mar 5, 2025
a552eca
Combining the two GH workflows
john-science Mar 5, 2025
b6ca40e
Reverting changes to workflows
john-science Mar 6, 2025
324b525
cleaning up last dev dregs
john-science Mar 6, 2025
c1280d3
very minor cleanup
john-science Mar 6, 2025
7defc29
Minor tweaks
john-science Mar 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,31 @@ jobs:
run: sudo apt-get -y install pandoc
- name: Setup Graphviz
uses: ts-graphviz/[email protected]
- name: Make HTML Docs
- name: Make html/pdf Docs
continue-on-error: true
run: |
# Some of these installs are hopefully obsolete. JOHN TODO
sudo apt-get install texlive-xetex
sudo apt-get install texlive-latex-base
sudo apt-get install texlive-fonts-recommended
sudo apt-get install texlive-latex-extra
sudo apt-get install texlive-full
pip install -e .[memprof,mpi,test,docs]
python -c "from armi.bookkeeping.report.reportingUtils import getSystemInfo;print(getSystemInfo())" > system_info.log
date > python_details.log
python --version >> python_details.log
pip freeze >> python_details.log
pytest --junit-xml=test_results.xml -v -n 4 armi > pytest_verbose.log
cd doc
git submodule init
git submodule update
echo "make html:"
make html
make simplepdf
echo "make latex:"
make latex
cd _build/latex/
echo "latexmk -pdf -f ARMI.tex:"
latexmk -pdf -f -interaction=nonstopmode ARMI.tex
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
Expand All @@ -58,5 +75,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: pdf-docs
path: doc/_build/simplepdf/ARMI.pdf
path: doc/_build/latex/ARMI.pdf
retention-days: 5
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.pyx

# No build artifacts
*.aux
*.dll
*.fdb_latexmk
*.fls
*.lib
.apidocs/
/bin
armi/tests/tutorials/case-suite
bin/*
Expand All @@ -17,6 +19,7 @@ coverage.xml
coverage_results.*
dist-*/
dist/
doc/.apidocs
doc/_build
doc/anl-afci-177
doc/gallery
Expand All @@ -26,6 +29,7 @@ doc/tutorials/case-suite
doc/user/tutorials
htmlcov/
monkeytype.*
test_results.*
wheelhouse

# No workspace crumbs
Expand Down Expand Up @@ -60,8 +64,11 @@ armi-venv/*
dump-temp-*
dump-tests*
phabricator-lint.txt
pytest_verbose.log
pytestdebug.log
python_details.log
reportsOutputFiles/
system_info.log
tags
temp-*
venv*/
Expand Down
Binary file added doc/.static/armi_application_structure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 14 additions & 3 deletions doc/.static/css/theme_fixes.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,28 @@
}
}

img {
max-width: 100% !important;
}

/* long tables */
.rst-content table.docutils {
margin: 0;
padding: 0;
font-size: 10pt;
}

img {
max-width: 100% !important;
.rst-content table.docutils td, .rst-content table.docutils th, .rst-content table.field-list td, .rst-content table.field-list th, .wy-table td, .wy-table th {
margin: 0;
padding: 0;
}

/* code snippets */
.rst-content .linenodiv pre, .rst-content div[class^=highlight] pre, .rst-content pre.literal-block {
ssp-tiny;
}

/* get eq numbers to show on the side of the equation */
/* move equation numbers to right side of the equation */
span.eqno {
float: right;
}
24 changes: 24 additions & 0 deletions doc/.static/needs_templates/test.need
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% if sequence is not none %}*Required Testing Sequence:* {{sequence}}{%endif%}

{% if branching is not none %}*Logic Branches:* {{branching}}{%endif%}

{% if required_inputs is not none %}*Necessary Inputs for Simulation:* {{required_inputs}}{%endif%}

{% if parameter_ranges is not none %}*Parameter Ranges:* {{parameter_ranges}}{%endif%}

{% if expected_result is not none %}*Expected Result:* {{expected_result}}{%endif%}

*Acceptance Criteria:* {{acceptance_criteria}}

{% if record_environment is not none %}*Runtime Environment:* {{record_environment}}{%endif%}

{% if record_models is not none %}*Simulation Models Used:* {{record_models}}{%endif%}

{% if record_reference_problem is not none %}*Reference Problem:* {{record_reference_problem}}{%endif%}

{% if record_inputs is not none %}*Necessary Inputs for Record:* {{record_inputs}}{%endif%}

{% if record_actions is not none %}*Recort Actions:* {{record_actions}}{%endif%}


{{content}}
Loading
Loading