Commit graph

7 commits

Author SHA1 Message Date
Cameron Little
32cf426956 Add support for spaces (and other specials) in keys
Currently, page url generation (slugification) is just toLowerCase. In https://github.com/yannbertrand/macos-defaults/pull/146 I add some defaults that contain keys with spaces, which currently breaks.

This pulls in `slugify` to add support, and shell escapes keys in examples.
2021-04-06 20:53:41 +02:00
Cameron Little
2bc15fe0de 🩹 Improve markdown support
This improves markdown support within descriptions. Currently, adding multiline text blocks in the defaults.yml file breaks, because the generated head meta tags content includes that whitespace as is and breaks the generated yaml contents. Now, meta tag content is stringified
as JSON, which is yaml compliant. The final html meta tag contains the markdown as is. Also currently, markdown descriptions inserted into the
content can interact with subsequent content (if you end with a list it'll cause funky interaction with the following content). That's fixed by inserting a "break" between (done on categores and pages).
2021-04-05 20:10:03 +02:00
Yann Bertrand
39cc31f013 💄 Use better template semantics and add new capabilities
* Document requirements in schema
* Add support for non-generated example titles
* Escape example values for use in shell
* Rename "delete current value" to "reset to default value" to better explain what it does
2021-04-04 13:19:49 +02:00
Yann Bertrand
a6a996ddd2 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
Yann Bertrand
b23f746fe4
🐛 Enforce lowercase URLs 2020-10-03 15:41:02 +02:00
Yann Bertrand
3eb3fa5605
♻️ Normalize templates
- Allow special chars in category name and page title
- Improve HTML image attributes readibility
- Prod: allow double quotes in category and page descriptions
2020-09-26 20:24:54 +02:00
Yann Bertrand
114ab9b479
♻️ Split build into smaller functions 2020-09-26 20:24:54 +02:00
Renamed from build/production/write-tree.js (Browse further)