Skip to content

Britz/ratatoskr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ratatöskr

A static website rendered from an Obsidian vault using MkDocs Material and deployed to GitHub Pages.

Layout

.
├── docs/              # Obsidian vault (markdown lives here)
│   ├── index.md       # site homepage
│   └── javascripts/   # MathJax config
├── mkdocs.yml         # site configuration
├── requirements.txt   # Python build dependencies
└── .github/workflows/deploy.yml   # CI build → GitHub Pages

The docs/ folder is the Obsidian vault — open it in Obsidian and edit notes directly. The build picks them up as-is.

Local development

Option A — Devcontainer (recommended)

If you have Docker + the VS Code Dev Containers extension (or open the repo in a GitHub Codespace), the environment is fully described by .devcontainer/devcontainer.json:

  1. Open the folder in VS Code → Reopen in Container.
  2. Wait for pip install -r requirements.txt to finish (one-time).
  3. Run mkdocs serve — port 8000 is auto-forwarded to your host.

Option B — Local Python venv

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

mkdocs serve         # live preview at http://127.0.0.1:8000
mkdocs build         # produce static site in ./site

Obsidian features supported

Translated automatically by the mkdocs-obsidian-support-plugin:

  • [[wikilinks]] and [[wikilinks|aliases]]
  • ![[image.png]] and ![[note]] embeds
  • > [!note] / > [!tip] / > [!warning] callouts → Material admonitions
  • Tags via the built-in MkDocs tags plugin
  • Math ($inline$, $$block$$) via MathJax

Deploying

  1. Push to main.

  2. Enable Pages with GitHub Actions as the build source (one-time). Easiest from inside the devcontainer:

    bash .devcontainer/enable-pages.sh

    That script calls gh api repos/<owner>/<repo>/pages -X POST -f build_type=workflow and then triggers the workflow — equivalent to flipping the Source dropdown under Settings → Pages in the UI.

  3. The workflow at .github/workflows/deploy.yml builds and publishes the site on every subsequent push to main.

The site URL will be https://britz.github.io/ratatoskr/.

About

Ratatöskr Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors