Skip to content

docs: migrate documentation from Jekyll to mdBook#50

Merged
veeso merged 1 commit intomainfrom
docs/47-migrate-pages-from-jekyll-to-md-book
May 7, 2026
Merged

docs: migrate documentation from Jekyll to mdBook#50
veeso merged 1 commit intomainfrom
docs/47-migrate-pages-from-jekyll-to-md-book

Conversation

@veeso
Copy link
Copy Markdown
Owner

@veeso veeso commented May 7, 2026

Summary

  • Migrates the docs site from Jekyll to mdBook for cleaner navigation, built-in search, and faster builds. Closes Migrate documentation from Jekyll to mdBook #47.
  • Replaces the GitHub Pages workflow with peaceiris/actions-mdbook -> upload-pages-artifact -> deploy-pages. Triggers on push to main for docs/** and on manual dispatch.
  • Adds docs/theme/head.hbs to wire the existing favicon.ico and Open Graph / Twitter Card meta tags, which mdBook does not emit natively.

Changes

  • docs/book.toml: mdBook config (src = ".", light/navy themes, repo URL).
  • docs/SUMMARY.md: sidebar/TOC grouping the existing pages into Getting Started, Guides, Reference.
  • All 13 doc pages: stripped Jekyll frontmatter, rewrote internal links from bare slugs (e.g. (getting-started)) to .md extensions (e.g. (getting-started.md)) so mdBook resolves them.
  • docs/theme/head.hbs: injects <link rel="icon" href="favicon.ico"> (resolved via path_to_root) plus og:title / og:description / og:image / og:url / og:type and matching Twitter Card tags. og:image uses the absolute https://blogat.to/og_preview.jpeg URL (required by social scrapers).
  • Removed _config.yml and _includes/.
  • Preserved CNAME (blogat.to), favicon.ico, logo.png, og_preview.jpeg — mdBook auto-copies non-.md files from src to book/.
  • .gitignore: ignore docs/book/.
  • CLAUDE.md: new Documentation section documenting the structure, the SUMMARY.md registration rule, the .md link convention, the theme/head.hbs head injection, and local preview commands.

Test plan

  • mdbook build docs runs cleanly with no warnings.
  • Verified <link rel="icon" href="favicon.ico"> and OG/Twitter meta tags appear in book/index.html.
  • Verified per-page og:title includes chapter_title (e.g. Getting started · Blogatto).
  • Verified path_to_root resolves correctly on subpages.
  • Verified CNAME, favicon.ico, logo.png, og_preview.jpeg are copied to book/.
  • After merge: confirm GitHub Pages deploy succeeds and blogat.to serves the new mdBook site.
  • After deploy: validate OG preview using a social-card debugger (Facebook Sharing Debugger / Twitter Card Validator).

Closes #47.

Replaces the Jekyll-based docs site with mdBook for cleaner navigation,
built-in search, and faster builds.

- Add book.toml (src = ".", light/navy themes, repo URL)
- Add SUMMARY.md grouping pages into Getting Started, Guides, Reference
- Strip Jekyll frontmatter (layout/title/nav_order) from all 13 doc pages
- Rewrite internal links from bare slugs to .md extensions for mdBook
- Add theme/head.hbs to wire favicon.ico and Open Graph / Twitter Card
  meta tags (mdBook does not emit these natively); og:image points at
  the absolute https://blogat.to/og_preview.jpeg URL for social scrapers
- Replace Jekyll with mdBook in the GitHub Pages deploy workflow
  (peaceiris/actions-mdbook@v2 -> upload-pages-artifact -> deploy-pages)
- Remove _config.yml and _includes/
- Preserve CNAME (blogat.to), favicon.ico, logo.png, og_preview.jpeg
  (auto-copied by mdBook from src to book/)
- Gitignore docs/book/
- Document the new structure, the SUMMARY.md registration rule, and
  the theme/head.hbs conventions in CLAUDE.md
@cocogitto-bot
Copy link
Copy Markdown

cocogitto-bot Bot commented May 7, 2026

✔️ 75a3c60 - Conventional commits check succeeded.

@veeso veeso merged commit 6679c96 into main May 7, 2026
3 checks passed
@veeso veeso deleted the docs/47-migrate-pages-from-jekyll-to-md-book branch May 7, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate documentation from Jekyll to mdBook

1 participant