Skip to content

Commit d535b73

Browse files
Merge pull request #11 from MichaelCurrin/build-upgrade-jekyll
build: upgrade Jekyll to 4
2 parents b12842e + 77a9b7a commit d535b73

File tree

50 files changed

+167
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+167
-130
lines changed

β€Ž.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: GH Pages Deploy
2+
3+
on:
4+
push:
5+
branches: master
6+
paths-ignore:
7+
- README.md
8+
9+
pull_request:
10+
branches: master
11+
paths-ignore:
12+
- README.md
13+
14+
jobs:
15+
build-deploy:
16+
name: Build and deploy
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout πŸ›ŽοΈ
22+
uses: actions/checkout@v2
23+
24+
- name: Set up Ruby πŸ’Ž
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: "3"
28+
bundler-cache: true
29+
30+
- name: Build πŸ—
31+
run: make build
32+
33+
- name: Deploy to GH Pages πŸš€
34+
if: ${{ github.event_name != 'pull_request' }}
35+
uses: peaceiris/actions-gh-pages@v3
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: _site

β€ŽGemfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
source "https://rubygems.org"
22

3-
gem "jekyll", "~> 3.9"
4-
gem "kramdown-parser-gfm", "~> 1.1.0"
3+
gem "jekyll", "~> 4.2"
54
gem "webrick", "~> 1.7"
65

76
gem "fractal", git: "https://github.com/MichaelCurrin/fractal"
8-
9-
group :jekyll_plugins do
10-
gem "jekyll-remote-theme", "~> 0.4.3"
11-
end

β€ŽREADME.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Code Cookbook πŸ‘©β€πŸ’»πŸ‘¨β€πŸ³πŸ“–πŸ₯—
22
> Reusable code patterns which you can use as reference or copy to your project
33
4+
[![GH Pages Deploy](https://github.com/MichaelCurrin/code-cookbook/workflows/GH%20Pages%20Deploy/badge.svg)](https://github.com/MichaelCurrin/code-cookbook/actions?query=workflow:"GH+Pages+Deploy")
45
[![GitHub tag](https://img.shields.io/github/tag/MichaelCurrin/code-cookbook?include_prereleases&sort=semver)](https://github.com/MichaelCurrin/code-cookbook/releases/)
56
[![License](https://img.shields.io/badge/License-MIT-blue)](#license)
67

7-
[![Jekyll - 3.9](https://img.shields.io/badge/Jekyll-3.9-blue?logo=jekyll&logoColor=white)](https://jekyllrb.com)
8+
[![Jekyll](https://img.shields.io/badge/Jekyll-4-blue?logo=jekyll&logoColor=white)](https://jekyllrb.com)
89
[![theme - fractal](https://img.shields.io/static/v1?label=theme&message=fractal&color=blue&logo=github)](https://github.com/MichaelCurrin/fractal)
910
[![Hosted with - GitHub Pages](https://img.shields.io/badge/Hosted_with-GitHub_Pages-blue?logo=github&logoColor=white)](https://pages.github.com/)
1011

@@ -22,7 +23,7 @@
2223

2324
<div align="center">
2425

25-
[![View site - GH Pages](https://img.shields.io/static/v1?label=View+site&message=GH+Pages&color=2ea44f&style=for-the-badge)](https://michaelcurrin.github.io/code-cookbook/)
26+
[![View site - GH Pages](https://img.shields.io/static/v1?label=View+site&message=GH+Pages&color=2ea44f&style=for-the-badge)](https://michaelcurrin.github.io/code-cookbook/ "Go to website")
2627

2728
</div>
2829

β€Ž_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ strict_front_matter: true
3535

3636
### Theme boilerplate ###
3737

38-
remote_theme: MichaelCurrin/fractal
38+
theme: fractal
3939

4040
titles_from_headings:
4141
strip_title: true

β€Žindex.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ layout: home
77
88
Welcome to **Code Cookbook**.
99

10-
This aims to have an entire recipe to solve a problem. Such as a script or config, or a few files which work together.
10+
This aims to have an entire recipe to solve a problem. Such as a script or config, or a few files which work together.
1111

1212
And the recipes are based on real-world code as much as possible, collecting from repos or docs I encounter or from my own projects.
1313

1414
<div align="center" style="padding-bottom: 1em;">
15-
<a href="{{ site.baseurl }}{% link recipes/index.md %}">
15+
<a href="{% link recipes/index.md %}">
1616
<img src="https://img.shields.io/badge/all_recipe_topics-blue?style=for-the-badge"
1717
alt="Go to recipes"/>
1818
</a>
@@ -47,12 +47,12 @@ Highlights of this site.
4747
- Commands and configs for using Docker and Kubernetes.
4848

4949

50-
[Vue]: {{ site.baseurl }}{% link recipes/javascript/packages/vue/index.md %}
51-
[EditorConfig]: {{ site.baseurl }}{% link recipes/other/editor-config.md %}
52-
[Make]: {{ site.baseurl }}{% link recipes/make/index.md %}
53-
[CI/CD]: {{ site.baseurl }}{% link recipes/ci-cd/index.md %}
54-
[Workflows]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/index.md %}
55-
[SEO]: {{ site.baseurl }}{% link recipes/web/seo/index.md %}
56-
[Shell]: {{ site.baseurl }}{% link recipes/shell/index.md %}
57-
[Jekyll]: {{ site.baseurl }}{% link recipes/jekyll/index.md %}
58-
[Containers]: {{ site.baseurl }}{% link recipes/containers/index.md %}
50+
[Vue]: {% link recipes/javascript/packages/vue/index.md %}
51+
[EditorConfig]: {% link recipes/other/editor-config.md %}
52+
[Make]: {% link recipes/make/index.md %}
53+
[CI/CD]: {% link recipes/ci-cd/index.md %}
54+
[Workflows]: {% link recipes/ci-cd/github-actions/workflows/index.md %}
55+
[SEO]: {% link recipes/web/seo/index.md %}
56+
[Shell]: {% link recipes/shell/index.md %}
57+
[Jekyll]: {% link recipes/jekyll/index.md %}
58+
[Containers]: {% link recipes/containers/index.md %}

β€Žrecipes/ansible/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ logo: ansible
55

66
Default config files in the root `/etc/ansible/` directory:
77

8-
- [Config]({{ site.baseurl }}{% link recipes/ansible/config.md %})
9-
- [Hosts]({{ site.baseurl }}{% link recipes/ansible/hosts.md %})
8+
- [Config]({% link recipes/ansible/config.md %})
9+
- [Hosts]({% link recipes/ansible/hosts.md %})
1010

1111
See [User guide](https://docs.ansible.com/ansible/latest/user_guide/index.html) in the docs.

β€Žrecipes/ci-cd/github-actions/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Here are some places to start to get into workflow file samples.
1717
- See sample workflows across programming languages.
1818

1919
[GitHub Actions]: https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/ci-cd/github-actions/
20-
[Basic generic workflow]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/basic.md %}
21-
[Basic Node workflow]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/node/basic.md %}
22-
[Workflows]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/index.md %}
20+
[Basic generic workflow]: {% link recipes/ci-cd/github-actions/workflows/basic.md %}
21+
[Basic Node workflow]: {% link recipes/ci-cd/github-actions/workflows/node/basic.md %}
22+
[Workflows]: {% link recipes/ci-cd/github-actions/workflows/index.md %}

β€Žrecipes/ci-cd/github-actions/tokens/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ A GitHub Action needs permissions to push to your `gh-pages` branch - so you mus
77

88
Here are the approaches, from simplest to most complex to manage. A summary is provided.
99

10-
- [GitHub token]({{ site.baseurl }}{% link recipes/ci-cd/github-actions/tokens/github-token.md %})
10+
- [GitHub token]({% link recipes/ci-cd/github-actions/tokens/github-token.md %})
1111
- API key scoped to a single repo.
1212
- Auto-generated for a GH workflow - low effort.
1313
- Very secure - you never have to copy or even view the value.
1414
- The main limitation is that this only works for GitHub Actions, unlike the others.
15-
- [Access token]({{ site.baseurl }}{% link recipes/ci-cd/github-actions/tokens/access-token.md %})
15+
- [Access token]({% link recipes/ci-cd/github-actions/tokens/access-token.md %})
1616
- API key scoped to **all** repos in your GH account.
1717
- Easy to generate and add to a workflow.
1818
- **Warning** - this is the least secure. A token is for your entire profile, not per repo. With public repo access, a token gives read and write access to all your public repos - a compromised token can be used to do a lot of damage.
1919
- This key is useful for doing actions with the GH API such as reporting on stats.
20-
- [Deploy key]({{ site.baseurl }}{% link recipes/ci-cd/github-actions/tokens/deploy-key.md %})
20+
- [Deploy key]({% link recipes/ci-cd/github-actions/tokens/deploy-key.md %})
2121
- API key scoped to a repo.
2222
- Needs to be generated **locally** once using SSH tool and your email address then pasted in so it takes more effort.
2323
- Slightly less secure then GH Token as you deal with a value, but this is more flexible.

β€Žrecipes/ci-cd/github-actions/workflows/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Minimal workflows for GH Actions to get you started
55

66
If you are a JS developer, see the [Basic Node][] section.
77

8-
[Basic Node]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/node/basic.md %}
8+
[Basic Node]: {% link recipes/ci-cd/github-actions/workflows/node/basic.md %}
99

1010

1111
## Samples

β€Žrecipes/ci-cd/github-actions/workflows/build-release-assets/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ title: Release Go assets
33
logo: go
44
---
55

6-
See the [Go]({{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/go/index.md %}) workflows section.
6+
See the [Go]({% link recipes/ci-cd/github-actions/workflows/go/index.md %}) workflows section.

0 commit comments

Comments
Β (0)