Skip to content

Commit

Permalink
Add collections
Browse files Browse the repository at this point in the history
  • Loading branch information
nntrn committed May 1, 2024
1 parent 9937fd1 commit 1d58728
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
31 changes: 27 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -44,8 +65,10 @@ compress_html:
blanklines: true
profile: false

sass:
style: compressed

exclude:
- readme.md
- Gemfile.lock
- _config.old.yml
- scripts
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 1d58728

Please sign in to comment.