Commit Graph

28 Commits

Author SHA1 Message Date
James Mills
1fa555ea43
Add zs generate command for generating partial fragments 2023-04-01 10:47:02 +10:00
James Mills
5b116b3f07
Fix getVars() 2023-03-30 22:22:21 +10:00
James Mills
16a58ffa2d
Add -v/--var flag for configuring additional variables 2023-03-30 22:11:16 +10:00
James Mills
97f798b5c5
Fix debugability of non-existent plugins or variables in non-production mode 2023-03-30 21:15:08 +10:00
James Mills
c8c4ac861a
Add source to variables when rendering to support reveal.js and slide decks or re-using the content source 2023-03-29 23:37:20 +10:00
James Mills
dfaa5cd490
Fix tests and squelch warning if config file not found 2023-03-27 00:46:09 +10:00
James Mills
f64268f9cd
Fix anchor ext to use a blank space by default so it can be more easily styled with CSS 2023-03-27 00:29:58 +10:00
James Mills
320cc026ee
Fix setting extensions via config 2023-03-26 12:57:17 +10:00
James Mills
40d6f8312a
Add support for configurable extensions via -e/--extensions and configuration file 2023-03-26 12:23:23 +10:00
James Mills
d889349f2c
Add support for -c/--config and .zs/config.yml for default vars 2023-03-22 00:17:14 +10:00
James Mills
bfa4160c6c
Fix bug in run passing content that was too long as args 2023-03-20 08:38:05 +10:00
James Mills
0608690f72
Add attribute parser option 2023-03-18 23:01:17 +10:00
James Mills
5b82d79c90
Fix tests 2023-03-18 17:40:46 +10:00
James Mills
3e4215b694 Add additional goldmark extensions (#14)
Closes #13

Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com>
Reviewed-on: https://git.mills.io/prologic/zs/pulls/14
2023-03-18 07:23:10 +00:00
James Mills
2bbe9caa0b
Fix tests 2023-03-18 13:26:16 +10:00
James Mills
84106842bf
Add support for -p/--production global variable 2023-03-18 13:06:33 +10:00
James Mills
8481779221
Add support for rebuilding if .zsignore or .zs/* files change 2023-03-18 11:59:16 +10:00
James Mills
fbac4c54b8
Update to use goldmark (Fixes #11) 2023-03-16 17:47:21 +10:00
James Mills
239d26a15a
Add support for .zsignore (Fixes #3) 2023-03-12 21:52:14 +10:00
James Mills
26c0bfad0b
Add more tests 2023-03-12 21:23:22 +10:00
James Mills
7198656bcd
Fix errors filling in variables (Fixes #2) 2023-03-12 17:48:54 +10:00
James Mills
169a8ac62c
Add a better set of cli commands using cobra/pflag and add version and help to all commands 2023-03-12 16:34:38 +10:00
James Mills
d980980a0b
Add support for specifying root driectory for zs serve 2023-03-12 14:24:34 +10:00
James Mills
339de0457c Refactor a bunch of stuff adding zs serve, CI/CD workflows, fixing docs and license (#10)
Fixes #5
Fixes #8
Fixes #9

Co-authored-by: James Mills <1290234+prologic@users.noreply.github.com>
Reviewed-on: https://git.mills.io/prologic/zs/pulls/10
2023-03-12 04:13:53 +00:00
James Mills
70fb47d6ee
Fix default PATH for .zs for partials for Go 1.19 changes to LookPath handling 2022-08-14 10:52:15 +10:00
James Mills
2ab171a0d4
Code cleanup 2021-10-29 02:10:15 +10:00
James Mills
40012efba4
Add Markdown extensions to blackfriday 2021-10-23 13:57:19 +10:00
James Mills
25c14c56ab
Forked project 2021-09-18 09:32:14 +10:00