Skip to content

Commit

Permalink
Get downloads going
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbelesky committed Dec 23, 2023
1 parent b898ddb commit 0abc03b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
_site
.env

# Redundant Assets (generated during deployment)
site/downloads/documentation
site/downloads/projects
site/downloads/techniques

################################################################################
# Groundhog Plugin
################################################################################
Expand Down
2 changes: 1 addition & 1 deletion site/_includes/elements/files.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% capture filePath %}/downloads/{{ page.path | remove_first: "_" | remove_first: ".md" }}.zip{% endcapture %}
{% capture filePath %}/assets/downloads/{{ page.path | remove_first: "_" | remove_first: ".md" }}.zip{% endcapture %}
<article class="message is-success no-print">
<div class="message-body">
<div class="columns is-mobile">
Expand Down
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions site/compile_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for i in ../docs/*;
done

rm -rf ./downloads/documentation/*.zip
mv ../docs/**.zip ./downloads/documentation/
mv ../docs/**.zip ./assets/downloads/documentation/
DOCS=$(ls -1 "./downloads/documentation/" | wc -l | xargs)
echo "Moved ${DOCS} Documentation Files"

Expand All @@ -33,6 +33,6 @@ done
cd "../site/"

rm -rf ./downloads/projects/*.zip
mv ../projects/**.zip ./downloads/projects/
mv ../projects/**.zip ./assets/downloads/projects/
PROJECTS=$(ls -1 "./downloads/projects/" | wc -l | xargs)
echo "Moved ${PROJECTS} Project Files"
3 changes: 1 addition & 2 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
"serve": "bundle exec jekyll serve --unpublished --future --config=_config.yml,_config_dev.yml",
"purge": "bundle exec jekyll clean && rm -rf .jekyll-cache",
"test": "htmlproofer ./_site",
"compile-images": "rm -f ./assets/resize_cache/**/*.{jpg,png}",
"compile-version": "bash ./compile_plugin.sh",
"compile-assets": "bash ./compile_assets.sh",
"compile-deploy": "npm run compile-assets && npm run compile-images",
"compile-deploy": "npm run compile-assets",
"build": "npm run compile-deploy && bundle exec jekyll build --config=_config.yml,_config_prod.yml",
"publish": "npm run purge && npm run build && npm run test && s3_website push"
},
Expand Down

0 comments on commit 0abc03b

Please sign in to comment.