Skip to content

Add Search #160

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

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
tailing_whitespace = false

[**.xml]
tailing_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.

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

OUT = out

.PHONY: clean build copy_assets minify_static sitemap

all: build copy_assets 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