From 1d58728b2015481bab19f622f7c3b939ae2b0614 Mon Sep 17 00:00:00 2001 From: nntrn <17685332+nntrn@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:33:00 -0500 Subject: [PATCH] Add collections --- _config.yml | 31 +++++++++++++++++++++++++++---- readme.md | 8 +++++++- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 9621517..3feebdc 100644 --- a/_config.yml +++ b/_config.yml @@ -17,24 +17,45 @@ stylesheets: - styles/highlight.css - styles/main.css - styles/grid.css + - styles/cheatsheet.css defaults: - scope: - path: "_functions" + path: "_functions/*.md" + type: "functions" values: layout: minimal - scope: - path: "_general" + path: "_general/*.md" + type: "general" values: layout: minimal + - scope: + path: "_notes/*.md" + type: "notes" + values: + layout: minimal + - scope: + path: "_transform/*.md" + type: "transform" + values: + layout: minimal + - scope: + path: "**/index.html" + values: + layout: cheatsheet collections: general: output: true functions: output: true + transform: + output: true + notes: + output: true -sidebar: ["functions", "general"] +sidebar: ["general", "transform", "functions", "notes"] compress_html: clippings: [div, p, ul, td, h1, h2] @@ -44,8 +65,10 @@ compress_html: blanklines: true profile: false +sass: + style: compressed + exclude: - readme.md - Gemfile.lock - - _config.old.yml - scripts diff --git a/readme.md b/readme.md index 81d0b9e..74ae364 100644 --- a/readme.md +++ b/readme.md @@ -1,9 +1,15 @@ # JQ Recipes +## Build + ```sh git clone -b staging https://github.com/nntrn/jq-recipes.git - git clone https://github.com/nntrn/jq-recipes.wiki.git ``` +```sh +bundle install +bundle exec jekyll serve +``` + [Github Page](http://nntrn.github.io/jq-recipes) | [Wiki](https://github.com/nntrn/jq-recipes/wiki)