Skip to content
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e49e279
Makefile file so the steps can be can out of order
Mab879 Mar 28, 2025
2a52b6a
Adjust the output html to use a pool for multiprocessing
Mab879 Mar 28, 2025
1f73799
Add json outputs for search
Mab879 Mar 28, 2025
19c6ce3
Add search
Mab879 Mar 28, 2025
2c18c33
Adjust navbar link colors
Mab879 Apr 14, 2025
ef14f5b
Fix acessability and loading js speed
Mab879 Apr 14, 2025
2df2c44
Update editor config
Mab879 Apr 15, 2025
132b5c4
Minify HTML, CSS, and JS for deploy
Mab879 Apr 15, 2025
4e979a6
Many HTML fixes in the base template
Mab879 Apr 15, 2025
6bf62ba
STIG ID column should always show the full STIG without wrapping
Mab879 May 9, 2025
b62b7c4
Use UTC time for run time.
Mab879 May 14, 2025
7c053ae
Use named groups in import_stig
Mab879 May 14, 2025
7af6773
Add minify_html to requirements
Mab879 May 14, 2025
867bbf7
For now don't minify static asssets.
Mab879 May 14, 2025
a06a732
Adjust console_scripts in setup.cfg
Mab879 May 14, 2025
9b09222
Start add to search script
Mab879 May 14, 2025
e583889
Add feature-flag for search
Mab879 May 14, 2025
44a1824
Ignore preview deployment artifacts
Mab879 May 15, 2025
8d66886
Add progress bars
Mab879 May 15, 2025
de96f3e
Use logging, vs print
Mab879 May 15, 2025
299c824
Bug fixes
Mab879 May 15, 2025
908c67b
Update _prep_models to use the new methods
Mab879 May 15, 2025
1563688
Model validation and code clean up
Mab879 May 15, 2025
0dc217d
Update project config
Mab879 May 15, 2025
d85b748
Add function to create json output for search
Mab879 Jun 19, 2025
45f6746
Improve add to search script
Mab879 Jun 19, 2025
fb85955
Reenable search
Mab879 Jun 28, 2025
71a2f1c
Fix issues in main.py
Mab879 Jun 28, 2025
ea47371
Update based on feedback in PR
Mab879 Jun 28, 2025
4bde912
Update based on feedback
Mab879 Jul 2, 2025
a1e8b6a
Update based on feedback
Mab879 Jul 2, 2025
bacd26a
Make the minify static actually work
Mab879 Jul 2, 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
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ root = true
[**]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = false

[**.xml]
trim_trailing_whitespace = true # Don't change the files that DISA provides

[Makefile]
indent_style = tab

[**.py]
[{**.py,**.css,**.js,**.html}]
indent_size = 4
indent_style = space
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,6 @@ out/

# SonarLint plugin
.idea/sonarlint/

# Output
*.tar.gz
3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/stigaview-static.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,25 @@ endif

OUT = out

all: build copy_assets sitemap
.PHONY: all clean build copy_assets minify_static sitemap

all: build copy_assets minify_static sitemap

build:
@$(RM) -rf out
@$(MKDIR) out
@$(RM) -rf $(OUT)
@$(MKDIR) $(OUT)
@$(PYTHON) -m stigaview_static -o $(OUT)/ products


copy_assets:
@$(CP) -r public_html/* $(OUT)/

minify_static:
@$(PYTHON) utils/minify.py --output_path $(OUT)/

sitemap:
@$(FIND) "$(OUT)/" -name "*.html" > "$(OUT)/sitemap.txt"
@$(SED) -i "s#out#https://stigaview.com#" "$(OUT)/sitemap.txt"
@$(SED) -i "s#/index.html##" "$(OUT)/sitemap.txt"

clean:
@$(RM) -rf $(OUT)
Loading