From 9df939a73fca559081523477cdcc9805c225fa23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Tue, 12 May 2020 21:13:59 +0200 Subject: DO NOT MERGE --- TESTING! --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..8317853 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# 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 now 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 binary works 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`". + +this is close to how I compiled it: +``` +idrk=`pwd` +cd /tmp +git clone https://github.com/sijanec/bverbose +cd bverbose +gcc test/compose-all-in-dir.c -I lib -I src +mv a.out $idrk/compose_html +cd $idrk +``` -- cgit v1.2.3 From 2cfbc59a383f4350744139c41da0256652d0dad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Wed, 13 May 2020 14:29:23 +0200 Subject: ready for merge? --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index 8317853..d44d618 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ navigation@>` in a .bvr file in [pages-src](pages-src) will include [`navigation So now 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 binary works on "`Linux kondenzator 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 x86_64 -- cgit v1.2.3 From 068a3541fac291885945b1fe5de58e8fe01a98d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Thu, 14 May 2020 21:43:04 +0200 Subject: version is now updated in sw.js and about.bvr --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d44d618..ed69792 100644 --- a/README.md +++ b/README.md @@ -10,22 +10,24 @@ navigation@>` in a .bvr file in [pages-src](pages-src) will include [`navigation `<@?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 now pages are now in pages-src and before deployment, `./compose_html pages-src/ pages/` has to be run to update the pages +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 binary works on "`Linux kondenzator 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 x86_64 +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`". -this is close to how I compiled it: +there's now a configure script (bash) that compiles all binaries (use if the prebuilt binaries don't work). + ``` -idrk=`pwd` -cd /tmp -git clone https://github.com/sijanec/bverbose -cd bverbose -gcc test/compose-all-in-dir.c -I lib -I src -mv a.out $idrk/compose_html -cd $idrk +# 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. -- cgit v1.2.3