diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..ed69792 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# for developers (rstular) + +from sijanec + +I was frustrated by the fact that I needed to change side navigation on 10+ individual html files if I added a page or wanted +to change a single icon. So I wrote this small script that includes html files from other html files. Syntax `<@?i +navigation@>` in a .bvr file in [pages-src](pages-src) will include [`navigation.bvr` from +`pages-src/misc/`](pages-src/misc/navigation.bvr). PATH (where to search for files to include) can be set in +[`global.bvr`](global.bvr) (separated with a space). Variables can also be set without touching the disk (faster, idrk) with +`<@?s variable_name variable value@>` and read with `<@?s variable_name@>`. To execute a command and surpress output, use +`<@#?x arg@>` where `x` is the command. + +So pages are now in pages-src and before deployment, `./compose_html pages-src/ pages/` has to be run to update the pages +dir. + + +idkr, it seemed like a good idea, but feel free not to use it (write about it here so I won't override your commits). + +the compiled binaries work on "`Linux kondenzator 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 x86_64 +x86_64 x86_64 GNU/Linux`". + +there's now a configure script (bash) that compiles all binaries (use if the prebuilt binaries don't work). + +``` +# install dependencies +sudo apt install git gcc +# run from project directory +./configure +``` +creates binaries so you can use the ./install everytime you make changes (and hook to post-commit) + +should there be any conflicts with the developers on different platforms, .gitignore files will be created to ignore binaries +from being comitted every time. |