Skip to content

Commit ceb9587

Browse files
committed
feat: remove site.baseurl
1 parent 4ce3845 commit ceb9587

File tree

37 files changed

+93
-95
lines changed

37 files changed

+93
-95
lines changed

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.

recipes/ci-cd/github-actions/workflows/cache.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Use the cache option on `setup-node` action:
5858
- name: Install dependencies
5959
run: npm install
6060
```
61-
61+
6262
#### Use cache action
6363

6464
The cache location will be `~/.npm` on Unix/Posix. See [NPM cache](https://docs.npmjs.com/cli/cache#cache) in the docs NPM docs.
@@ -142,5 +142,5 @@ See [Ruby workflow][] recipes.
142142

143143
{% endraw %}
144144

145-
[Ruby workflow]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/ruby/index.md %}
146-
[NPM workflow]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/node/npm.md %}
145+
[Ruby workflow]: {% link recipes/ci-cd/github-actions/workflows/ruby/index.md %}
146+
[NPM workflow]: {% link recipes/ci-cd/github-actions/workflows/node/npm.md %}

recipes/ci-cd/github-actions/workflows/check-links/html-proofer-generic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ How to use a Ruby gem as a CLI tool to validate links in your static HTML, for b
1212
- For use of `html-proofer` outside of GH Actions or how to add it to your `Gemfile`, see the
1313
- [HTML Proofer wrappers][]
1414

15-
[HTML Proofer gem]: {{ site.baseurl }}{% link recipes/web/check-links/html-proofer.md %}
16-
[HTML Proofer wrappers]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/check-links/html-proofer-wrappers.md %}
15+
[HTML Proofer gem]: {% link recipes/web/check-links/html-proofer.md %}
16+
[HTML Proofer wrappers]: {% link recipes/ci-cd/github-actions/workflows/check-links/html-proofer-wrappers.md %}
1717

1818
## Samples
1919

recipes/ci-cd/github-actions/workflows/check-links/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Some action recipes here are intended for markdown files, while others will anal
1212

1313
- [Check links][] recipes in the Web section.
1414

15-
[Check links]: {{ site.baseurl }}{% link recipes/web/check-links/index.md %}
15+
[Check links]: {% link recipes/web/check-links/index.md %}

recipes/ci-cd/github-actions/workflows/commit.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Commit
3-
description: How to commit and push files during the CI flow
3+
description: How to commit and push files during the CI flow
44
---
55

66

7-
## Related
7+
## Related
88

99
- [Create Pull Request][] workflows - some recipes there will commit for you, so you do not need a separate commit step.
1010

11-
[Create Pull Request]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/create-pull-request.md %}
11+
[Create Pull Request]: {% link recipes/ci-cd/github-actions/workflows/create-pull-request.md %}
1212

1313

1414
{% raw %}
@@ -29,7 +29,7 @@ Some situations when you might want to add/edit and commit files all during a si
2929
- Update a list of contributors. (A GH bot can handle this for you)
3030
- Update a table of contents.
3131
- Code changes.
32-
- Perform lint fixes.
32+
- Perform lint fixes.
3333
- Perform package upgrades.
3434

3535

@@ -48,7 +48,7 @@ This is slightly verbose but not too long. You know exactly what it is doing and
4848
steps:
4949
- name: Checkout
5050
# uses: ...
51-
51+
5252
- name: Build
5353
# run: ...
5454

@@ -90,7 +90,7 @@ See [push-new-files-back-to-master](https://github.com/marketplace/actions/push-
9090
steps:
9191
- name: Checkout
9292
# uses: ...
93-
93+
9494
- name: Build
9595
# run: ...
9696

0 commit comments

Comments
 (0)