TsukiNi22/ai-utils / skills/docs/better-html-doc
better-html-doc
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.4 KB |
| requires.txt | markdown | 29 B |
| scripts/build_site.pyexecutable | script | 26.3 KB |
| scripts/check_site.pyexecutable | script | 9.4 KB |
| scripts/mdlib.pyexecutable | script | 31.5 KB |
| scripts/test_search.js | script | 2.5 KB |
| templates/markdown.css | other | 1.6 KB |
| templates/site/gen/_example.py | script | 1.4 KB |
| templates/site/site.toml | config | 2.4 KB |
| templates/site/src/pages/guide/getting-started.en.md | markdown | 477 B |
| templates/site/src/pages/guide/getting-started.fr.md | markdown | 516 B |
| templates/site/src/pages/reference/configuration.en.md | markdown | 434 B |
| templates/site/src/pages/reference/configuration.fr.md | markdown | 429 B |
| templates/site/src/pages/resources/faq.en.md | markdown | 206 B |
| templates/site/src/pages/resources/faq.fr.md | markdown | 179 B |
templates/site/gen/_example.py
View on GitHub"""A generator of pages read from the code (rename it without the leading _ to run it): every gen/*.py with pages(ctx) is called by
build_site.py; ctx.site / ctx.config / ctx.langs / ctx.version / ctx.tr() are there. A page is a dict like a Markdown page: slug, section,
order, kind ("" / "explain" / "protocol"), and one entry per language with title, summary, md, keywords. search_entries(ctx) may add
search results that are not pages (a setting, a command): {"k": kind shown, "l": lang, "t": title, "d": description, "u": url, "x": text}."""
import tomllib
def pages(ctx: object) -> list[dict]:
options = tomllib.loads((ctx.site / ".." / ".." / "config.default.toml").read_text()) # read from the project, never typed again
rows = "\n".join("| `%s` | `%s` |" % (key, value) for key, value in sorted(options.items()))
page = {"slug": "options", "section": "reference", "order": 50, "kind": ""}
for lang in ctx.langs:
title = "Options" if lang == "en" else "Options"
page[lang] = {"title": title, "summary": "", "keywords": "options",
"md": "## %s {#all}\n\n| Key | Default |\n|---|---|\n%s\n" % ("Every option" if lang == "en" else "Toutes les options", rows)}
return [page]
def search_entries(ctx: object) -> list[dict]:
return [{"k": "config", "l": lang, "t": "verbose", "d": "more output", "u": "options.html#all", "x": ""} for lang in ctx.langs]
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |