Skip to content

Commit 7c22ad1

Browse files
authored
Markdown table error (#7)
* ready to test new workflows * updated changelog for v2.0.0
1 parent 02fdf26 commit 7c22ad1

File tree

11 files changed

+391
-100
lines changed

11 files changed

+391
-100
lines changed

.changes/unreleased/Added-20250908-115710.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/unreleased/Changed-20250902-200226.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/unreleased/Changed-20250908-115719.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/v2.0.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## v2.0.0 - 2025-09-08
2+
### Added
3+
* Mermaid diagram template
4+
* Content pages GitHub workflow to push content updates
5+
### Changed
6+
* Stop deployment on `main` push, will only deploy on Release
7+
* README updated to reflect hugo install for local dev
8+
### Fixed
9+
* Fixed error that caused markdown tables not to render correctly
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Deploy content to Pages
2+
3+
on:
4+
# Auto-deploy on pushes to main
5+
push:
6+
branches: [main]
7+
# Manual trigger
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: true
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
env:
27+
HUGO_VERSION: 0.145.0
28+
steps:
29+
- name: Install Hugo CLI
30+
run: |
31+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
32+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
33+
- name: Install Dart Sass
34+
run: sudo snap install dart-sass
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
with:
38+
submodules: recursive
39+
fetch-depth: 0
40+
- name: Setup Pages
41+
id: pages
42+
uses: actions/configure-pages@v5
43+
- name: Install Node.js dependencies
44+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
45+
- name: Build with Hugo
46+
env:
47+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
48+
HUGO_ENVIRONMENT: production
49+
TZ: America/Los_Angeles
50+
run: |
51+
hugo \
52+
--gc \
53+
--minify \
54+
--baseURL "${{ steps.pages.outputs.base_url }}/"
55+
- name: Upload artifact
56+
uses: actions/upload-pages-artifact@v3
57+
with:
58+
path: ./public
59+
retention-days: 1
60+
61+
deploy:
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
runs-on: ubuntu-latest
66+
needs: build
67+
steps:
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
uses: actions/deploy-pages@v4

.github/workflows/hugo.yml

Lines changed: 85 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2-
name: Deploy Hugo site to Pages
3-
4-
on:
5-
# Runs on release creation
6-
release:
7-
types: [published]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
2+
name: Platform release to Pages
3+
4+
on:
5+
# Runs on release creation (platform changes)
6+
release:
7+
types: [published]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
1111

1212
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313
permissions:
@@ -17,62 +17,85 @@ permissions:
1717

1818
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1919
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20-
concurrency:
21-
group: "pages"
22-
cancel-in-progress: false
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: true
2323

2424
# Default to bash
2525
defaults:
2626
run:
2727
shell: bash
2828

29-
jobs:
30-
# Build job
31-
build:
32-
runs-on: ubuntu-latest
33-
env:
34-
HUGO_VERSION: 0.145.0
35-
steps:
36-
- name: Install Hugo CLI
37-
run: |
38-
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39-
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40-
- name: Install Dart Sass
41-
run: sudo snap install dart-sass
42-
- name: Checkout
43-
uses: actions/checkout@v4
44-
with:
45-
submodules: recursive
46-
fetch-depth: 0
47-
- name: Setup Pages
48-
id: pages
49-
uses: actions/configure-pages@v5
50-
- name: Install Node.js dependencies
51-
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
52-
- name: Build with Hugo
53-
env:
54-
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
55-
HUGO_ENVIRONMENT: production
56-
TZ: America/Los_Angeles
57-
run: |
58-
hugo \
59-
--gc \
60-
--minify \
61-
--baseURL "${{ steps.pages.outputs.base_url }}/"
62-
- name: Upload artifact
63-
uses: actions/upload-pages-artifact@v3
64-
with:
65-
path: ./public
66-
retention-days: 1
67-
68-
# Deployment job
69-
deploy:
70-
environment:
71-
name: github-pages
72-
url: ${{ steps.deployment.outputs.page_url }}
73-
runs-on: ubuntu-latest
74-
needs: build
75-
steps:
76-
- name: Deploy to GitHub Pages
77-
id: deployment
78-
uses: actions/deploy-pages@v4
29+
jobs:
30+
# Verify job (extra checks for platform releases)
31+
verify:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.145.0
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
with:
39+
submodules: recursive
40+
fetch-depth: 0
41+
- name: Install Hugo CLI
42+
run: |
43+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
44+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
45+
- name: Install Dart Sass
46+
run: sudo snap install dart-sass
47+
- name: Build with Hugo (panic on warnings)
48+
env:
49+
HUGO_ENVIRONMENT: production
50+
run: hugo --gc --minify --panicOnWarning
51+
52+
# Build job
53+
build:
54+
runs-on: ubuntu-latest
55+
needs: verify
56+
env:
57+
HUGO_VERSION: 0.145.0
58+
steps:
59+
- name: Install Hugo CLI
60+
run: |
61+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
62+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
63+
- name: Install Dart Sass
64+
run: sudo snap install dart-sass
65+
- name: Checkout
66+
uses: actions/checkout@v4
67+
with:
68+
submodules: recursive
69+
fetch-depth: 0
70+
- name: Setup Pages
71+
id: pages
72+
uses: actions/configure-pages@v5
73+
- name: Install Node.js dependencies
74+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
75+
- name: Build with Hugo
76+
env:
77+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
78+
HUGO_ENVIRONMENT: production
79+
TZ: America/Los_Angeles
80+
run: |
81+
hugo \
82+
--gc \
83+
--minify \
84+
--baseURL "${{ steps.pages.outputs.base_url }}/"
85+
- name: Upload artifact
86+
uses: actions/upload-pages-artifact@v3
87+
with:
88+
path: ./public
89+
retention-days: 1
90+
91+
# Deployment job
92+
deploy:
93+
environment:
94+
name: github-pages
95+
url: ${{ steps.deployment.outputs.page_url }}
96+
runs-on: ubuntu-latest
97+
needs: build
98+
steps:
99+
- name: Deploy to GitHub Pages
100+
id: deployment
101+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
# AI assistant configs
1919
CLAUDE.md
2020
GEMINI.md
21+
AGENTS.md
2122
.claude
2223
.copilot

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
66
and is generated by [Changie](https://github.com/miniscruff/changie).
77

88

9+
## v2.0.0 - 2025-09-08
10+
### Added
11+
* Mermaid diagram template
12+
* Content pages GitHub workflow to push content updates
13+
### Changed
14+
* Stop deployment on `main` push, will only deploy on Release
15+
* README updated to reflect hugo install for local dev
16+
### Fixed
17+
* Fixed error that caused markdown tables not to render correctly
18+
919
## v1.1.0 - 2025-09-02
1020
### Changed
1121
* Re-run error on workflow corrected

content/notes/posts/zellij-tmux-cf-remote-dev.md

Lines changed: 35 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ draft: true
1010

1111
# Environment
1212

13-
1. AlmaLinux 9.6 (Sage Margay) <!-- Change to Fedora -->
14-
2. Zellij
15-
3. tmux
16-
4. Cloudflared
13+
1. Fedora Linux 42
14+
2. Zellij 0.43.1
15+
3. tmux 3.5a-4.fc42
16+
4. Cloudflared 2025.8.1
1717

1818

1919
## Install tmux
@@ -27,33 +27,21 @@ sudo dnf -y install tmux
2727
Zellij is a modern terminal workspace and multiplexer written in Rust.
2828

2929
### Download and Install
30-
<!-- change to cargo -->
30+
1. Install cargo
3131

32-
1. Create a local bin directory for user installations:
33-
```bash
34-
mkdir -p ~/.local/bin
32+
```bash
33+
curl https://sh.rustup.rs -sSf | sh
3534
```
3635

37-
2. Download Zellij for Linux:
38-
```bash
39-
cd /tmp
40-
wget https://github.com/zellij-org/zellij/releases/download/v0.43.1/zellij-x86_64-unknown-linux-musl.tar.gz
41-
```
36+
_Note: I recommend to create a new terminal here as this install will add cargo to PATH._
4237

43-
3. Extract and install the binary:
44-
```bash
45-
tar -xvf zellij-x86_64-unknown-linux-musl.tar.gz
46-
chmod +x zellij
47-
mv zellij ~/.local/bin/
48-
```
38+
2. Install Zellij
4939

50-
4. Add the local bin directory to your PATH:
5140
```bash
52-
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
53-
source ~/.bashrc
41+
cargo install --locked zellij
5442
```
5543

56-
5. Verify the installation:
44+
3. Verify the installation:
5745
```bash
5846
zellij --version
5947
# Output: zellij 0.43.1
@@ -71,6 +59,25 @@ Or attach to an existing session:
7159
zellij attach
7260
```
7361

62+
### Basic Usage
63+
64+
```bash
65+
# Show current sessions
66+
zellij list-sessions
67+
# You can resurrect a session by, provides with the previous layout, etc.
68+
zellij attach
69+
# Kill session means to stop an active session, it will report as `EXITED`
70+
## Kill a session
71+
zellij kill-session [name]
72+
## Kill all sessions
73+
zellij kill-all-sessions
74+
# To clear old session in `EXITED` status
75+
## Delete a session
76+
zellij delete-session [name]
77+
## Delete all old sessions
78+
zellij delete-all-sessions
79+
```
80+
7481
## Install Cloudflared and Setup Zero Trust SSH Access
7582

7683
Cloudflared creates secure tunnels to expose your local services without opening firewall ports. This section covers setting up secure SSH access using Cloudflare Zero Trust with WARP clients.
@@ -247,13 +254,13 @@ ssh workstation
247254

248255
## Notes
249256

250-
- All Cloudflare configuration done via Web UI (no CLI needed except initial install)
251257
- No SSH ports exposed to internet
252258
- Virtual IP avoids home network conflicts
253-
- Consider SSH keys over passwords for better security
259+
- Future work: Update this note to use SSH keys over passwords
254260

255261
## References
256262

257-
1. https://www.redhat.com/en/blog/introduction-tmux-linux
258-
2. https://github.com/zellij-org/zellij
259-
3. https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/
263+
1. [Introduction to tmux](https://www.redhat.com/en/blog/introduction-tmux-linux)
264+
2. [Zellij](https://github.com/zellij-org/zellij)
265+
3. [Cloudflared Download](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/)
266+
4. [Cloudflare - Connect Private Networks](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/private-net/cloudflared/)

0 commit comments

Comments
 (0)