Skip to content

Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.

docs: add MkDocs Material site + GitHub Pages deploy (#43)

Virgilio Borgesc16266b6640e
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
new file mode 100644
index 0000000..370047c
--- /dev/null
+++ b/.github/workflows/deploy-docs.yml
@@ -0,0 +1,49 @@
+name: Deploy docs
+
+on:
+ push:
+ branches: [master]
+ paths:
+ - docs/**
+ - README.md
+ - SKILL.md
+ - BACKERS.md
+ - mkdocs.yml
+ - .github/workflows/deploy-docs.yml
+ pull_request:
+ paths:
+ - docs/**
+ - README.md
+ - SKILL.md
+ - BACKERS.md
+ - mkdocs.yml
+ - .github/workflows/deploy-docs.yml
+
+# Minimal: gh-deploy pushes the built site to the gh-pages branch.
+permissions:
+ contents: write
+
+jobs:
+ docs:
+ runs-on: ubuntu-latest
+ steps:
+ # Actions pinned to commit SHAs (tags in comments) so a supply-chain
+ # swap on a moving tag cannot alter the build. Zizmor-clean.
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
+ with:
+ python-version: "3.12"
+ - name: Install MkDocs Material
+ run: pip install mkdocs-material
+ - name: Assemble docs sources
+ # Single-source: the homepage and skill reference are the repo-root
+ # README.md / SKILL.md, copied in (never committed under docs/).
+ run: |
+ cp README.md docs/index.md
+ cp SKILL.md docs/skill-reference.md
+ cp BACKERS.md docs/BACKERS.md
+ - name: Build
+ run: mkdocs build
+ - name: Deploy to gh-pages (master push only)
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
+ run: mkdocs gh-deploy --force
diff --git a/.gitignore b/.gitignore
index 350bc30..8492cb1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,9 @@ build/
# Local design specifications
docs/superpowers/specs/
+
+# MkDocs: build output + pages assembled from README/SKILL at deploy time
+site/
+docs/index.md
+docs/skill-reference.md
+docs/BACKERS.md
diff --git a/mkdocs.yml b/mkdocs.yml
new file mode 100644
index 0000000..ee4f3c5
--- /dev/null
+++ b/mkdocs.yml
@@ -0,0 +1,47 @@
+site_name: book-to-skill
+site_description: Convert books and documents into structured, on-demand agent skills.
+site_url: https://virgiliojr94.github.io/book-to-skill/
+repo_url: https://github.com/virgiliojr94/book-to-skill
+repo_name: virgiliojr94/book-to-skill
+edit_uri: ""
+
+# Home (index.md) and Skill Reference (skill-reference.md) are assembled at build
+# time from the repo-root README.md and SKILL.md by the deploy workflow, so the
+# docs stay single-source — there is no duplicated copy committed to git.
+# See .github/workflows/deploy-docs.yml.
+
+theme:
+ name: material
+ palette:
+ - media: "(prefers-color-scheme: light)"
+ scheme: default
+ primary: deep purple
+ toggle:
+ icon: material/weather-night
+ name: Switch to dark mode
+ - media: "(prefers-color-scheme: dark)"
+ scheme: slate
+ primary: deep purple
+ toggle:
+ icon: material/weather-sunny
+ name: Switch to light mode
+ features:
+ - navigation.top
+ - navigation.sections
+ - content.code.copy
+ - search.suggest
+ - search.highlight
+
+nav:
+ - Home: index.md
+ - Architecture: ARCHITECTURE.md
+ - Performance: PERFORMANCE.md
+ - Skill Reference: skill-reference.md
+
+markdown_extensions:
+ - admonition
+ - tables
+ - pymdownx.highlight
+ - pymdownx.superfences
+ - toc:
+ permalink: true