diff --git a/Console/Makefile b/Console/Makefile index 3ebb1e5..3d74588 100644 --- a/Console/Makefile +++ b/Console/Makefile @@ -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 diff --git a/Console/build.py b/Console/build.py index e1cd33a..d379877 100644 --- a/Console/build.py +++ b/Console/build.py @@ -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() \ No newline at end of file +if not "--no-gz" in sys.argv: + gz_all()