Skip to content

TsukiNi22/ai-utils / skills/docs/better-html-doc

better-html-doc

Verified

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]
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall