aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc
Commit message (Collapse)AuthorAgeFilesLines
...
* content-parser: source-parser: rename TITLE to FIRST_HEADERRafael G. Martins2017-02-153-13/+13
|
* content-parser: html-encode pre-defined title. updated man pagesRafael G. Martins2017-02-151-1/+1
|
* content-parser: source-parser: extract TITLE from content headerRafael G. Martins2017-02-143-5/+21
| | | | | | | | | | | this patch implements support to using the first header found in source file as the TITLE variable. please note that if the TITLE variable is defined on the source file's variable section it takes precedence. this patch changes the old behaviour and can break some users' websites. if you have some '{% ifdef TITLE %}' blocks in your template, they will evaluate to true if you don't defined TITLE manually, but have a header in your content.
* 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.
* blogc: common: git-receiver: improved error handlingRafael G. Martins2016-12-231-0/+5
|
* 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.
* runserver: blogc/loader: improve strto*l handlingRafael G. Martins2016-10-141-3/+15
|
* renderer: fixed strtol error detection bug in freebsdRafael G. Martins2016-10-131-6/+5
| | | | | it seems that error detection for strtol using errno is a glibc extension.
* *: fixed includesRafael G. Martins2016-10-071-1/+0
|
* runserver: reimplemented http server without libeventRafael G. Martins2016-09-251-2/+2
| | | | | | | | | yeah, this patch implements a "complete" http server for static files. It is not the best code possible, and would be easily DDoS'able if used in production, as it spawns a thread for each request, without limiting. I'm sickish and this is the best code I can deliver now. At least it works! ;)
* error: added prefix support to bc_error_printRafael G. Martins2016-09-162-3/+3
|
* blogc: common: moved "file" to commonRafael G. Martins2016-09-093-92/+3
|
* file: do not call fprintf directlyRafael G. Martins2016-09-093-19/+7
|
* s/blogc_utf8_/bc_utf8_/gRafael G. Martins2016-09-092-3/+3
|
* *: centralize error handlingRafael G. Martins2016-09-0914-79/+3
|
* *: moved error handling to src/common/Rafael G. Martins2016-09-0316-275/+178
|
* *: s/sb_/bc_/gRafael G. Martins2016-09-0315-328/+328
|
* *: big code reorganization.Rafael G. Martins2016-09-0319-0/+4041
- source and tests are now splitted by target - utils lib is now called common still pending move error.c from blogc to common