Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.
Python agent-skillsai-agentsbook-to-skillcontext-engineeringdocument-processingedtechknowledge-baseknowledge-managementllmpdf-to-markdownragself-studystudy-tools
feat(docs): add Booklin banner and hand-made share card
virgiliojr941b0ee1f1fad6
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.ymlindex 5ce4405..9873ee9 100644--- a/.github/workflows/deploy-docs.yml+++ b/.github/workflows/deploy-docs.yml@@ -35,10 +35,8 @@ jobs:- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.12"- - name: Install Cairo (social card rendering)- run: sudo apt-get install -y --no-install-recommends libcairo2 libffi-dev- name: Install MkDocs Material- run: pip install "mkdocs-material[imaging]" mkdocs-redirects+ run: pip install mkdocs-material mkdocs-redirects- name: Assemble docs sources# Single-source: the Guide and Skill Reference pages are the repo-root# README.md / SKILL.md, copied in (never committed under docs/). Thediff --git a/README.md b/README.mdindex 9c243b9..56a57bc 100644--- a/README.md+++ b/README.md@@ -1,5 +1,5 @@<p align="center">- <img src="docs/assets/logo.png" alt="book-to-skill logo" width="120">+ <img src="docs/assets/banner.webp" alt="Booklin, the book-to-skill wizard, holding an open book whose pages scatter into sparkles that settle into an ordered grid" width="100%"></p><h1 align="center">book-to-skill</h1>diff --git a/docs/assets/banner.webp b/docs/assets/banner.webpnew file mode 100644index 0000000..f98c278Binary files /dev/null and b/docs/assets/banner.webp differdiff --git a/docs/assets/og-card.jpg b/docs/assets/og-card.jpgnew file mode 100644index 0000000..4154872Binary files /dev/null and b/docs/assets/og-card.jpg differdiff --git a/mkdocs.yml b/mkdocs.ymlindex 9e4f068..b091236 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -59,9 +59,9 @@ nav:plugins:# `search` is on by default, but naming any plugin replaces the default list.- search- # Generates the per-page og:/twitter: tags and the shared preview card.- # Needs mkdocs-material[imaging] + libcairo2 — see deploy-docs.yml.- - social+ # No `social` plugin: the share card is a hand-made docs/assets/og-card.jpg and+ # overrides/main.html emits the og:/twitter: tags around it.+ ## The docs pages were renamed to lowercase kebab-case slugs; keep the old# SHOUTING_CASE URLs alive so existing inbound links and bookmarks resolve.- redirects:diff --git a/overrides/main.html b/overrides/main.htmlindex 038ad1d..ad14aa8 100644--- a/overrides/main.html+++ b/overrides/main.html@@ -9,22 +9,52 @@The homepage is the case Material can't express at all: it renders bare`site_name` ("book-to-skill", 13 characters) with no room for what the projectactually does.-#}-{# Pages that exist for humans who took a wrong turn, not for the index. #}-{% block extrahead %}- {%- if page and page.meta and page.meta.noindex -%}- <meta name="robots" content="noindex, follow">- {%- endif -%}-{% endblock %}-{% block htmltitle %}+ One title is computed here and reused by <title>, og:title and twitter:title,+ so the tab, the SERP and the share card can never drift apart.+#}+{% macro seo_title() -%}{%- if page and page.meta and page.meta.seo_title -%}- <title>{{ page.meta.seo_title }}</title>+ {{ page.meta.seo_title }}{%- elif page and page.is_homepage -%}- <title>{{ config.site_name }} — Turn Any Book Into an AI Agent Skill</title>+ {{ config.site_name }} — Turn Any Book Into an AI Agent Skill{%- elif page and page.title -%}- <title>{{ page.title | striptags }} - {{ config.site_name }}</title>+ {{ page.title | striptags }} - {{ config.site_name }}{%- else -%}- <title>{{ config.site_name }}</title>+ {{ config.site_name }}{%- endif -%}+{%- endmacro %}++{% block htmltitle %}<title>{{ seo_title() | e }}</title>{% endblock %}++{% block extrahead %}+ {#- Pages that exist for humans who took a wrong turn, not for the index. -#}+ {%- if page and page.meta and page.meta.noindex %}+ <meta name="robots" content="noindex, follow">+ {%- endif %}++ {#-+ A single hand-made card, shared by every page, instead of the per-page PNGs+ the Material social plugin renders. That plugin drags in Cairo and ~30s of+ build time to produce a flat-purple card headlined with the nav label — which+ on the most-shared URL of the site reads, in enormous type, "Home".+ -#}+ {%- set og_title = seo_title() -%}+ {%- set og_description = page.meta.description if page and page.meta and page.meta.description else config.site_description -%}+ {%- set og_image = config.site_url ~ "assets/og-card.jpg" -%}++ <meta property="og:type" content="website">+ <meta property="og:site_name" content="{{ config.site_name | e }}">+ <meta property="og:title" content="{{ og_title | e }}">+ <meta property="og:description" content="{{ og_description | e }}">+ <meta property="og:url" content="{{ page.canonical_url | e }}">+ <meta property="og:image" content="{{ og_image | e }}">+ <meta property="og:image:type" content="image/jpeg">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:alt" content="{{ config.site_name | e }} — {{ config.site_description | e }}">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:title" content="{{ og_title | e }}">+ <meta name="twitter:description" content="{{ og_description | e }}">+ <meta name="twitter:image" content="{{ og_image | e }}">{% endblock %}