Skip to content

Commit

Permalink
fixes based on YASS (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
purajit authored Mar 9, 2023
1 parent 4f11adb commit 1653a02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))

get-yass:
curl https://raw.githubusercontent.com/purajit/YASS/main/generate_site.py > generate_site.py
chmod +x generate_site.py

symlink-assets:
rm -f $(ROOT_DIR)/docs/static/assets
Expand All @@ -21,5 +22,9 @@ enter-server:
generate-pages-local: get-yass
./generate_site.py yass_config_local.json

# only used in local testing, but with "CDN" paths instead of local ones
generate-pages-cdn: get-yass
./generate_site.py yass_config_prod.json

clean:
git clean -fd
2 changes: 1 addition & 1 deletion yass_config_local.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"static_url": "/static/assets",
"template_functions_module": "yass_template_functions"
"template_functions_file": "yass_template_functions.py"
}
2 changes: 1 addition & 1 deletion yass_config_prod.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"static_url": "https://assets.purajit.com",
"template_functions_module": "yass_template_functions"
"template_functions_file": "yass_template_functions.py"
}

0 comments on commit 1653a02

Please sign in to comment.