aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/main.c
Commit message (Collapse)AuthorAgeFilesLines
* blogc: renderer: add `FOREACH_VALUE` variableRafael G. Martins2023-02-111-1/+1
|
* blogc: generate table of contents treeRafael G. Martins2020-09-111-1/+1
| | | | | | | | | | | | | this commit allows users to use the `{{ TOCTREE }}` variable in their templates, to get automatically generated table of contents for entries. The variable is binded to each entry, so it can be used in any block that runs in entry context, like `{% block entry %}`. There's a small performance penalty for this, because the table of contents is rendered for any entry, despite being used or not, and not generated on-demand. still missing documentation. tests are good enough.
* *: update copyrightRafael G. Martins2020-05-311-1/+1
| | | | this time I'm only updating the files I touched this year.
* common: bc_stdin_read() should set read lengthRafael G. Martins2020-05-301-4/+5
|
* blogc: use new filelist parserRafael G. Martins2020-05-291-24/+8
|
* blogc: allow passing multiple -e optionsRafael G. Martins2020-04-221-13/+20
|
* blogc: fixed bug that prevented digits in -D argumentsRafael G. Martins2019-09-041-4/+15
|
* blogc: added support for formatted variables in -pRafael G. Martins2019-04-131-5/+4
|
* blogc: added `-e` cli option and `listing_entry` template blockRafael G. Martins2019-04-021-5/+25
|
* blogc: -p should return special code when variable not foundRafael G. Martins2019-03-281-1/+7
|
* blogc: exit 1 on errorRafael G. Martins2019-03-281-10/+10
|
* blogc: dump source file variables as well as global variablesRafael G. Martins2019-03-271-5/+10
|
* *: update copyrightRafael G. Martins2019-01-151-1/+1
|
* *: update copyrightRafael G. Martins2018-10-141-1/+1
|
* blogc: common: replace unsigned int with size_tRafael G. Martins2018-03-201-2/+2
|
* Revert "blogc: make: mkdir may raise ENOENT"Rafael G. Martins2018-02-251-1/+1
| | | | | | This reverts commit 0bc74a99b362a7ef58655bf3d4b29d5699c38c90. That change made no sense :x
* blogc: make: mkdir may raise ENOENTRafael G. Martins2018-02-241-1/+1
|
* blogc: template parser refactoringRafael G. Martins2018-02-211-1/+1
| | | | mostly names and data structures.
* *: updated copyrightRafael G. Martins2017-02-251-1/+1
|
* make-embedded: removed symlink support from blogc binaryRafael G. Martins2017-01-301-8/+3
| | | | | embedded binary is supposed to be used on lambda, not to replace blogc-make binary on common setups
* make: implemented a build tool for blogcRafael G. Martins2016-12-271-4/+42
| | | | | | | | | | | | | | | | | so, this is basically what happens when you don't have anything better to do in the christmas weekend. most of this code was written in the last 2 or 3 days. i'd like to thank the chivas brothers, the weather and my psychological problems for this achievement. on a serious note, this tool still needs a man page, more tests, and the aws lambda function should be adapted to use it instead of (or together with) make/busybox. also, while talking about aws lambda, this tool can be nicely embedded into the blogc binary, to produce a single "small" static binary for usage in lambda ;)
* *: binaries should always return 3 on errors, for consistency.Rafael G. Martins2016-12-261-10/+10
| | | | | | We used to return 1 or 2 in case of errors, with no special meaning, other than "something is wrong", but these codes are reserved. Now we always return 3.
* fixed includesRafael G. Martins2016-11-191-1/+0
|
* blogc: added more parenthesis to make gcc happy. trying to fix travisRafael G. Martins2016-10-151-1/+1
|
* blogc: we still need to strip newlines from end of lineRafael G. Martins2016-10-151-1/+8
|
* blogc: do not strip spaces, they are valid in file namesRafael G. Martins2016-10-151-4/+3
|
* blogc: add cli option to read list of source files from stdinRafael G. Martins2016-10-151-2/+27
| | | | | | | | | | this patch adds `-i` option to command line. it will instruct blogc to read stdin and parse it as a file where each source file is a line and empty lines and lines starting with `#` are ignored. this patch makes it possible to use blogc to build big blogs with lots of pages, that would hit the operating system max command line length when calling blogc to build pages.
* error: added prefix support to bc_error_printRafael G. Martins2016-09-161-2/+2
|
* s/blogc_utf8_/bc_utf8_/gRafael G. Martins2016-09-091-1/+1
|
* *: centralize error handlingRafael G. Martins2016-09-091-3/+2
|
* *: moved error handling to src/common/Rafael G. Martins2016-09-031-3/+4
|
* *: s/sb_/bc_/gRafael G. Martins2016-09-031-25/+25
|
* *: big code reorganization.Rafael G. Martins2016-09-031-0/+297
- source and tests are now splitted by target - utils lib is now called common still pending move error.c from blogc to common