Update console site build process
This commit is contained in:
parent
899263b390
commit
a2a9b2f0a9
|
@ -2,16 +2,30 @@ clean:
|
|||
@echo Cleaning...
|
||||
@-rm -rf ./build
|
||||
|
||||
site:
|
||||
dirs:
|
||||
@mkdir -p ./build
|
||||
@mkdir -p ./build/css
|
||||
@mkdir -p ./build/gfx
|
||||
@mkdir -p ./build/images
|
||||
# @mkdir -p ./build/pkgs
|
||||
|
||||
pages:
|
||||
python ./build.py
|
||||
|
||||
pages-debug:
|
||||
python ./build.py --no-gz
|
||||
|
||||
data:
|
||||
@echo Including assets...
|
||||
@cp assets/css/* build/css/
|
||||
@cp assets/gfx/* build/gfx/
|
||||
# @cp assets/images/* build/images/
|
||||
# @cp assets/scripts/* build/scripts/
|
||||
# @cp -r ../../Reticulum/docs/manual/* build/reticulum_manual/
|
||||
# @cp -r ../../Reticulum/docs/Reticulum\ Manual.pdf build/reticulum_manual/
|
||||
|
||||
site: dirs data pages
|
||||
|
||||
local: dirs data pages-debug
|
||||
|
||||
serve:
|
||||
python -m http.server 7777 --bind 127.0.0.1 --directory ./build
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import markdown
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
|
||||
packages = {
|
||||
|
@ -207,4 +208,5 @@ for mdf in source_files:
|
|||
wf.write(html.encode(OUTPUT_ENCODING))
|
||||
|
||||
fetch_reticulum_site()
|
||||
gz_all()
|
||||
if not "--no-gz" in sys.argv:
|
||||
gz_all()
|
||||
|
|
Loading…
Reference in New Issue