Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up node"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22"

- name: Install"
- name: Install dependencies
run: npm ci

- name: Run lint check
Expand All @@ -48,12 +48,12 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Set up node"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22"

- name: Install
- name: Install dependencies
run: npm ci

- name: Build site
Expand Down
7 changes: 3 additions & 4 deletions content/08-more-improvements/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ can be created from files.
In our case, we'll use a _ConfigMap_ to store the database initialization SQL script, which will then be mounted into
the Postgres container.

The SQL script can be
[found here](https://raw.githubusercontent.com/benc-uk/kube-workshop/refs/heads/main/08-more-improvements/nanomon_init.sql).
You can grab into a file using `curl` like so:
The SQL script can be [found & downloaded here](./nanomon_init.sql). You can grab it straight into a file using `curl`
like so:

```bash
curl -O https://raw.githubusercontent.com/benc-uk/kube-workshop/refs/heads/main/08-more-improvements/nanomon_init.sql
curl -O https://kube-workshop.benco.io/08-more-improvements/nanomon_init.sql
```

We can then create a _ConfigMap_ from this file using `kubectl`
Expand Down
2 changes: 2 additions & 0 deletions content/10-extra-advanced/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,7 @@ Now to deploy the app with Helm, run the command below:
helm install demo nanomon/nanomon --values values.yaml
```

The release name is `demo` here, however you can choose any name you wish.

Validate the deployment as before with `helm` and `kubectl` and check you can access the app in the browser using the
same ingress IP address as before.
15 changes: 6 additions & 9 deletions content/_includes/default.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

<title>{{ title }} {{ icon }}</title>

{%- set css %} {% include "main.css" %} {%- endset %}
<style>
{% include "main.css" %}
{{ css | cssmin | safe }}
</style>
</head>

Expand All @@ -41,19 +42,15 @@
<hr>
{%- for section in collections.section -%}
<li>
<a href="{{ section.page.url }}"
>{{ section.data.index | zeroPad }}: {{ section.data.icon }} {{ section.data.title }}</a
>
<a href="{{ section.page.url }}">{{ section.data.index | zeroPad }}: {{ section.data.icon }} {{ section.data.title }}</a>
</li>
{%- endfor -%}
</ul>
<hr>
<ul>
{%- for section in collections.extra -%}
<li>
<a href="{{ section.page.url }}"
>{{ section.data.index | zeroPad }}: {{ section.data.icon }} {{ section.data.title }}</a
>
<a href="{{ section.page.url }}">{{ section.data.index | zeroPad }}: {{ section.data.icon }} {{ section.data.title }}</a>
</li>
{%- endfor -%}
<hr>
Expand All @@ -65,10 +62,10 @@
{{ content | safe }}
<hr>

{%- set prev = collections.section | getPreviousCollectionItem %}
{%- set next = collections.section | getNextCollectionItem %}
<footer>
<a href="/">🏠 Home </a>
{% set prev = collections.section | getPreviousCollectionItem %}
{% set next = collections.section | getNextCollectionItem %}
{%- if prev %}
‖ <a href="{{ prev.url }}">⏪ Previous Section</a>
{%- endif -%}
Expand Down
6 changes: 6 additions & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
import markdownIt from "markdown-it";
import markdownItAttrs from "markdown-it-attrs";
import CleanCSS from "clean-css";

export default function (eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight);
Expand Down Expand Up @@ -49,5 +50,10 @@ export default function (eleventyConfig) {
const markdownLib = markdownIt(options)
.use(markdownItAttrs)
.use(externalLinksPlugin);

eleventyConfig.addFilter("cssmin", function (code) {
return new CleanCSS({}).minify(code).styles;
});

eleventyConfig.setLibrary("md", markdownLib);
}
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@11ty/eleventy": "^3.1.2",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.2",
"clean-css": "^5.3.3",
"markdown-it": "^14.1.0",
"markdown-it-attrs": "^4.3.1",
"prettier": "^3.6.2"
Expand Down