Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.
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
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
UV_CACHE_DIR: /tmp/.uv-cache
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Page
uses: shalzz/zola-deploy-action@v0.20.0
env:
BUILD_ONLY: true
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Restore uv cache
uses: actions/cache@v4
with:
path: /tmp/.uv-cache
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
uv-${{ runner.os }}
- run: uvx --with mkdocs-material mkdocs build
58 changes: 19 additions & 39 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,31 @@
name: Deploy to GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
contents: write

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build Page
uses: shalzz/zola-deploy-action@v0.20.0
env:
BUILD_ONLY: true
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public/

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
env:
UV_CACHE_DIR: /tmp/.uv-cache
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Restore uv cache
uses: actions/cache@v4
with:
path: /tmp/.uv-cache
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
uv-${{ runner.os }}
- run: uvx --with mkdocs-material mkdocs gh-deploy --force
4 changes: 0 additions & 4 deletions .gitignore

This file was deleted.

25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# website
The cozycoder.app page and documentation
# cozycoder.dev

The [cozycoder.dev](https://cozycoder.dev) page and documentation.

## Prerequisits

You need Python and
[Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) installed -
e.g. via uv:

```bash
uv tool install mkdocs --with mkdocs-material
```

## Usage

Serve the page locally:

```bash
mkdocs serve
```

Now open [localhost:8000](http://localhost:8000) in your browser.
120 changes: 0 additions & 120 deletions config.toml

This file was deleted.

40 changes: 0 additions & 40 deletions content/_index.md

This file was deleted.

16 changes: 0 additions & 16 deletions content/authors/_index.md

This file was deleted.

11 changes: 0 additions & 11 deletions content/authors/jehrhardt.md

This file was deleted.

7 changes: 0 additions & 7 deletions content/blog/_index.md

This file was deleted.

Loading
Loading