aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* make: use permalinks as atom idsRafael G. Martins2019-04-202-76/+76
| | | | | | | | | | | | I have just realized that was implementing atom feeds wrong for long time. atom ids are supposed to be valid uris. this is a small but breaking change. it is supposed to make some clients think that all of the old posts were republished. This can be avoided by running something like this, before upgrading: $ blogc-make atom_dump > templates/atom.tmpl however, keep in mind that your atom ids are invalid :/
* make: added listing_entry testRafael G. Martins2019-04-031-3/+14
|
* make: added support for `blogc -e`Rafael G. Martins2019-04-031-12/+42
| | | | must still add tests
* blogc: added `-e` cli option and `listing_entry` template blockRafael G. Martins2019-04-023-29/+241
|
* blogc: content: do not escape inline codeRafael G. Martins2019-02-241-3/+11
| | | | | | this is more compatible with markdown spec[1] [1] https://daringfireball.net/projects/markdown/syntax#code
* blogc: sysinfo: simplified username impl. fixed testsRafael G. Martins2019-02-231-31/+9
|
* blogc: test "inject" functionsRafael G. Martins2019-02-102-0/+87
|
* blogc: rusage: added tests, fixed minor issueRafael G. Martins2019-02-101-0/+104
|
* blogc: sysinfo: added testsRafael G. Martins2019-02-103-4/+236
|
* blogc: funcvars: code simplified, added testsRafael G. Martins2019-02-101-0/+84
|
* blogc: template: allow whitespaces in template tags, not just spacesRafael G. Martins2019-02-091-0/+130
|
* *: update copyrightRafael G. Martins2019-01-1521-21/+21
|
* make: settings: removed unused functionRafael G. Martins2018-12-161-3/+0
|
* *: update copyrightRafael G. Martins2018-10-1421-21/+21
|
* make: added atom_dump helper ruleRafael G. Martins2018-07-262-0/+250
|
* make: allow custom atom templatesRafael G. Martins2018-07-261-0/+251
|
* make: implemented atom_legacy_entry_id settingRafael G. Martins2018-07-251-0/+128
| | | | This allows current users to avoid atom entry id changes.
* common: added bc_str_to_boolRafael G. Martins2018-07-251-0/+26
|
* make: fixed filename generation for rules and atom feedRafael G. Martins2018-07-252-58/+554
|
* make: added utilitary function to generate filenamesRafael G. Martins2018-07-251-0/+119
|
* make: handle empty prefixes properlyRafael G. Martins2018-07-242-3/+68
| | | | still needs to add integration tests
* common: config-parser: fix empty values supportRafael G. Martins2018-07-231-0/+318
|
* git-receiver: git shell should reinstall hooks if symlinks are brokenRafael G. Martins2018-06-121-0/+15
|
* git-receiver: fixed segfault on pre-receive hookRafael G. Martins2018-06-101-2/+20
| | | | | if a [repo:*] section was defined in blogc-git-receiver.ini, but was not providing a symlink value, that would result in a segfault.
* make: disable post listings if {atom_,}posts_per_page is 0Rafael G. Martins2018-06-101-46/+1
|
* make: test atom_posts_per_page = -1Rafael G. Martins2018-06-101-0/+15
|
* Revert "make: disable pagination rules if <= 0 posts per page"Rafael G. Martins2018-06-101-0/+48
| | | | | | This reverts commit cab17026f64ba78bfd9dcac6327607af8e396ebd. Poorly implemented :/
* make: disable pagination rules if <= 0 posts per pageRafael G. Martins2018-06-091-48/+0
|
* git-receiver: allow users to define builds dirRafael G. Martins2018-05-313-4/+5
|
* git-receiver: allow users to define the htdocs symlink pathRafael G. Martins2018-05-311-3/+82
| | | | documentation pending
* git-receiver: centralize settings to reuse laterRafael G. Martins2018-05-301-10/+10
|
* git-receiver: allow users to change the base directoryRafael G. Martins2018-05-302-2/+2
| | | | | this is useful mostly for shared environments that just provide one shell user.
* git-receiver: added support to use as an authorized_keys commmandRafael G. Martins2018-05-261-0/+7
|
* make: fixed pagination, added testsRafael G. Martins2018-03-201-0/+377
|
* blogc: common: replace unsigned int with size_tRafael G. Martins2018-03-202-3/+3
|
* make: rename TAG_CLOUD to MAKE_TAGSRafael G. Martins2018-03-121-3/+3
| | | | | all the template helper variables provided by blogc-make should start with MAKE_
* make: added `MAKE_POST` var to `posts` and `pages` rulesRafael G. Martins2018-03-111-22/+35
| | | | | | This variable will have the same string that was inserted in tbe `blogcfile` when listing posts and pages, and is useful to highlight active menu items, for example.
* make: fix memory leakRafael G. Martins2018-03-111-0/+1
|
* make: pass TAG_CLOUD variable to blogc.Rafael G. Martins2018-03-101-0/+45
| | | | | this variable includes all the tags configured in blogcfile(5) as a space-separated string.
* blogc: template parser refactoringRafael G. Martins2018-02-213-390/+390
| | | | mostly names and data structures.
* make: disable bm_find_binary tests when running embeddedRafael G. Martins2018-01-071-0/+6
|
* Allow lines starting with * or **baylej2017-10-251-6/+6
| | | | | | | These are emphasizing markups per the "Markdown standard". A line containing two '*' or '+' or '-' are not valid horizontal rules. See: https://daringfireball.net/projects/markdown/syntax#hr
* make: added 'html_order' and 'atom_order' settingsRafael G. Martins2017-08-032-5/+123
| | | | | | | these settings are used to change the order of the posts on the listings. by default, users are supposed to list their posts from older to newer in the blogcfile, and blogc-make will list them on descending order, both for html listings and atom listings.
* loader: added FILTER_REVERSERafael G. Martins2017-07-251-0/+47
|
* allow source config keys without valueRafael G. Martins2017-06-281-7/+4
|
* utils: trie: fixed bug in foreach implementation.Rafael G. Martins2017-06-242-3/+82
| | | | | | when looping through the tree, the algorithm would stop, if found a '\0' in the key of the tree node. there should be no "child" field after a '\0', but "next" fields may exist.
* make: copy rule should support directories, recursivelyRafael G. Martins2017-04-301-0/+70
| | | | | | now any directories listed in the [copy] section of blogcfile will have its files copied recursively to the output dir. this is useful for big chunks of generated files, e.g. doxygen documentation.
* make: settings: do not read output_dir from blogcfileRafael G. Martins2017-04-282-92/+83
| | | | | now it is only possible to override output directory using environment variable. this commit also reduces the number trie lookups.
* make: fix testsRafael G. Martins2017-04-111-12/+3
|
* make: all builds are "production" by default, enable "dev" on cli.Rafael G. Martins2017-03-111-6/+5
| | | | | | this is more consistent with other similar tools, and enables us to add something like a [copy:dev] section later, that will avoid copying dev files to production builds.