diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 4778835a7..42bd21af6 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -15,8 +15,17 @@ Install dependencies from the repository root: ```console $ pnpm install +$ uv sync --locked ``` +Python tooling lives in `pyproject.toml` and `uv.lock`. The `dev` group +includes `lint` and `testing`; `.python-version` selects the development +interpreter. Keep dependency changes in the manifest and regenerate the +lockfile with `uv lock`. The project applies a three-day package cooldown +so local and CI resolution use the same policy. +The `docs` group supplies the C++ native Sphinx renderer; the Python port +keeps its own source-bound uv environment. + Start the Astro development server: ```console @@ -41,6 +50,11 @@ rules. Both are pinned centrally in the pnpm catalog. Package lint scripts use `--type-aware` with their own `tsconfig.json`; the root command also runs Oxlint over `scripts/`. Preserve each script's scope and exclusions. +The root lint command also runs Ruff's lint and format checks on Python +tooling under `scripts/`. Run `uv run --locked ruff format .` to format +those files; generated examples and documentation snippets keep their own +verification rules. + Run lint across the workspace and build scripts: ```console @@ -63,8 +77,9 @@ $ pnpm run type-check ``` This runs `astro check` for the site and Oxlint's type-check mode for the -plain TypeScript packages. The theme also exposes `type-check:tsc` for a -direct compiler check; it is separate from the root gate. +plain TypeScript packages, plus `uv run --locked ty check` for Python +tooling. Ty treats warnings as failures. The theme also exposes +`type-check:tsc` for a direct compiler check; it is separate from the root gate. Use the inner loop for cross-port mappings, native navigation, and native asset normalization: diff --git a/.github/workflows/deploy-shell.yml b/.github/workflows/deploy-shell.yml index 98ac2a2e6..6cca5f264 100644 --- a/.github/workflows/deploy-shell.yml +++ b/.github/workflows/deploy-shell.yml @@ -204,6 +204,10 @@ jobs: cp scripts/publish-default-versions.sh publish-default-versions.sh cp scripts/merge-version-manifests.mjs merge-version-manifests.mjs cp scripts/skip-unchanged.mjs skip-unchanged.mjs + cp scripts/compose-published-inventory.mjs compose-published-inventory.mjs + mkdir inventory-runtime + cp packages/api-model/src/{inventory,targets,modules}.ts inventory-runtime/ + echo '{"type":"module"}' > inventory-runtime/package.json cat reserved-prefixes.txt - uses: actions/upload-artifact@v7 @@ -225,6 +229,8 @@ jobs: publish-default-versions.sh merge-version-manifests.mjs skip-unchanged.mjs + compose-published-inventory.mjs + inventory-runtime/ retention-days: 1 check-publish: @@ -331,6 +337,19 @@ jobs: | sed 's/\.json$//' | sort | sed 's/^/- /' } >> "$GITHUB_STEP_SUMMARY" + - uses: actions/setup-node@v7 + if: matrix.locale == 'en' + with: + node-version: '26' + + - name: Compose inventories from the published default versions + if: matrix.locale == 'en' + env: + BUCKET: ${{ secrets.LIBTMUX_DOCS_BUCKET }} + run: | + node compose-published-inventory.mjs --directory dist \ + --runtime inventory-runtime --bucket "$BUCKET" --locale en + # Without this every deploy re-uploads the whole locale, unchanged or # not. PUBLISH_POLICY_SINCE is the date publish-root.sh last changed a # header it sets: an object written before it is re-uploaded whatever diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6da259675..bb3686e75 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,6 +39,14 @@ jobs: - run: pnpm install --frozen-lockfile + - uses: astral-sh/setup-uv@v10.2.0 + with: + enable-cache: true + cache-dependency-glob: uv.lock + + - name: Install Python tooling + run: uv sync --locked + - name: Install browser for the rendering audit run: pnpm --filter @libtmux/site exec playwright install --with-deps chromium diff --git a/.gitignore b/.gitignore index 60a24ce6a..49c0e2a16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ node_modules/ +.venv/ +.ruff_cache/ +__pycache__/ +*.py[cod] dist/ .astro/ _site/ diff --git a/.python-version b/.python-version new file mode 100644 index 000000000..6324d401a --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.14 diff --git a/README.md b/README.md index 9fd692799..01bd2999d 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,13 @@ Read [Architecture](notes/architecture.md) for the build and hosting design, [Adding a port](notes/adding-a-port.md) for integration steps, and [Writing](WRITING.md) for documentation conventions. +## AI policy + +Use these packages with AI tools as you like. When contributing, check what you +submit and wait for a maintainer's invitation before preparing a pull request. +See the [AI policy](https://libtmux.org/en/meta/ai-policy/), also kept as +[AI_POLICY.md](https://github.com/libtmux/.github/blob/HEAD/AI_POLICY.md). + ## Attribution Please use the following BibTeX template to cite libtmux.org in scientific discourse: diff --git a/notes/sphinx-inventories.md b/notes/sphinx-inventories.md new file mode 100644 index 000000000..fcbb2d34f --- /dev/null +++ b/notes/sphinx-inventories.md @@ -0,0 +1,128 @@ +# Sphinx inventories + +The assembly publishes `objects-full.inv` and `targets.json` at the default +locale root. Each built port/version publishes `objects.inv` and `targets.json` +at its own root. Existing reference inventories retain their mapping bases. +The [reader guide](../site/src/content/docs/meta/intersphinx.md) shows consumer setup. + +## Target ownership + +`BaseLayout` declares a page's scope, product, version, source, and logical +document identity. Every owned page exports a document; its rendered `main` +element supplies fragment targets when present. +It exports documents and actual fragment destinations, including headings, +tables, examples, parameter lists, and nested protocol schemas. Demo pages, +search, redirects, and translation placeholders have no exported ownership. +Native Sphinx pages receive the same metadata through `NativeShell`. +Copies of site-wide pages inside port builds remain owned by the shared tree +and are excluded from those copies' inventories. + +Specialized renderers attach `data-inventory-id`, `data-inventory-category`, +and `data-inventory-display` to their existing anchor elements. Native aliases +use `data-inventory-native`, a JSON array of `{ type, name }` records. `type` +is an inventory object type: a C++ struct exports `cpp:class`, and a variable +exports `cpp:member`. An unknown language or protocol uses the portable label. +Repeated member presentations set `data-inventory-ignore`; their own pages +publish the canonical API targets. +Generated dialogs and other controls are excluded. API sections inherit their +declaration identity, so changing a page slug does not rename its examples or +parameter sections. Named C enumerators use file and spelling rather than +Doxygen's anonymous-enum hash. Unnamed declarations retain producer identities +and need explicit aliases when those identities change. +Signatures use native method identities when supplied, otherwise a hash of +normalized native syntax or structured parameter semantics. Native syntax +keeps qualifiers and companion declarations distinct even when shared fields +omit them. Layout whitespace does not change these keys. + +Native citation links are navigation controls; the named citations remain +targets. When Docutils reuses their automatic ID for an empty heading alias, +the catalog uses the heading's unique section fragment. Duplicate content IDs +still fail publication. Native article bytes remain unchanged. + +The record contract lives in `packages/api-model/src/targets.ts`. Logical +identity, display, final URL, version, and provenance are separate fields. +The serializer does not derive page slugs. Portable keys escape bytes outside +lowercase ASCII letters, digits, and `-._~`, preserving case through `std:ref`. +Native aliases include scope and product; shorter names are emitted only +when they have one destination. +Command options include both human spellings and Sphinx's +`normalized-program.option` names. Subcommand whitespace becomes a hyphen, +and aliases that become ambiguous under that normalization are omitted. + +## Authored targets + +Set `inventoryId` in document frontmatter to preserve a document's identity +when its source or route moves. Preserve explicit HTML heading IDs when their +wording changes. Automatically generated IDs remain dependent on that wording. + +Tables can declare semantic types by their section ID: + +```yaml +inventoryTables: + root-keys: + type: std:confval + identity: schema/session + prefix: session. +``` + +The row-anchor plugin exports each name in the first cell at the row's real +fragment. Supported types are `std:confval`, `std:cmdoption`, `std:envvar`, and +`std:term`. Type only tables that document those entities. Generic table rows +retain portable labels independently of this adapter. + +## Migrations + +Keep a retired portable key in `site/src/data/inventory-aliases.json`: + +```json +[ + { + "scope": "rs", + "from": "rs:core:heading:guide%23old-heading", + "to": "rs:core:heading:guide%23current-heading", + "fragment": "old-heading" + } +] +``` + +`from` resolves to the current destination. Optional `fragment` also preserves +the retired HTML ID on that page; conflicting IDs and missing destinations +fail assembly. Use content `aliases` for retired page routes. Document +`inventoryAliases` adds historical portable keys for the document itself. +Explicitly review removed identities rather than generating aliases from +new display text. + +Compatibility exports preserve prior raw API names. The root compatibility +inventory also retains historical Python-type aliases from the old aggregate; +new inventories use the correct domains. Historical case-sensitive raw labels +remain limited by `std:ref` normalization. New consumers use portable keys. +Root per-port compatibility inventories use the selected default catalogs, +retain current API destinations, and omit identities absent from those catalogs. + +## Verification + +Port builds compare exported API identities with the selected model. Assembly +selects the manifest's default version for the full export and records excluded +ports in `targets.json`. Inventory generation fails on conflicting identities, +duplicate anchors, unsupported built-in types, and escaping mapping bases. + +The publication audit uses `scripts/check-inventories.py` to compare catalogs +with Sphinx's inventory reader, check every emitted destination and decoded +fragment, and build strict reStructuredText and MyST consumers over HTTP. +Plain Sphinx loads only `sphinx.ext.intersphinx`; no custom domain is required. +Focused contract tests remain in the ordinary unit suites. + +## Publication order + +Root publication merges the successfully published port manifests before +composing its aggregate. `compose-published-inventory.mjs` uses the local +catalog for a shell-owned default tree. For independently published trees or +versions absent from the shell artifact, it reads the selected version's +published catalog from the bucket. The aggregate records each catalog's hash. +This prevents a locally built `latest` tree from replacing the inventory of +a published `stable` default. + +Publish updated port artifacts, including their root `objects.inv` and +`targets.json`, before the first root publication. A missing catalog fails +composition before the footer or aggregate is uploaded. The root publisher +does not manufacture another version's destinations from the current model. diff --git a/package.json b/package.json index 8af0dd3ff..9b096fe6a 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,10 @@ "preview": "pnpm --filter @libtmux/site preview", "build:site": "./scripts/build-site.sh", "clean": "bash scripts/clean-build.sh", - "type-check": "pnpm run --recursive type-check", - "lint": "pnpm run --recursive lint && oxlint scripts", + "type-check": "pnpm run --recursive type-check && pnpm run type-check:python", + "type-check:python": "uv run --locked ty check", + "lint": "pnpm run --recursive lint && oxlint scripts && pnpm run lint:python", + "lint:python": "uv run --locked ruff check . && uv run --locked ruff format --check .", "test": "node scripts/test-loop.mjs outer", "test:inner": "node scripts/test-loop.mjs inner", "test:medium": "node scripts/test-loop.mjs medium", diff --git a/packages/api-model/src/index.ts b/packages/api-model/src/index.ts index 05740d887..0ab8dc0ec 100644 --- a/packages/api-model/src/index.ts +++ b/packages/api-model/src/index.ts @@ -13,7 +13,8 @@ export { resolvePublicIds } from './reexports.ts' export { SymbolIndex, keywordArgument, parameterId, typeParameterId, type LinkTarget, type KeywordHelp, type TypeParameterBinding } from './link.ts' export { boundLabel, parseTypeParameter, parseTypeParameters, typeParameterList, typeParametersOf, withTypeParameterDocs } from './type-params.ts' export { tokenizeDoc, docSummaryText, referencesIn, type DocSpan } from './doc/roles.ts' -export { writeInventory, readInventory, isSymbolEntry, symbolEntries, NON_SYMBOL_ROLES, type InventoryEntry } from './inventory.ts' +export { writeInventory, writeInventoryEntries, readInventory, inventoryType, isSymbolEntry, symbolEntries, NON_SYMBOL_ROLES, type InventoryEntry } from './inventory.ts' +export { targetKey, targetEntries, compatibilityEntries, type InventoryTarget } from './targets.ts' export { Resolver, notASymbol, toPath, DEFAULT_TEMPLATES, DEFAULT_PRIMARY_MODULES } from './resolver.ts' export type { Resolution, UrlTemplate } from './resolver.ts' export { qualifiedNameOf, moduleOf, modulesIn } from './modules.ts' diff --git a/packages/api-model/src/inventory.ts b/packages/api-model/src/inventory.ts index df48876b1..7c6867981 100644 --- a/packages/api-model/src/inventory.ts +++ b/packages/api-model/src/inventory.ts @@ -2,27 +2,6 @@ import { gunzipSync, inflateSync, deflateSync } from 'node:zlib' import type { ApiModelBase, ApiSymbol, PortSlug, SymbolKind } from './model.ts' import { qualifiedNameOf } from './modules.ts' -/** - * Sphinx `objects.inv` v2, read and written. - * - * The format is four plaintext header lines followed by a zlib stream of - * records — read out of `sphinx/util/inventory.py` rather than recalled: - * - * {fullname} {domain}:{role} {priority} {uri} {dispname} - * - * Two space optimisations that the reader reverses and a writer must apply, - * or Sphinx's own reader produces wrong URLs rather than an error: - * - * - an anchor equal to the object's own name collapses to `$` - * - a `dispname` equal to `fullname` collapses to `-` - * - * Publishing this is what makes libtmux.org linkable from any Sphinx project, - * including our own: the Python docs are Sphinx, so with libtmux.org in their - * `intersphinx_mapping` a docstring can write ``:class:`libtmux-rs:Pane` `` and - * get a working link. That is cross-language linking through the mechanism - * Sphinx already ships, rather than one invented here. - */ - /** * Entries of a Sphinx inventory that name something other than an API symbol: * a page of the manual, a command-line option, a pdb command, an environment @@ -51,15 +30,7 @@ export function symbolEntries(entries: T[]): T[] { return entries.filter((entry) => isSymbolEntry(entry) && !(language && entry.type.startsWith('std:'))) } -/** - * Model kind to Sphinx domain role. - * - * Sphinx has real domains for Python, C++ and JavaScript, and those are used - * so an external consumer's `:py:class:` resolves the way it expects. The - * other seven languages have no domain, and inventing `rs:struct` would produce - * a role no reader has ever heard of — those go to `std:label`, which every - * Sphinx understands and which `:ref:` resolves. - */ +/** Sphinx v2 uses object types in records; roles resolve those types. */ const DOMAIN: Record = { py: 'py', ruby: 'std', @@ -79,7 +50,7 @@ const DOMAIN: Record = { swift: 'std', } -const PY_ROLE: Partial> = { +const PY_TYPE: Partial> = { module: 'module', class: 'class', exception: 'exception', @@ -95,9 +66,9 @@ const PY_ROLE: Partial> = { trait: 'class', } -const CPP_ROLE: Partial> = { +const CPP_TYPE: Partial> = { class: 'class', - struct: 'struct', + struct: 'class', union: 'union', interface: 'class', enum: 'enum', @@ -105,12 +76,11 @@ const CPP_ROLE: Partial> = { method: 'function', attribute: 'member', property: 'member', - constant: 'var', + constant: 'member', typealias: 'type', - module: 'namespace', } -const JS_ROLE: Partial> = { +const JS_TYPE: Partial> = { class: 'class', interface: 'class', function: 'function', @@ -124,16 +94,28 @@ const JS_ROLE: Partial> = { typealias: 'data', } -const C_ROLE: Partial> = { +const C_TYPE: Partial> = { struct: 'struct', union: 'union', enum: 'enum', function: 'function', typealias: 'type', attribute: 'var', constant: 'var', } -function roleFor(language: string, kind: SymbolKind): string { +function objectTypeFor(language: string, kind: SymbolKind): string { const domain = language === 'c' ? 'c' : DOMAIN[language as PortSlug] ?? 'std' - const table = domain === 'py' ? PY_ROLE : domain === 'cpp' ? CPP_ROLE : domain === 'js' ? JS_ROLE : domain === 'c' ? C_ROLE : undefined + const table = domain === 'py' ? PY_TYPE : domain === 'cpp' ? CPP_TYPE : domain === 'js' ? JS_TYPE : domain === 'c' ? C_TYPE : undefined // `std:label` is the honest home for a language Sphinx has no domain for. - return `${domain}:${table?.[kind] ?? 'label'}` + const type = table?.[kind] + return type ? `${domain}:${type}` : 'std:label' +} + +/** Built-in Sphinx object type, which can differ from the role's spelling. */ +export function inventoryType(symbol: ApiSymbol, language: string, parentKind?: SymbolKind): string { + if (language === 'c') { + if (symbol.modifiers.includes('macro')) return 'c:macro' + if (symbol.kind === 'constant' && parentKind === 'enum') return 'c:enumerator' + if (symbol.parent && ['attribute', 'property'].includes(symbol.kind)) return 'c:member' + } + if (language === 'cxx' && symbol.kind === 'constant' && parentKind === 'enum') return 'cpp:enumerator' + return objectTypeFor(language, symbol.kind) } export interface InventoryEntry { @@ -153,23 +135,44 @@ export interface InventoryOptions { uriFor: (symbol: ApiSymbol) => string } -/** Serialise a model as `objects.inv` bytes. */ -export function writeInventory(model: ApiModelBase & { port?: string; language?: string }, options: InventoryOptions): Buffer { - const header = - '# Sphinx inventory version 2\n' + - `# Project: ${escape(options.project)}\n` + - `# Version: ${escape(options.version)}\n` + +const BUILTIN_TYPES = new Set([ + ...['label', 'doc', 'term', 'token', 'envvar', 'cmdoption', 'confval'].map((type) => `std:${type}`), + ...['module', 'class', 'exception', 'function', 'method', 'attribute', 'data'].map((type) => `py:${type}`), + ...['class', 'union', 'enum', 'enumerator', 'function', 'member', 'type', 'concept'].map((type) => `cpp:${type}`), + ...['module', 'class', 'function', 'method', 'attribute', 'data'].map((type) => `js:${type}`), + ...['struct', 'union', 'enum', 'enumerator', 'function', 'member', 'var', 'type', 'macro'].map((type) => `c:${type}`), +]) + +/** Serialize records understood by an unextended Sphinx installation. */ +export function writeInventoryEntries(entries: readonly InventoryEntry[], options: Pick & { legacyCaseSensitiveLabels?: boolean }): Buffer { + const header = '# Sphinx inventory version 2\n' + + `# Project: ${escape(options.project)}\n# Version: ${escape(options.version)}\n` + '# The remainder of this file is compressed using zlib.\n' + const seen = new Set() + const lines = [...entries].sort((a, b) => compare(`${a.type}\0${a.name}`, `${b.type}\0${b.name}`)).map((entry) => { + const { name, type, priority, dispname } = entry + if (!name || /[\r\n\t]/.test(name) || /[\r\n]/.test(dispname)) throw new Error(`objects.inv: invalid record text: ${name}`) + if (!BUILTIN_TYPES.has(type)) throw new Error(`objects.inv: unsupported object type: ${type}`) + if (!Number.isInteger(priority)) throw new Error(`objects.inv: invalid priority: ${priority}`) + if (/\s/.test(entry.uri)) throw new Error(`objects.inv: invalid URI: ${entry.uri}`) + const key = `${type}\0${!options.legacyCaseSensitiveLabels && (type === 'std:label' || type === 'std:term') ? name.toLowerCase() : name}` + if (seen.has(key)) throw new Error(`objects.inv: duplicate reference: ${type} ${name}`) + seen.add(key) + // A terminal dollar is substitution syntax even when it is a literal URI byte. + let uri = entry.uri.replace(/\$$/, '%24') + if (entry.uri.endsWith(`#${name}`) && !name.endsWith('$')) uri = `${entry.uri.slice(0, -name.length)}$` + return `${name} ${type} ${priority} ${uri} ${dispname === name || !dispname.trim() ? '-' : dispname}\n` + }) + return Buffer.concat([Buffer.from(header), deflateSync(Buffer.from(lines.join('')), { level: 9 })]) +} + +const compare = (a: string, b: string) => a < b ? -1 : a > b ? 1 : 0 - const lines: string[] = [] - const parentKinds = model.language === 'c' - ? new Map(model.symbols.map((symbol) => [symbol.id, symbol.kind])) : undefined - const symbolRole = (symbol: ApiSymbol) => model.language === 'c' && symbol.modifiers.includes('macro') ? 'c:macro' - : model.language === 'c' && symbol.parent && symbol.kind === 'constant' && parentKinds?.get(symbol.parent) === 'enum' - ? 'c:enumerator' - : model.language === 'c' && symbol.parent && ['attribute', 'property'].includes(symbol.kind) - ? 'c:member' - : roleFor(model.port ?? model.language ?? '', symbol.kind) +/** Serialise a model as `objects.inv` bytes. */ +export function writeInventory(model: ApiModelBase & { port?: string; language?: string }, options: InventoryOptions): Buffer { + const entries: InventoryEntry[] = [] + const parentKinds = new Map(model.symbols.map((symbol) => [symbol.id, symbol.kind])) + const symbolRole = (symbol: ApiSymbol) => inventoryType(symbol, model.language ?? model.port ?? '', symbol.parent ? parentKinds.get(symbol.parent) : undefined) const cName = (symbol: ApiSymbol) => symbolRole(symbol) === 'c:enumerator' ? symbol.name : qualifiedNameOf(symbol) const spellings = new Map() if (model.language === 'c') for (const symbol of model.symbols) { @@ -188,27 +191,17 @@ export function writeInventory(model: ApiModelBase & { port?: string; language?: // duplicated file-local name or an anonymous type keeps its scoped ID. const name = model.language === 'c' && !/\s/.test(spelling) && spellings.get(`${role}:${spelling}`) === 1 ? spelling : symbol.publicId ?? symbol.id - // Records are whitespace-delimited, so a name containing whitespace is - // not representable — Sphinx's reader mis-splits it and the entry is - // silently lost. Two Java symbols disappeared exactly this way, because - // the extractor had put a field's initialiser into its name. Refusing - // loudly is the only way that stays found: an inventory two entries short - // looks identical to a correct one. + // Legacy model exports require declaration IDs. Spaces usually mean an + // extractor captured a field initializer or a type expression as its name. if (/\s/.test(name)) { throw new Error( `objects.inv: symbol name contains whitespace and cannot be serialised: ${JSON.stringify(name)}. ` + 'This is an extractor bug — a name should never contain a space.', ) } - let uri = options.uriFor(symbol) - // `#name` at the end collapses to `#$`; Sphinx's own comment puts the - // saving at up to 25% of the file. - if (uri.endsWith(`#${name}`)) uri = `${uri.slice(0, -name.length)}$` - const display = qualifiedNameOf(symbol) - lines.push(`${name} ${role} 1 ${uri} ${display === name ? '-' : display}\n`) + entries.push({ name, type: role, priority: 1, uri: options.uriFor(symbol), dispname: qualifiedNameOf(symbol) }) } - - return Buffer.concat([Buffer.from(header, 'utf8'), deflateSync(Buffer.from(lines.join(''), 'utf8'), { level: 9 })]) + return writeInventoryEntries(entries, { ...options, legacyCaseSensitiveLabels: true }) } const escape = (s: string): string => s.replace(/\s+/g, ' ') diff --git a/packages/api-model/src/resolver.ts b/packages/api-model/src/resolver.ts index 50a2237e9..a57f7ed57 100644 --- a/packages/api-model/src/resolver.ts +++ b/packages/api-model/src/resolver.ts @@ -102,7 +102,8 @@ export function notASymbol(text: string): string | undefined { if (/^(?:net|v)?\d+\.\d+(?:\.\d+)?(?:[a-z]|[-+][\w.-]+)?$/.test(text)) return 'a version' if (/^(?:net|v)?\d+(?:\.\d+)*\.x$/.test(text)) return 'a version line' if (/^\w+(?:\.\w+)+:[\w.-]+(?::[\w.<>{}-]+)?$/.test(text)) return 'a dependency coordinate' - if (/\.(?:tsv|html)$/.test(text)) return 'a filename' + // `objects.inv` is the published Sphinx inventory, named by the setup guides next to a Python fence. + if (/\.(?:tsv|html|inv)$/.test(text)) return 'a filename' if (/\.(py|ts|go|rs|java|kt|kts|scala|cs|fs|fsi|fsproj|properties|cpp|hpp|c|h|lua|rb|swift|jl|exs?|ps1|psm1|psd1|md|json|ya?ml|toml|sh)\b/.test(text)) return 'a filename' if (/(^|\s)--?[A-Za-z]/.test(text)) return 'a command-line flag' if (/[=<>!]=|\s[=<>]\s/.test(text)) return 'an expression, not a reference' diff --git a/packages/api-model/src/targets.ts b/packages/api-model/src/targets.ts new file mode 100644 index 000000000..38ef9791c --- /dev/null +++ b/packages/api-model/src/targets.ts @@ -0,0 +1,116 @@ +import type { InventoryEntry } from './inventory.ts' + +/** Identity survives display and route changes; version selects a snapshot. */ +export interface InventoryTarget { + scope: string + product: string + category: string + identity: string + display: string + href: string + version?: string + source?: { repo: string; path: string; ref: string } + native?: { type: string; name: string }[] + aliases?: string[] + legacy?: { type: string; name: string }[] + formerType?: string +} + +/** Injective under std:ref's lowercase normalization, including case-distinct APIs. */ +export function targetKey(target: Pick): string { + return [target.scope, target.product, target.category, target.identity].map((part) => { + if (!part) throw new Error('Inventory identity components must be nonempty') + return part.replace(/[^a-z0-9._~-]/gu, (character) => [...Buffer.from(character)] + .map((byte) => `%${byte.toString(16).padStart(2, '0')}`).join('')) + }).join(':') +} + +function nativeNames(target: InventoryTarget, native: { type: string; name: string }, scoped: boolean): string[] { + const names = [native.name] + if (native.type === 'std:cmdoption') { + const program = native.name.trim().split(/\s+/) + const option = program.pop() + // Sphinx qualifies subcommands as normalized-program.option. + if (program.length && option) names.push(`${program.join('-')}.${option}`) + } + return names.flatMap((name) => [ + `${target.scope}:${target.product}:${name}`, `${target.scope}:${name}`, ...(scoped ? [name] : []), + ]) +} + +/** Record URLs are relative to the mapping base, including preview mounts. */ +export function targetEntries(targets: readonly InventoryTarget[], base: string, scoped = false): InventoryEntry[] { + if (!base.startsWith('/') || !base.endsWith('/')) throw new Error(`Inventory base must be an absolute directory path: ${base}`) + const entries: InventoryEntry[] = [] + const used = new Map() + const add = (name: string, type: string, target: InventoryTarget) => { + if (!target.href.startsWith(base) || !new URL(target.href, 'https://inventory.invalid').pathname.startsWith(base)) throw new Error(`Inventory target escapes ${base}: ${target.href}`) + if (type === 'std:label' && name !== name.toLowerCase()) throw new Error(`Inventory label must survive lowercase normalization: ${name}`) + const uri = target.href.slice(base.length) + const spelling = type === 'std:term' ? name.toLowerCase() : name + const key = `${type}\0${spelling}` + const previous = used.get(key) + if (used.has(key)) { + if (previous !== uri) throw new Error(`Inventory reference has two destinations: ${type} ${name}`) + return + } + used.set(key, uri) + entries.push({ name: spelling, type, uri, priority: 1, dispname: target.display }) + } + const nativeDestinations = new Map>() + for (const target of targets) for (const native of target.native ?? []) { + for (const name of nativeNames(target, native, scoped)) { + const key = `${native.type}\0${native.type === 'std:term' ? name.toLowerCase() : name}` + const destinations = nativeDestinations.get(key) ?? new Set() + destinations.add(target.href) + nativeDestinations.set(key, destinations) + } + } + for (const target of targets) { + const key = targetKey(target) + add(key, 'std:label', target) + for (const alias of target.aliases ?? []) { + add(alias, 'std:label', target) + if (target.category === 'doc') add(alias, 'std:doc', target) + } + if (target.category === 'doc') add(key, 'std:doc', target) + for (const native of target.native ?? []) { + for (const name of nativeNames(target, native, scoped)) { + const key = `${native.type}\0${native.type === 'std:term' ? name.toLowerCase() : name}` + if (nativeDestinations.get(key)?.size === 1) add(name, native.type, target) + } + } + } + return entries +} + +/** Compatibility mappings retain raw API names and former aggregate aliases. */ +export function compatibilityEntries(targets: readonly InventoryTarget[], base: string, aggregate = false): InventoryEntry[] { + const entries = new Map() + const cSpellings = new Map>() + if (!aggregate) for (const target of targets) for (const native of target.native ?? []) { + if (!native.type.startsWith('c:') || /\s/.test(native.name)) continue + const key = `${native.type}\0${native.name}` + const destinations = cSpellings.get(key) ?? new Set() + destinations.add(target.href) + cSpellings.set(key, destinations) + } + for (const target of targets) { + if (aggregate && target.scope.startsWith('tmux@')) continue + for (const legacy of target.legacy ?? []) { + const name = aggregate ? `${target.scope}:${legacy.name}` : legacy.name + if (!target.href.startsWith(base)) throw new Error(`Legacy inventory target escapes ${base}: ${target.href}`) + const entry = { name, type: legacy.type, priority: 1, uri: target.href.slice(base.length), dispname: target.display } + entries.set(`${entry.type}\0${name}`, entry) + if (aggregate && target.formerType) entries.set(`${target.formerType}\0${name}`, { ...entry, type: target.formerType }) + } + if (!aggregate) for (const native of target.native ?? []) { + const key = `${native.type}\0${native.name}` + if (cSpellings.get(key)?.size === 1) { + if (!target.href.startsWith(base)) throw new Error(`Legacy inventory target escapes ${base}: ${target.href}`) + entries.set(key, { name: native.name, type: native.type, priority: 1, uri: target.href.slice(base.length), dispname: target.display }) + } + } + } + return [...entries.values()] +} diff --git a/packages/api-model/test/inventory.test.ts b/packages/api-model/test/inventory.test.ts new file mode 100644 index 000000000..2da0bfa0e --- /dev/null +++ b/packages/api-model/test/inventory.test.ts @@ -0,0 +1,103 @@ +import { describe, expect, it } from 'vitest' +import { inventoryType, readInventory, writeInventoryEntries, type InventoryEntry } from '../src/inventory.ts' +import { compatibilityEntries, targetEntries, targetKey, type InventoryTarget } from '../src/targets.ts' +import type { ApiSymbol } from '../src/model.ts' + +const entry: InventoryEntry = { name: 'sample', type: 'std:label', priority: 1, uri: 'guide/#sample', dispname: 'Example' } +const options = { project: 'libtmux', version: 'test' } +const target: InventoryTarget = { scope: 'cxx', product: 'core', category: 'api', identity: 'libtmux::Pane', display: 'Pane', href: '/pr-42/en/cxx/stable/reference/pane/#Pane', version: 'stable' } + +describe('inventory records', () => { + it('is byte-stable regardless of collection order and preserves spaces in option names', () => { + const option = { ...entry, name: 'tmux-workspace load --detached', type: 'std:cmdoption' } + const first = writeInventoryEntries([entry, option], options) + expect(first).toEqual(writeInventoryEntries([option, entry], options)) + expect(readInventory(first).entries.map((entry) => entry.name)).toContain(option.name) + }) + it('escapes a literal terminal dollar instead of letting Sphinx substitute a name', () => { + const result = readInventory(writeInventoryEntries([{ ...entry, uri: 'guide/#literal$' }], options)) + expect(result.entries[0].uri).toBe('guide/#literal%24') + }) + it('represents the mapping root with an empty URI', () => { + const result = readInventory(writeInventoryEntries([{ ...entry, uri: '' }], options)) + expect(result.entries[0].uri).toBe('') + expect(result.entries[0].dispname).toBe('Example') + }) + it.each(['', ' '])('keeps a record whose display text is %j', (dispname) => { + const result = readInventory(writeInventoryEntries([{ ...entry, dispname }], options)) + expect(result.entries).toHaveLength(1) + expect(result.entries[0].dispname).toBe(entry.name) + }) + it.each(['cpp:struct', 'cpp:var', 'cpp:namespace', 'rs:struct', 'mcp:tool', 'py:label'])('rejects the unregistered type %s', (type) => { + expect(() => writeInventoryEntries([{ ...entry, type }], options)).toThrow('unsupported object type') + }) + it('rejects duplicate records and standard-role case collisions', () => { + expect(() => writeInventoryEntries([entry, entry], options)).toThrow('duplicate reference') + expect(() => writeInventoryEntries([entry, { ...entry, name: 'Sample' }], options)).toThrow('duplicate reference') + }) + it('maps C++ declaration kinds to object types rather than role names', () => { + const symbol = (kind: ApiSymbol['kind']) => ({ kind, modifiers: [] }) as unknown as ApiSymbol + expect(inventoryType(symbol('struct'), 'cxx')).toBe('cpp:class') + expect(inventoryType(symbol('constant'), 'cxx')).toBe('cpp:member') + expect(inventoryType(symbol('constant'), 'cxx', 'enum')).toBe('cpp:enumerator') + expect(inventoryType(symbol('module'), 'cxx')).toBe('std:label') + expect(inventoryType(symbol('trait'), 'rs')).toBe('std:label') + }) +}) + +describe('durable portable references', () => { + it('preserves unambiguous C spellings in legacy inventories without choosing a file-local duplicate', () => { + const named = { ...target, scope: 'tmux@latest', identity: 'c:function:global', native: [{ type: 'c:function', name: 'global' }], legacy: [{ type: 'c:function', name: 'c:function:global' }] } + const local = { ...named, identity: 'file:local', native: [{ type: 'c:function', name: 'local' }], legacy: [{ type: 'c:function', name: 'file:local' }], href: named.href + '-local' } + const other = { ...local, identity: 'other:local', legacy: [{ type: 'c:function', name: 'other:local' }], href: named.href + '-other' } + const names = compatibilityEntries([named, local, other], '/pr-42/en/').map((entry) => entry.name) + expect(names).toEqual(['c:function:global', 'global', 'file:local', 'other:local']) + }) + it('preserves case, separators, literal percent escapes, and Unicode under lowercase processing', () => { + const keys = ['Pane', 'pane', '%50ane', 'p:ane', 'p%3aane', 'Päne', 'päne'].map((identity) => targetKey({ ...target, identity })) + expect(new Set(keys.map((key) => key.toLowerCase())).size).toBe(keys.length) + expect(targetKey(target)).toBe('cxx:core:api:libtmux%3a%3a%50ane') + }) + it('separates identity and display from the current page URL', () => { + const moved = { ...target, display: 'A new title', href: '/pr-42/en/cxx/stable/new-page/#retained' } + expect(targetKey(moved)).toBe(targetKey(target)) + expect(targetEntries([moved], '/pr-42/en/')[0].uri).toBe('cxx/stable/new-page/#retained') + }) + it('normalizes glossary aliases for the case-insensitive standard term role', () => { + const entries = targetEntries([{ ...target, native: [{ type: 'std:term', name: 'Blocking Call' }] }], '/pr-42/en/', true) + expect(entries.filter((entry) => entry.type === 'std:term').map((entry) => entry.name)).toEqual(['cxx:core:blocking call', 'cxx:blocking call', 'blocking call']) + }) + it('exports canonical program option names alongside explicit human names', () => { + const option = { ...target, scope: 'py', product: 'workspace', native: [{ type: 'std:cmdoption', name: 'tmuxp load --append' }] } + const names = targetEntries([option], '/pr-42/en/', true).filter((entry) => entry.type === 'std:cmdoption').map((entry) => entry.name) + expect(names).toEqual(expect.arrayContaining([ + 'py:workspace:tmuxp load --append', 'tmuxp load --append', + 'py:workspace:tmuxp-load.--append', 'py:tmuxp-load.--append', 'tmuxp-load.--append', + ])) + }) + it('does not choose between commands whose Sphinx program names collide', () => { + const spaced = { ...target, native: [{ type: 'std:cmdoption', name: 'tmuxp load --append' }] } + const dashed = { ...spaced, identity: 'other-command', href: target.href + '-other', native: [{ type: 'std:cmdoption', name: 'tmuxp-load --append' }] } + const names = targetEntries([spaced, dashed], '/pr-42/en/', true).filter((entry) => entry.type === 'std:cmdoption').map((entry) => entry.name) + expect(names).toEqual(expect.arrayContaining(['tmuxp load --append', 'tmuxp-load --append'])) + for (const name of ['cxx:core:tmuxp-load.--append', 'cxx:tmuxp-load.--append', 'tmuxp-load.--append']) expect(names).not.toContain(name) + }) + it('keeps unqualified options and existing canonical names unchanged', () => { + const names = targetEntries([{ ...target, native: [ + { type: 'std:cmdoption', name: '--help' }, + { type: 'std:cmdoption', name: 'tmuxp-load.--append' }, + ] }], '/pr-42/en/', true).filter((entry) => entry.type === 'std:cmdoption').map((entry) => entry.name) + expect(names).toHaveLength(6) + expect(names).toEqual(expect.arrayContaining(['--help', 'tmuxp-load.--append'])) + }) + it('rejects a target escaping the configured preview or mapping scope', () => { + expect(() => targetEntries([target], '/en/')).toThrow('escapes') + expect(() => targetEntries([target], '/pr-42/en/cxx/latest/')).toThrow('escapes') + }) + it('retains qualified native aliases when short names are ambiguous across products', () => { + const core = { ...target, native: [{ type: 'cpp:class', name: 'Pane' }] } + const workspace = { ...core, product: 'workspace', href: core.href.replace('reference/', 'workspace/reference/') } + const names = targetEntries([core, workspace], '/pr-42/en/cxx/stable/', true).filter((entry) => entry.type === 'cpp:class').map((entry) => entry.name) + expect(names).toEqual(['cxx:core:Pane', 'cxx:workspace:Pane']) + }) +}) diff --git a/packages/api-model/test/resolver.test.ts b/packages/api-model/test/resolver.test.ts index e8c534b59..4ba838807 100644 --- a/packages/api-model/test/resolver.test.ts +++ b/packages/api-model/test/resolver.test.ts @@ -71,6 +71,11 @@ d('resolver', () => { expect('symbol' in res ? res.symbol.publicId : res.how).toBe('libtmux.Server:new_session') }) + it('treats Sphinx inventory files as filenames, and leaves a similarly spelled member a symbol', () => { + for (const text of ['objects.inv', 'objects-full.inv', 'reference/objects.inv']) expect(notASymbol(text), text).toBe('a filename') + for (const text of ['pane.invoke', 'server.inventory', 'inv']) expect(notASymbol(text), text).toBeUndefined() + }) + it('treats C, Lua and Ruby source files as filenames', () => { for (const text of ['options-table.c', 'tmux.h', 'lua/libtmux/init.lua', 'lib/libtmux.rb']) { expect(notASymbol(text)).toBe('a filename') diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fade953b7..68530ddc4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -342,6 +342,9 @@ importers: mdast-util-to-markdown: specifier: ^2.2.0 version: 2.2.0 + parse5: + specifier: 7.3.0 + version: 7.3.0 prettier: specifier: 3.9.10 version: 3.9.10 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..c498c9d77 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,61 @@ +[project] +name = "libtmux-docs" +version = "0.0.0" +description = "Python tooling for the libtmux.org documentation site" +requires-python = ">=3.12,<4" + +[dependency-groups] +dev = [ + { include-group = "lint" }, + { include-group = "testing" }, +] +docs = [ + "breathe>=4.36.0,<5", + "furo>=2025.12.19", + "sphinx>=9.1.0,<10", +] +lint = [ + "ruff>=0.16.1", + "ty>=0.0.35", +] +testing = [ + "sphinx>=9.1.0,<10", + "myst-parser>=5.1.0,<6", +] + +[tool.uv] +package = false +exclude-newer = "3 days" + +[tool.ruff] +target-version = "py312" +line-length = 100 +include = ["scripts/**/*.py"] +extend-exclude = ["output"] + +[tool.ruff.lint] +extend-select = [ + "E", "F", "I", "UP", "A", "B", "C4", "COM", "EM", "Q", "PTH", + "SIM", "TRY", "PERF", "RUF", "D", "FA100", +] +ignore = ["COM812"] +extend-safe-fixes = ["UP006", "UP007"] + +[tool.ruff.lint.pyupgrade] +keep-runtime-typing = false + +[tool.ruff.lint.isort] +combine-as-imports = true +required-imports = ["from __future__ import annotations"] + +[tool.ruff.lint.pydocstyle] +convention = "numpy" + +[tool.ty.environment] +python-version = "3.12" + +[tool.ty.src] +include = ["scripts"] + +[tool.ty.terminal] +error-on-warning = true diff --git a/scripts/build-site.sh b/scripts/build-site.sh index 7437b5ea5..5752bcdf9 100755 --- a/scripts/build-site.sh +++ b/scripts/build-site.sh @@ -846,10 +846,10 @@ build_reference() { [ -n "$cxx_conf_backup" ] && [ -f "$cxx_conf_backup" ] && cp "$cxx_conf_backup" "$checkout_expanded/docs/conf.py" } - # The C++ docs tree is not a Python project, so uv has no lockfile to - # resolve from: name the doc dependencies explicitly. + # Resolve the C++ renderer from this repository's locked docs group; + # the port's docs directory has no Python project of its own. if (cd "$checkout_expanded/docs" && uv run \ - --with sphinx --with breathe --with furo \ + --project "$script_dir/.." --locked --group docs \ sphinx-build -q -b dirhtml \ -D "breathe_projects.$slug=$doxygen_xml/xml" \ -d "$scratch/doctrees-$slug-$version" . "$outdir") >>"$log_file" 2>&1; then @@ -1207,6 +1207,9 @@ if [ "$had_failure" -eq 1 ]; then exit 1 fi +log "publishing inventories from assembled pages" +node "$script_dir/publish-inventories.mjs" "$site_out" "$LIBTMUX_DOCS_PORT_ROOT/" + # Only here is a whole-site link check meaningful. Every `/py/stable/` path is # written by a different `astro build`, so any single build reports thousands # of them missing and is right to; the assembly is the first moment all of diff --git a/scripts/check-doxygen.py b/scripts/check-doxygen.py index bb2ac9a69..4b103f173 100644 --- a/scripts/check-doxygen.py +++ b/scripts/check-doxygen.py @@ -1,5 +1,7 @@ """Check the native producer's public using-declaration XML before building C++.""" +from __future__ import annotations + import re import subprocess import sys @@ -9,9 +11,11 @@ def check(binary: str, expected: str) -> None: + """Verify the Doxygen version and its public using-declaration output.""" version = subprocess.check_output([binary, "--version"], text=True, timeout=10).strip() if not re.fullmatch(re.escape(expected) + r"(?: \([0-9a-f]+\))?", version): - raise ValueError(f"Expected Doxygen {expected}, got {version}") + msg = f"Expected Doxygen {expected}, got {version}" + raise ValueError(msg) with tempfile.TemporaryDirectory(prefix="libtmux-doxygen-smoke-") as directory: root = Path(directory) (root / "query.hpp").write_text("""namespace libtmux { @@ -32,12 +36,12 @@ def check(binary: str, expected: str) -> None: using tmuxq::matching; } """) - config = "\n".join([ - "INPUT = query.hpp", "FILE_PATTERNS = *.hpp", "GENERATE_XML = YES", - "GENERATE_HTML = NO", "GENERATE_LATEX = NO", "XML_PROGRAMLISTING = NO", - "EXTRACT_ALL = NO", "EXTRACT_PRIVATE = NO", "EXTRACT_STATIC = NO", - "HIDE_UNDOC_MEMBERS = YES", "WARN_AS_ERROR = FAIL_ON_WARNINGS", "QUIET = YES", - ]) + config = ( + "INPUT = query.hpp\nFILE_PATTERNS = *.hpp\nGENERATE_XML = YES\n" + "GENERATE_HTML = NO\nGENERATE_LATEX = NO\nXML_PROGRAMLISTING = NO\n" + "EXTRACT_ALL = NO\nEXTRACT_PRIVATE = NO\nEXTRACT_STATIC = NO\n" + "HIDE_UNDOC_MEMBERS = YES\nWARN_AS_ERROR = FAIL_ON_WARNINGS\nQUIET = YES" + ) subprocess.run([binary, "-"], input=config, text=True, cwd=root, check=True, timeout=30) members = [ member @@ -46,8 +50,11 @@ def check(binary: str, expected: str) -> None: ] names = [member.findtext("qualifiedname") for member in members] if names.count("libtmux::matching") != 1 or names.count("libtmux::tmuxq::matching") != 2: - raise ValueError("Doxygen must emit the public libtmux::matching using-declaration " - "and both libtmux::tmuxq::matching overloads") + msg = ( + "Doxygen must emit the public libtmux::matching using-declaration " + "and both libtmux::tmuxq::matching overloads" + ) + raise ValueError(msg) print(f"Doxygen {version}: public using-declaration and two original overloads verified") diff --git a/scripts/check-example-prose.py b/scripts/check-example-prose.py old mode 100644 new mode 100755 index f3fe4ec11..575149c0a --- a/scripts/check-example-prose.py +++ b/scripts/check-example-prose.py @@ -9,147 +9,193 @@ This downloads and builds dependencies; it belongs outside routine site tests. """ +from __future__ import annotations + import argparse +import contextlib import hashlib import json import os -from pathlib import Path import re import signal import subprocess import time +from pathlib import Path def select_examples(manifest, kind, port, page=None, program=None): """Select one complete program without combining independent setup recipes.""" - examples = [item for item in manifest['examples'] if kind == 'guide' or item['port'] == port] + examples = [item for item in manifest["examples"] if kind == "guide" or item["port"] == port] if page: - page_path = page if kind in ('guide', 'home') else f'ports/{port}/{page}' - examples = [item for item in examples if item['page'] == page_path] + page_path = page if kind in ("guide", "home") else f"ports/{port}/{page}" + examples = [item for item in examples if item["page"] == page_path] if program: - examples = [item for item in examples if item.get('sourceProgramId') == program] + examples = [item for item in examples if item.get("sourceProgramId") == program] return examples def api_command_blocks(blocks, example): - if 'consoleBlocks' not in example: - return [block['code'] for block in blocks if block['lang'] == 'console'] - indices = example['consoleBlocks'] - if not indices or len(set(indices)) != len(indices) or any( - not isinstance(index, int) or isinstance(index, bool) or - not 0 <= index < len(blocks) or blocks[index]['lang'] != 'console' - for index in indices + """Select only the console blocks recorded for one API program.""" + if "consoleBlocks" not in example: + return [block["code"] for block in blocks if block["lang"] == "console"] + indices = example["consoleBlocks"] + if ( + not indices + or len(set(indices)) != len(indices) + or any( + not isinstance(index, int) + or isinstance(index, bool) + or not 0 <= index < len(blocks) + or blocks[index]["lang"] != "console" + for index in indices + ) ): - raise ValueError('Invalid API console block selection') - return [blocks[index]['code'] for index in indices] + msg = "Invalid API console block selection" + raise ValueError(msg) + return [blocks[index]["code"] for index in indices] def stop_process_group(process): """Stop a timed-out command and descendants, even if its shell exits first.""" - try: + with contextlib.suppress(ProcessLookupError): os.killpg(process.pid, signal.SIGTERM) - except ProcessLookupError: - pass - try: + with contextlib.suppress(subprocess.TimeoutExpired): process.wait(timeout=5) - except subprocess.TimeoutExpired: - pass - try: + with contextlib.suppress(ProcessLookupError): os.killpg(process.pid, signal.SIGKILL) - except ProcessLookupError: - pass process.wait() def main(): + """Verify and execute one displayed program with its recorded setup.""" repo = Path(__file__).resolve().parent.parent parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument('--example', choices=['capture', 'attach', 'query', 'concept', 'guide', 'api', 'home', 'program'], default='capture') - parser.add_argument('--port') - parser.add_argument('--page', help='Guide path, or page within the selected port') - parser.add_argument('--program', help='Source program ID when an API page has several complete examples') - parser.add_argument('--view', choices=['concise', 'errors', 'cleanup', 'full'], - help='Homepage detail selection (default: full)') - parser.add_argument('--api-model', type=Path, help='Review model for an unpublished source revision') - parser.add_argument('--output-dir', required=True, type=Path) - parser.add_argument('--timeout', type=float, default=600, - help='Maximum seconds per setup/run command (default: 600)') + parser.add_argument( + "--example", + choices=["capture", "attach", "query", "concept", "guide", "api", "home", "program"], + default="capture", + ) + parser.add_argument("--port") + parser.add_argument("--page", help="Guide path, or page within the selected port") + parser.add_argument( + "--program", help="Source program ID when an API page has several complete examples" + ) + parser.add_argument( + "--view", + choices=["concise", "errors", "cleanup", "full"], + help="Homepage detail selection (default: full)", + ) + parser.add_argument( + "--api-model", type=Path, help="Review model for an unpublished source revision" + ) + parser.add_argument("--output-dir", required=True, type=Path) + parser.add_argument( + "--timeout", + type=float, + default=600, + help="Maximum seconds per setup/run command (default: 600)", + ) args = parser.parse_args() if args.timeout <= 0: - parser.error('--timeout must be positive') - manifest = json.loads((repo / f'site/test/fixtures/{args.example}-examples.json').read_text()) - if args.example != 'guide' and not args.port: - parser.error('--port is required for language examples') - if args.program and args.example != 'api': - parser.error('--program is only valid for API examples') - if args.view and args.example != 'home': - parser.error('--view is only valid for homepage examples') + parser.error("--timeout must be positive") + manifest = json.loads((repo / f"site/test/fixtures/{args.example}-examples.json").read_text()) + if args.example != "guide" and not args.port: + parser.error("--port is required for language examples") + if args.program and args.example != "api": + parser.error("--program is only valid for API examples") + if args.view and args.example != "home": + parser.error("--view is only valid for homepage examples") examples = select_examples(manifest, args.example, args.port, args.page, args.program) if len(examples) != 1: - choices = ', '.join(item['page'] for item in examples) - parser.error(f'Choose one example with --port, --page and optionally --program; matching pages: {choices or "none"}') + choices = ", ".join(item["page"] for item in examples) + parser.error( + "Choose one example with --port, --page and optionally --program; " + f"matching pages: {choices or 'none'}" + ) example = examples[0] - view = args.view or 'full' - if args.example == 'home' and view != 'full': - example = dict(example, **example['variants'][view]) - if args.api_model and args.example != 'api': - parser.error('--api-model is only valid for API examples') - if args.example == 'home': - page = repo / 'site/src/data/home-examples.json' - elif args.example == 'api': - page = args.api_model or repo / 'site/src/data/api' / f'{args.port}.json' + view = args.view or "full" + if args.example == "home" and view != "full": + example = dict(example, **example["variants"][view]) + if args.api_model and args.example != "api": + parser.error("--api-model is only valid for API examples") + if args.example == "home": + page = repo / "site/src/data/home-examples.json" + elif args.example == "api": + page = args.api_model or repo / "site/src/data/api" / f"{args.port}.json" else: - page = repo / 'site/src/content/docs' / (example['page'] + '.md') + page = repo / "site/src/content/docs" / (example["page"] + ".md") content = page.read_text() - if args.example == 'home': + if args.example == "home": home = json.loads(content)[args.port] - if (home['sourceRevision'], home['sourceTree']) != (example['sourceRevision'], example['sourceTree']): - raise ValueError('Homepage source revision differs from the verification record') + if (home["sourceRevision"], home["sourceTree"]) != ( + example["sourceRevision"], + example["sourceTree"], + ): + msg = "Homepage source revision differs from the verification record" + raise ValueError(msg) blocks = [] - elif args.example == 'api': + elif args.example == "api": model = json.loads(content) - symbols = [symbol for symbol in model['symbols'] if symbol['id'] == example['symbol']] + symbols = [symbol for symbol in model["symbols"] if symbol["id"] == example["symbol"]] if len(symbols) != 1: - raise ValueError(f'Expected one API symbol: {example["symbol"]}') - if symbols[0]['source']['revision'] != example['sourceRevision']: - raise ValueError('API source revision differs from the verification record') - api_blocks = symbols[0].get('doc', {}).get('examples', []) + msg = f"Expected one API symbol: {example['symbol']}" + raise ValueError(msg) + if symbols[0]["source"]["revision"] != example["sourceRevision"]: + msg = "API source revision differs from the verification record" + raise ValueError(msg) + api_blocks = symbols[0].get("doc", {}).get("examples", []) blocks = [] else: - blocks = list(re.finditer(r'^```(\S+)([^\n]*)\n(.*?)^```', content, re.M | re.S)) + blocks = list( + re.finditer(r"^```(\S+)([^\n]*)\n(.*?)^```", content, re.MULTILINE | re.DOTALL) + ) files = {} - for item in example['files']: - name = item['name'] - path = Path(item.get('path', name)) - if path.is_absolute() or '..' in path.parts: - raise ValueError(f'Invalid example filename: {name}') - if args.example == 'home': - matches = [home['variants'][view] if view != 'full' and name == home['program'] - else file['code'] for file in home['files'] if file['name'] == name] - elif args.example == 'api': - block_index = item['block'] - matches = [api_blocks[block_index]['code']] if 0 <= block_index < len(api_blocks) else [] + for item in example["files"]: + name = item["name"] + path = Path(item.get("path", name)) + if path.is_absolute() or ".." in path.parts: + msg = f"Invalid example filename: {name}" + raise ValueError(msg) + if args.example == "home": + matches = [ + home["variants"][view] + if view != "full" and name == home["program"] + else file["code"] + for file in home["files"] + if file["name"] == name + ] + elif args.example == "api": + block_index = item["block"] + matches = ( + [api_blocks[block_index]["code"]] if 0 <= block_index < len(api_blocks) else [] + ) else: matches = [block[3] for block in blocks if f'title="{name}"' in block[2]] if len(matches) != 1: - raise ValueError(f'Expected one displayed file: {name}') + msg = f"Expected one displayed file: {name}" + raise ValueError(msg) code = matches[0] - if hashlib.sha256(code.encode()).hexdigest() != item['sha256']: - raise ValueError(f'Changed example bytes: {name}; review its verification record') + if hashlib.sha256(code.encode()).hexdigest() != item["sha256"]: + msg = f"Changed example bytes: {name}; review its verification record" + raise ValueError(msg) files[str(path)] = code - if args.example == 'home': - command_blocks = home['commands'] - elif args.example == 'api': + if args.example == "home": + command_blocks = home["commands"] + elif args.example == "api": command_blocks = api_command_blocks(api_blocks, example) else: - command_blocks = [block[3] for block in blocks if block[1] == 'console'] - commands = [re.sub(r'^\$ ', '', code, flags=re.M).strip() for code in command_blocks] - if not commands or commands != example['shellRecipe']: - raise ValueError('Setup commands differ from the verification record') - expected = example.get('expectedOutputs', [[] for _ in commands[:-1]] + - [[example.get('expectedOutput', 'libtmux capture ready')]]) + command_blocks = [block[3] for block in blocks if block[1] == "console"] + commands = [re.sub(r"^\$ ", "", code, flags=re.MULTILINE).strip() for code in command_blocks] + if not commands or commands != example["shellRecipe"]: + msg = "Setup commands differ from the verification record" + raise ValueError(msg) + expected = example.get( + "expectedOutputs", + [[] for _ in commands[:-1]] + [[example.get("expectedOutput", "libtmux capture ready")]], + ) if len(expected) != len(commands): - raise ValueError('Expected output must be recorded for each setup or run command') + msg = "Expected output must be recorded for each setup or run command" + raise ValueError(msg) output = args.output_dir.resolve() output.mkdir(parents=True, exist_ok=False) @@ -158,11 +204,12 @@ def main(): target.parent.mkdir(parents=True, exist_ok=True) target.write_text(code) env = dict(os.environ) - env.pop('TMUX', None) - env.pop('TMUX_PANE', None) + env.pop("TMUX", None) + env.pop("TMUX_PANE", None) sandbox = None - if args.example in ('home', 'program'): + if args.example in ("home", "program"): from example_tmux_sandbox import ExampleTmuxSandbox + sandbox = ExampleTmuxSandbox(output, env) if sandbox: env = sandbox.env @@ -170,13 +217,17 @@ def main(): try: for index, command in enumerate(commands): start = time.monotonic() - log = output / f'run-{index + 1}.log' - print(f'Running {example["page"]}; log: {log}', flush=True) + log = output / f"run-{index + 1}.log" + print(f"Running {example['page']}; log: {log}", flush=True) timed_out = False - with log.open('w') as stream: + with log.open("w") as stream: process = subprocess.Popen( - ['sh', '-eu', '-c', command], cwd=output, env=env, - stdout=stream, stderr=subprocess.STDOUT, start_new_session=True, + ["sh", "-eu", "-c", command], + cwd=output, + env=env, + stdout=stream, + stderr=subprocess.STDOUT, + start_new_session=True, ) try: exit_code = process.wait(timeout=args.timeout) @@ -185,29 +236,43 @@ def main(): stop_process_group(process) exit_code = 124 missing = [line for line in expected[index] if line not in log.read_text().splitlines()] - results.append({'command': command, 'exit': exit_code, 'timedOut': timed_out, - 'seconds': round(time.monotonic() - start, 3), 'missingOutput': missing}) + results.append( + { + "command": command, + "exit": exit_code, + "timedOut": timed_out, + "seconds": round(time.monotonic() - start, 3), + "missingOutput": missing, + } + ) if exit_code or missing: break finally: - cleanup = sandbox.finish(view in ('cleanup', 'full')) if sandbox else None + cleanup = sandbox.finish(view in ("cleanup", "full")) if sandbox else None passed = len(results) == len(commands) and all( - row['exit'] == 0 and not row['missingOutput'] for row in results) - report = {'port': example['port'], 'page': example['page'], 'sourceRevision': example['sourceRevision'], - 'tmuxVersion': subprocess.check_output(['tmux', '-V'], text=True).strip(), - 'pageSha256': hashlib.sha256(page.read_bytes()).hexdigest(), - 'files': example['files'], 'runs': results, 'passed': passed, - 'scope': 'Exact displayed program and setup; native execution on this host.'} - if example.get('sourceProgramId'): - report['sourceProgramId'] = example['sourceProgramId'] - if sandbox: - report['view'] = view - report['cleanup'] = cleanup - report['passed'] = passed = passed and cleanup['passed'] - (output / 'result.json').write_text(json.dumps(report, indent=2) + '\n') + row["exit"] == 0 and not row["missingOutput"] for row in results + ) + report = { + "port": example["port"], + "page": example["page"], + "sourceRevision": example["sourceRevision"], + "tmuxVersion": subprocess.check_output(["tmux", "-V"], text=True).strip(), + "pageSha256": hashlib.sha256(page.read_bytes()).hexdigest(), + "files": example["files"], + "runs": results, + "passed": passed, + "scope": "Exact displayed program and setup; native execution on this host.", + } + if example.get("sourceProgramId"): + report["sourceProgramId"] = example["sourceProgramId"] + if sandbox is not None and cleanup is not None: + report["view"] = view + report["cleanup"] = cleanup + report["passed"] = passed = passed and cleanup["passed"] + (output / "result.json").write_text(json.dumps(report, indent=2) + "\n") print(json.dumps(report, indent=2)) return 0 if passed else 1 -if __name__ == '__main__': +if __name__ == "__main__": raise SystemExit(main()) diff --git a/scripts/check-go-prose.py b/scripts/check-go-prose.py old mode 100644 new mode 100755 index abbc3af10..ce2e6a579 --- a/scripts/check-go-prose.py +++ b/scripts/check-go-prose.py @@ -5,33 +5,42 @@ The default ref is the source revision in the integrated Go API model. This is an optional native verification gate; it needs Go and tmux on PATH. """ -from pathlib import Path + +from __future__ import annotations + import argparse import json import os import re import subprocess import tempfile +from pathlib import Path parser = argparse.ArgumentParser(description=__doc__) -parser.add_argument('--checkout', type=Path, required=True) -parser.add_argument('--ref') +parser.add_argument("--checkout", type=Path, required=True) +parser.add_argument("--ref") args = parser.parse_args() repo = Path(__file__).resolve().parent.parent -model = json.loads((repo / 'site/src/data/api/go.json').read_text()) +model = json.loads((repo / "site/src/data/api/go.json").read_text()) revision = subprocess.check_output( - ['git', '-C', str(args.checkout), 'rev-parse', (args.ref or model['revision']) + '^{commit}'], text=True + ["git", "-C", str(args.checkout), "rev-parse", (args.ref or model["revision"]) + "^{commit}"], + text=True, ).strip() -root = repo / 'site/src/content/docs/topics' +root = repo / "site/src/content/docs/topics" + def verify(root, out, source, revision): - go_version = re.search(r'^go (.+)$', (source / 'go.mod').read_text(), re.M).group(1) - (out / 'go.mod').write_text( - f'module docs-check\n\ngo {go_version}\n\n' - 'require github.com/libtmux/libtmux-go v0.0.0\n\n' - f'replace github.com/libtmux/libtmux-go => {source.resolve()}\n' + """Compile and execute the documented Go examples at the cited revision.""" + match = re.search(r"^go (.+)$", (source / "go.mod").read_text(), re.MULTILINE) + assert match is not None, "Go source must declare its language version" + go_version = match.group(1) + (out / "go.mod").write_text( + f"module docs-check\n\ngo {go_version}\n\n" + "require github.com/libtmux/libtmux-go v0.0.0\n\n" + f"replace github.com/libtmux/libtmux-go => {source.resolve()}\n" ) - parts=['''package docscheck + parts = [ + """package docscheck import ( "context" "errors" @@ -42,21 +51,49 @@ def verify(root, out, source, revision): "github.com/libtmux/libtmux-go/tmux" "github.com/libtmux/libtmux-go/tmux/tmuxtest" ) - '''] - givens={'pane-interaction':['pane tmux.Pane','pane tmux.Pane'], 'options-and-hooks':['window tmux.Window','session tmux.Session'], 'waiting-and-retry':['session tmux.Session','server tmux.Server']} - for name in [*givens, 'context-managers']: - matches = list(re.finditer(r'^```go[^\n]*\n(.*?)^```', (root/(name+'.md')).read_text(), re.M|re.S)) - assert len(matches) == (1 if name == 'context-managers' else 2), f'Update verification for changed {name} examples' + """ + ] + givens = { + "pane-interaction": ["pane tmux.Pane", "pane tmux.Pane"], + "options-and-hooks": ["window tmux.Window", "session tmux.Session"], + "waiting-and-retry": ["session tmux.Session", "server tmux.Server"], + } + for name in [*givens, "context-managers"]: + matches = list( + re.finditer( + r"^```go[^\n]*\n(.*?)^```", + (root / (name + ".md")).read_text(), + re.MULTILINE | re.DOTALL, + ) + ) + assert len(matches) == (1 if name == "context-managers" else 2), ( + f"Update verification for changed {name} examples" + ) for index, match in enumerate(matches): - code=match[1] - if name=='context-managers':parts.append(code);continue - fn=name.replace('-','')+str(index) - parts.append('func '+fn+'(ctx context.Context, '+givens[name][index]+') error {\n'+code+'\nreturn nil\n}\n') - transports = list(re.finditer(r'^```go[^\n]*\n(.*?)^```', - (root.parent/'concepts/transports.md').read_text(), re.M|re.S)) - assert len(transports) == 1, 'Update verification for changed transport examples' - parts.append('func transportExample() error {\n'+transports[0][1]+'\n}\n') - parts.append(''' + code = match[1] + if name == "context-managers": + parts.append(code) + continue + fn = name.replace("-", "") + str(index) + parts.append( + "func " + + fn + + "(ctx context.Context, " + + givens[name][index] + + ") error {\n" + + code + + "\nreturn nil\n}\n" + ) + transports = list( + re.finditer( + r"^```go[^\n]*\n(.*?)^```", + (root.parent / "concepts/transports.md").read_text(), + re.MULTILINE | re.DOTALL, + ) + ) + assert len(transports) == 1, "Update verification for changed transport examples" + parts.append("func transportExample() error {\n" + transports[0][1] + "\n}\n") + parts.append(""" func TestMain(m *testing.M) { os.Exit(tmuxtest.Main(m)) } func TestTransportExample(t *testing.T) { @@ -76,7 +113,9 @@ def verify(root, out, source, revision): func TestPublishedExamples(t *testing.T) { ctx, cancel := context.WithTimeout(t.Context(), 10*time.Second) defer cancel() - server := tmuxtest.NewServerWithOptions(ctx, t, tmuxtest.ServerOptions{Config: []byte("set-window-option -g automatic-rename off\\n"), FixedShell: true}) + server := tmuxtest.NewServerWithOptions(ctx, t, tmuxtest.ServerOptions{ + Config: []byte("set-window-option -g automatic-rename off\\n"), FixedShell: true, + }) session := tmuxtest.NewSession(ctx, t, server, tmux.NewSessionRequest{}) name := "build" window := tmuxtest.NewWindow(ctx, t, session, tmux.NewWindowRequest{Name: &name}) @@ -95,30 +134,44 @@ def verify(root, out, source, revision): for _, call := range calls {t.Run(call.name, func(t *testing.T) { if err := call.run(); err != nil { t.Fatal(err) } })} - if err := tmuxtest.WaitFor(ctx, 10*time.Millisecond, func(ctx context.Context) (bool, error) { + checkOutput := func(ctx context.Context) (bool, error) { lines, err := pane.Capture(ctx, tmux.CapturePaneRequest{}) for _, line := range lines { if line == "hello" { return true, err } } return false, err - }); err != nil { t.Fatalf("literal input did not execute: %v", err) } - if err := paneinteraction0(ctx, tmux.Pane{}); err == nil { t.Fatal("invalid pane error was swallowed") } + } + if err := tmuxtest.WaitFor(ctx, 10*time.Millisecond, checkOutput); err != nil { + t.Fatalf("literal input did not execute: %v", err) + } + if err := paneinteraction0(ctx, tmux.Pane{}); err == nil { + t.Fatal("invalid pane error was swallowed") + } expired, stop := context.WithCancel(ctx); stop() - if err := waitingandretry0(expired, session); !errors.Is(err, context.Canceled) {t.Fatalf("cancellation lost: %v", err)} + if err := waitingandretry0(expired, session); !errors.Is(err, context.Canceled) { + t.Fatalf("cancellation lost: %v", err) + } sessions, err := server.Sessions(ctx) - if err != nil || len(sessions) != 1 || sessions[0].ID() != session.ID() {t.Fatalf("owned cleanup changed sessions: %v, %v", sessions, err)} + if err != nil || len(sessions) != 1 || sessions[0].ID() != session.ID() { + t.Fatalf("owned cleanup changed sessions: %v, %v", sessions, err) + } + } + """) + (out / "examples_test.go").write_text("\n".join(parts)) + + env = { + key: value + for key, value in os.environ.items() + if key not in ["TMUX", "TMUX_PANE", "GOWORK"] } - ''') - (out/'examples_test.go').write_text('\n'.join(parts)) + env["GOWORK"] = "off" + env["TMUX_TMPDIR"] = str(out) + print(f"Go prose: {revision}; eight examples from five pages", flush=True) + subprocess.run(["go", "test", "-count=1", "-v", "."], cwd=out, env=env, check=True) - env = {key: value for key, value in os.environ.items() if key not in ['TMUX', 'TMUX_PANE', 'GOWORK']} - env['GOWORK'] = 'off' - env['TMUX_TMPDIR'] = str(out) - print(f'Go prose: {revision}; eight examples from five pages', flush=True) - subprocess.run(['go', 'test', '-count=1', '-v', '.'], cwd=out, env=env, check=True) -with tempfile.TemporaryDirectory(prefix='libtmux-go-prose-') as temporary: +with tempfile.TemporaryDirectory(prefix="libtmux-go-prose-") as temporary: out = Path(temporary) - source = out / 'source' + source = out / "source" source.mkdir() - archive = subprocess.check_output(['git', '-C', str(args.checkout), 'archive', revision]) - subprocess.run(['tar', '-xf', '-', '-C', str(source)], input=archive, check=True) + archive = subprocess.check_output(["git", "-C", str(args.checkout), "archive", revision]) + subprocess.run(["tar", "-xf", "-", "-C", str(source)], input=archive, check=True) verify(root, out, source, revision) diff --git a/scripts/check-inventories.py b/scripts/check-inventories.py new file mode 100755 index 000000000..acfc2f104 --- /dev/null +++ b/scripts/check-inventories.py @@ -0,0 +1,593 @@ +#!/usr/bin/env python3 +"""Audit assembled inventory destinations and build strict Sphinx/MyST consumers.""" + +from __future__ import annotations + +import argparse +import ast +import json +import re +import subprocess +import sys +import tempfile +from collections import Counter +from functools import cache +from html.parser import HTMLParser +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path +from threading import Thread +from typing import NotRequired, TypedDict +from urllib.parse import unquote, urlsplit + +from sphinx.util.inventory import InventoryFile + +RAW_TEXT = re.compile(r"|<(script|style)\b[^>]*>[\s\S]*?", re.IGNORECASE) +TAG = re.compile(r"""<[A-Za-z][\w:-]*\b(?:[^>"']|"[^"]*"|'[^']*')*>""") +ID_ATTRIBUTE = re.compile(r"(?:\s)id\s*=", re.IGNORECASE) + +type AuditValue = int | list[dict[str, str | int]] + + +class NativeAlias(TypedDict): + """Registered object type and its native reference name.""" + + type: str + name: str + + +class Target(TypedDict): + """Rendered destination and its public inventory identities.""" + + key: str + href: str + scope: str + product: str + category: str + version: str + aliases: NotRequired[list[str]] + native: NotRequired[list[NativeAlias]] + + +class Catalog(TypedDict): + """Inventory targets owned by one deployment prefix.""" + + base: str + scope: NotRequired[str] + version: NotRequired[str] + defaults: NotRequired[dict[str, str]] + targets: list[Target] + + +class DocumentOwner(TypedDict): + """Ownership metadata emitted by the documentation shell.""" + + scope: str + version: NotRequired[str] + exclude: NotRequired[bool] + + +class Page(HTMLParser): + """Read fragments, links, and copyable code from rendered HTML.""" + + def __init__(self, html: str, links: bool = True) -> None: + super().__init__(convert_charrefs=True) + self.ids: Counter[str] = Counter() + self.links: set[str] = set() + self.ordered_links: list[str] = [] + self.code_blocks: list[tuple[str, str]] = [] + self.code_language: str | None = None + self.references: dict[str, set[str]] = {} + self.current_link: str | None = None + self.link_text: list[str] = [] + self.collect_links = links + if links: + self.feed(html) + else: + # Parse attributes with HTMLParser, avoiding millions of highlight spans. + for match in TAG.finditer(RAW_TEXT.sub("", html)): + tag = match.group() + if ID_ATTRIBUTE.search(tag): + self.feed(tag) + + def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None: + """Collect real attributes without counting comments or raw text.""" + attributes = dict(attrs) + if self.collect_links and tag == "pre": + self.code_language = attributes.get("data-language") + if ( + self.collect_links + and tag == "button" + and self.code_language + and (code := attributes.get("data-code")) + ): + # Expressive Code encodes line breaks as DEL in copy payloads. + self.code_blocks.append((self.code_language, code.replace("\x7f", "\n"))) + self.code_language = None + if identifier := attributes.get("id"): + self.ids[identifier] += 1 + if self.collect_links and tag == "a" and (href := attributes.get("href")): + self.links.add(href) + self.ordered_links.append(href) + self.current_link = href + self.link_text = [] + + def handle_data(self, data: str) -> None: + """Retain the visible caption of consumer references.""" + if self.current_link is not None: + self.link_text.append(data) + + def handle_endtag(self, tag: str) -> None: + """Associate each reference caption with its resolved destination.""" + if tag == "a" and self.current_link is not None: + label = " ".join("".join(self.link_text).split()) + self.references.setdefault(label, set()).add(self.current_link) + self.current_link = None + self.link_text = [] + + +def authored_examples(root: Path, prefix: str, origin: str) -> int: + """Resolve the published examples and compare their displayed destinations.""" + source = ( + Path(__file__).resolve().parents[1] / "site/src/content/docs/meta/intersphinx/examples.mdx" + ) + article = source.read_text() + rendered = (root / "meta/intersphinx/examples/index.html").read_text() + snippets = re.findall(r"^```(rst|markdown)\n(.*?)^```\s*$", article, re.MULTILINE | re.DOTALL) + copied = [ + (language, code) + for language, code in Page(rendered).code_blocks + if language in ("rst", "markdown") + ] + assert [(language, code.rstrip("\n")) for language, code in snippets] == copied, ( + "Published copy buttons must preserve every authored reference snippet" + ) + destinations = re.findall(r"

Destinations?:.*?

", rendered, re.DOTALL) + assert snippets and len(snippets) == len(destinations), ( + "Every reference example needs a destination paragraph" + ) + configuration = re.search(r"^```python\n(.*?)^```\s*$", article, re.MULTILINE | re.DOTALL) + assert configuration is not None, "The examples need a complete Intersphinx configuration" + settings = ast.parse(configuration.group(1)) + mapping = next( + ast.literal_eval(statement.value) + for statement in settings.body + if isinstance(statement, ast.Assign) + and any( + isinstance(target, ast.Name) and target.id == "intersphinx_mapping" + for target in statement.targets + ) + ) + mappings = { + name: ( + base.replace("https://libtmux.org/en/", origin + prefix), + inventory.replace("https://libtmux.org/en/", origin + prefix) if inventory else None, + ) + for name, (base, inventory) in mapping.items() + } + bodies: dict[str, list[str]] = {"rst": [], "markdown": []} + expected: dict[str, list[str]] = {"rst": [], "markdown": []} + for (language, snippet), paragraph in zip(snippets, destinations, strict=True): + links = Page(paragraph).ordered_links + assert links, "An example destination must be a real link" + bodies[language].append(snippet) + expected[language].extend(origin + href if href.startswith("/") else href for href in links) + with tempfile.TemporaryDirectory(prefix="libtmux-authored-intersphinx-") as scratch: + work = Path(scratch) + config = { + "extensions": ["sphinx.ext.intersphinx", "myst_parser"], + "intersphinx_mapping": mappings, + "master_doc": "index", + "project": "Published Intersphinx examples", + "source_suffix": {".rst": "restructuredtext", ".md": "markdown"}, + "html_theme": "basic", + "intersphinx_cache_limit": 0, + } + (work / "conf.py").write_text( + "\n".join(f"{key} = {value!r}" for key, value in config.items()) + ) + (work / "index.rst").write_text( + "Examples\n========\n\n.. toctree::\n\n rst\n markdown\n" + ) + (work / "rst.rst").write_text("RST\n===\n\n" + "\n\n".join(bodies["rst"])) + (work / "markdown.md").write_text("# MyST\n\n" + "\n\n".join(bodies["markdown"])) + result = subprocess.run( + [ + sys.executable, + "-m", + "sphinx", + "-E", + "-a", + "-n", + "-W", + "--keep-going", + "-b", + "html", + str(work), + str(work / "html"), + ], + text=True, + capture_output=True, + check=False, + ) + assert result.returncode == 0, result.stdout + result.stderr + for language, wanted in expected.items(): + page = Page((work / "html" / f"{language}.html").read_text()) + actual = [href for href in page.ordered_links if href.startswith(origin + prefix)] + assert actual == wanted, {"language": language, "expected": wanted, "actual": actual} + return sum(map(len, expected.values())) + + +class Metadata(HTMLParser): + """Read ownership from the head without parsing a whole article.""" + + def __init__(self) -> None: + super().__init__(convert_charrefs=True) + self.value: DocumentOwner | None = None + self.done = False + self.shell_export = False + + def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None: + """Identify owned documents and excluded native helper exports.""" + attributes = dict(attrs) + if tag == "html" and "data-native-shell-export" in attributes: + self.shell_export = True + if tag == "meta" and attributes.get("name") == "libtmux-inventory": + content = attributes.get("content") + assert content is not None, "Inventory metadata needs content" + self.value = json.loads(content) + + def handle_endtag(self, tag: str) -> None: + """Stop metadata reads once the document head ends.""" + if tag == "head": + self.done = True + + +def metadata(path: Path) -> DocumentOwner | None: + """Return shell ownership, excluding native helper exports.""" + parser = Metadata() + with path.open() as source: + while chunk := source.read(4096): + parser.feed(chunk) + if parser.value is not None or parser.done: + break + return None if parser.shell_export else parser.value + + +@cache +def page(path: Path) -> Page: + """Cache fragment counts for repeatedly referenced documents.""" + return Page(path.read_text(), links=False) + + +def destination(root: Path, prefix: str, url: str) -> None: + """Require a destination inside the assembly and a unique fragment.""" + parsed = urlsplit(url) + assert parsed.path.startswith(prefix), f"Inventory URL escapes {prefix}: {url}" + path = root / unquote(parsed.path[len(prefix) :]) + if parsed.path.endswith("/"): + path /= "index.html" + path = path.resolve() + assert path.is_relative_to(root), f"Inventory URL escapes output: {url}" + assert path.is_file(), f"Missing inventory page: {url}" + if parsed.fragment: + fragment = unquote(parsed.fragment) + assert page(path).ids[fragment] == 1, f"Missing or duplicate inventory fragment: {url}" + + +def records(path: Path, base: str) -> dict[tuple[str, str], str]: + """Decode inventory URLs with Sphinx's own parser.""" + inventory = InventoryFile.loads(path.read_bytes(), uri=base).data + return { + (kind, name): item.uri for kind, items in inventory.items() for name, item in items.items() + } + + +ROLE = { + "std:label": "ref", + "std:doc": "doc", + "std:term": "term", + "std:confval": "confval", + "std:cmdoption": "option", + "std:envvar": "envvar", + "std:token": "token", +} +for domain in ("py", "js"): + for kind, spelling in { + "function": "func", + "method": "meth", + "attribute": "attr", + "module": "mod", + }.items(): + ROLE[f"{domain}:{kind}"] = f"{domain}:{spelling}" +ROLE["py:exception"] = "py:exc" + + +def role(kind: str) -> str: + """Map inventory object types to built-in Sphinx role spellings.""" + return ROLE.get( + kind, + kind.replace(":function", ":func") + .replace(":attribute", ":attr") + .replace("cpp:member", "cpp:var"), + ) + + +def option_contexts(catalog: Catalog) -> list[tuple[str, str, str]]: + """Select unambiguous option names for Sphinx program directives.""" + destinations: dict[tuple[str, str], set[str]] = {} + programs = {} + for target in catalog["targets"]: + for native in target.get("native", []): + if native["type"] != "std:cmdoption": + continue + words = native["name"].split() + if len(words) < 2: + continue + option = words.pop() + program = f"{target['scope']}:{target['product']}:{' '.join(words)}" + key = ("-".join(program.split()), option) + destinations.setdefault(key, set()).add(target["href"]) + programs.setdefault(key, program) + return [ + (programs[key], key[1], next(iter(urls))) + for key, urls in destinations.items() + if len(urls) == 1 + ] + + +def consumer( + root: Path, prefix: str, catalogs: list[tuple[Path, Catalog]], origin: str, myst: bool +) -> int: + """Build a strict consumer and check every selected resolved link.""" + with tempfile.TemporaryDirectory(prefix="libtmux-intersphinx-") as scratch: + work = Path(scratch) + mappings = {} + references = [] + expected = {} + for index, (path, catalog) in enumerate(catalogs): + name = f"libtmux{index}" + base = origin + catalog["base"] + mappings[name] = ( + (base, origin + prefix + "objects-full.inv") + if path.parent == root + else (base, None) + ) + inventory = records( + path.parent / ("objects-full.inv" if path.parent == root else "objects.inv"), base + ) + # One target in every product/category/scope, plus every native object type. + selected: dict[tuple[str, ...], tuple[str, ...]] = {} + for target in catalog["targets"]: + selected.setdefault( + (target["scope"], target["product"], target["category"]), + ("std:label", target["key"]), + ) + for kind, key in inventory: + if kind != "std:label": + selected.setdefault((kind,), (kind, key)) + if kind == "cpp:class": + selected.setdefault(("cpp:struct-role",), (kind, key, "cpp:struct")) + for number, reference in enumerate(selected.values()): + kind, key = reference[:2] + label = f"Reference {index}-{number}" + spec = f"external+{name}:{reference[2] if len(reference) > 2 else role(kind)}" + references.append( + f"{{{spec}}}`{label} <{key}>`" if myst else f":{spec}:`{label} <{key}>`" + ) + expected[label] = inventory[(kind, key)] + for number, (program, option, href) in enumerate(option_contexts(catalog)): + label = f"Option {index}-{number}" + reference = f"{label} <{option}>" + references.append( + f"```{{program}} {program}\n```\n\n" + f"{{external+{name}:option}}`{reference}`\n\n```{{program}} None\n```" + if myst + else f".. program:: {program}\n\n" + f":external+{name}:option:`{reference}`\n\n.. program:: None" + ) + expected[label] = origin + href + config = { + "extensions": ["sphinx.ext.intersphinx"] + (["myst_parser"] if myst else []), + "intersphinx_mapping": mappings, + "master_doc": "index", + "project": "Inventory consumer", + "html_theme": "basic", + "source_suffix": {".md": "markdown"} if myst else {".rst": "restructuredtext"}, + "intersphinx_cache_limit": 0, + } + (work / "conf.py").write_text( + "\n".join(f"{key} = {value!r}" for key, value in config.items()) + ) + header = ( + "# Inventory consumer\n\n" if myst else "Inventory consumer\n==================\n\n" + ) + (work / ("index.md" if myst else "index.rst")).write_text(header + "\n\n".join(references)) + result = subprocess.run( + [ + sys.executable, + "-m", + "sphinx", + "-E", + "-a", + "-n", + "-W", + "--keep-going", + "-b", + "html", + str(work), + str(work / "html"), + ], + text=True, + capture_output=True, + check=False, + ) + assert result.returncode == 0, result.stdout + result.stderr + actual = Page((work / "html/index.html").read_text()).references + incorrect = { + label: (href, sorted(actual.get(label, set()))) + for label, href in expected.items() + if actual.get(label) != {href} + } + assert not incorrect, f"Consumer resolved incorrect references: {incorrect}" + return len(references) + + +def audit(root: Path, prefix: str, consumers: bool) -> dict[str, AuditValue]: + """Audit catalog coverage, all destinations and optional real consumers.""" + controls = Page( + '' + '

Title

' + '', + links=False, + ) + assert controls.ids == Counter({"real&id": 1, "duplicate": 2}), ( + "HTML fragment audit failed its negative controls" + ) + paths = [root / "targets.json", *sorted(root.glob("*/*/targets.json"))] + if (root / "tmux/targets.json").is_file(): + paths.append(root / "tmux/targets.json") + catalogs: list[tuple[Path, Catalog]] = [(path, json.loads(path.read_text())) for path in paths] + assert catalogs[0][1]["base"] == prefix, ( + "Full inventory catalog has the wrong deployment prefix" + ) + manifest = json.loads((root / "versions.json").read_text()) + total = 0 + owned_documents = 0 + for path, catalog in catalogs: + full = path.parent == root + tmux_default = ( + catalog.get("defaults", {}).get("tmux") if path.parent == root / "tmux" else None + ) + base = catalog["base"] + inventory = records( + path.parent / ("objects-full.inv" if full else "objects.inv"), + "https://inventory.invalid" + base, + ) + labels = {key for kind, key in inventory if kind == "std:label"} + expected = {target["key"] for target in catalog["targets"]} + for target in catalog["targets"]: + expected.update(target.get("aliases", [])) + assert target["key"] == target["key"].lower(), ( + f"Label is changed by std:ref: {target['key']}" + ) + if full and target["scope"] in manifest["ports"]: + assert target["version"] == manifest["defaultVersion"][target["scope"]], ( + f"Wrong full-inventory version: {target['key']}" + ) + if not full: + if tmux_default: + assert target["scope"] == "site" or ( + target["scope"] == f"tmux@{tmux_default}" + and target["version"] == tmux_default + ), f"Wrong default tmux target: {target['key']}" + else: + assert target["scope"] == catalog.get("scope") and target[ + "version" + ] == catalog.get("version"), f"Wrong scoped target: {target['key']}" + assert ( + inventory[("std:label", target["key"])] + == "https://inventory.invalid" + target["href"] + ), f"Wrong label URL: {target['key']}" + assert labels == expected, f"Inventory/catalog label mismatch: {path}" + for uri in sorted(set(inventory.values())): + destination(root, prefix, uri) + total += len(inventory) + documents = {target["href"] for target in catalog["targets"] if target["category"] == "doc"} + for file in path.parent.rglob("*.html"): + relative = file.relative_to(path.parent) + if full and relative.parts[0] in manifest["ports"]: + continue # Scoped catalogs cover all built versions, including nondefaults. + owner = metadata(file) + if not owner or owner.get("exclude"): + continue + if tmux_default and owner["scope"] not in ("site", f"tmux@{tmux_default}"): + continue + assert ( + full + or tmux_default + or ( + owner["scope"] == catalog.get("scope") + and owner.get("version") == catalog.get("version") + ) + ), f"Wrong document ownership: {file}" + relative_url = relative.as_posix() + href = base + ( + relative_url.removesuffix("index.html") + if relative.name == "index.html" + else relative_url + ) + assert href in documents, f"Owned document is absent from its inventory: {href}" + owned_documents += 1 + # Compatibility exports use their historical mapping directory as the base. + legacy = [] + for path in root.rglob("objects.inv"): + if (path.parent / "targets.json").is_file() and path.parent != root: + continue + if "/api/" in path.as_posix(): + continue + base = ( + "https://inventory.invalid" + + prefix + + path.parent.relative_to(root).as_posix().removeprefix(".").lstrip("/") + ) + if not base.endswith("/"): + base += "/" + items = records(path, base) + for uri in sorted(set(items.values())): + destination(root, prefix, uri) + legacy.append({"path": str(path.relative_to(root)), "records": len(items)}) + result: dict[str, AuditValue] = { + "catalogs": len(catalogs), + "records": total, + "owned_documents": owned_documents, + "legacy": legacy, + } + if consumers: + + class Handler(BaseHTTPRequestHandler): + def do_GET(self): + parsed = urlsplit(self.path) + path = (root / unquote(parsed.path[len(prefix) :])).resolve() + if ( + not parsed.path.startswith(prefix) + or not path.is_relative_to(root) + or not path.is_file() + ): + self.send_error(404) + return + self.send_response(200) + self.send_header("Content-Type", "application/octet-stream") + self.end_headers() + self.wfile.write(path.read_bytes()) + + def log_message(self, *args: object, **kwargs: object) -> None: + """Keep fixture requests out of the audit result.""" + + with ThreadingHTTPServer(("127.0.0.1", 0), Handler) as server: + worker = Thread(target=server.serve_forever, daemon=True) + worker.start() + try: + origin = f"http://127.0.0.1:{server.server_port}" + result["rst_references"] = consumer(root, prefix, catalogs, origin, False) + result["myst_references"] = consumer(root, prefix, catalogs, origin, True) + result["example_references"] = authored_examples(root, prefix, origin) + finally: + server.shutdown() + worker.join() + return result + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("site", type=Path, help="Assembled locale directory") + parser.add_argument( + "base", help="URL prefix including locale and optional preview, ending in /" + ) + parser.add_argument( + "--no-consumers", + action="store_true", + help="Audit all files without building the RST/MyST fixtures", + ) + args = parser.parse_args() + assert args.base.startswith("/") and args.base.endswith("/") + print(json.dumps(audit(args.site.resolve(), args.base, not args.no_consumers), indent=2)) diff --git a/scripts/check-workspace-prose.py b/scripts/check-workspace-prose.py old mode 100644 new mode 100755 index 1f984e055..c1f57d42b --- a/scripts/check-workspace-prose.py +++ b/scripts/check-workspace-prose.py @@ -7,6 +7,8 @@ Node, tmux and the CLI runtime must be on PATH. --report saves the run results. """ +from __future__ import annotations + import argparse import hashlib import json @@ -88,9 +90,7 @@ "port": args.port, "binary": str(BINARY), "entrypoint_sha256": hashlib.sha256(BINARY.read_bytes()).hexdigest(), - "pages": { - name: hashlib.sha256(body.encode()).hexdigest() for name, body in bodies.items() - }, + "pages": {name: hashlib.sha256(body.encode()).hexdigest() for name, body in bodies.items()}, "positive": [], "negative": [], "skipped": [] @@ -119,12 +119,15 @@ editor.chmod(0o755) configs = here / "config" configs.mkdir() - doc = "session_name: workspace-guide\nwindows:\n - window_name: editor\n layout: even-horizontal\n panes:\n - printf ready\n - printf second\n" + doc = ( + "session_name: workspace-guide\nwindows:\n - window_name: editor\n" + " layout: even-horizontal\n panes:\n - printf ready\n - printf second\n" + ) (here / "workspace.yaml").write_text(doc) (configs / "workspace.yaml").write_text(doc) for body in bodies.values(): for match in re.finditer( - r'```(?:yaml|json) title="([\w.-]+)"\n(.*?)\n```', body, re.S + r'```(?:yaml|json) title="([\w.-]+)"\n(.*?)\n```', body, re.DOTALL ): (here / match[1]).write_text(match[2] + "\n") env = dict( @@ -146,6 +149,7 @@ env.pop(name, None) def run(command, success=True): + """Run a documented command and check its expected exit status.""" result = subprocess.run( command, cwd=here, @@ -154,6 +158,7 @@ def run(command, success=True): capture_output=True, timeout=30, shell=isinstance(command, str), + check=False, ) if success and result.returncode: raise AssertionError((command, result.returncode, result.stderr[-1500:])) @@ -176,7 +181,7 @@ def run(command, success=True): ] ) for name, body in bodies.items(): - for match in re.finditer(r"```console\n(.*?)\n```", body, re.S): + for match in re.finditer(r"```console\n(.*?)\n```", body, re.DOTALL): command = match[1].removeprefix("$ ") result = run(command) if "--json" in command: @@ -189,11 +194,9 @@ def run(command, success=True): ) for name in CONFIGURATIONS: body = bodies["configuration/" + name] - document = re.search(r'```yaml title="([\w.-]+)"\n(.*?)\n```', body, re.S) + document = re.search(r'```yaml title="([\w.-]+)"\n(.*?)\n```', body, re.DOTALL) assert document, name - result = run( - [str(BINARY), "load", "-S", str(socket), "-d", "--json", document[1]] - ) + result = run([str(BINARY), "load", "-S", str(socket), "-d", "--json", document[1]]) json.loads(result.stdout) evidence["positive"].append( { @@ -204,9 +207,7 @@ def run(command, success=True): ) for document in ["gallery-blank.yaml", "gallery-commands.yaml"]: - result = run( - [str(BINARY), "load", "-S", str(socket), "-d", "--json", document] - ) + result = run([str(BINARY), "load", "-S", str(socket), "-d", "--json", document]) json.loads(result.stdout) evidence["positive"].append( { @@ -217,6 +218,7 @@ def run(command, success=True): ) def tmux(*command): + """Query only the workspace runner's private tmux endpoint.""" return run([TMUX, "-S", str(socket), *command]).stdout.strip() expected_panes = { @@ -231,20 +233,13 @@ def tmux(*command): "hooks-example": 1, } for session, count in expected_panes.items(): - panes = tmux( - "list-panes", "-s", "-t", "=" + session, "-F", "#{pane_id}" - ).splitlines() + panes = tmux("list-panes", "-s", "-t", "=" + session, "-F", "#{pane_id}").splitlines() assert len(panes) == count, (session, panes) session_ids = dict( line.split("\t") - for line in tmux( - "list-sessions", "-F", "#{session_name}\t#{session_id}" - ).splitlines() - ) - assert ( - tmux("show-options", "-v", "-t", session_ids["session-example"], "status") - == "off" + for line in tmux("list-sessions", "-F", "#{session_name}\t#{session_id}").splitlines() ) + assert tmux("show-options", "-v", "-t", session_ids["session-example"], "status") == "off" assert ( tmux( "show-window-options", @@ -261,10 +256,7 @@ def tmux(*command): ) == "on" ) - assert ( - tmux("list-windows", "-t", "=windows-example", "-F", "#{window_index}") - == "2" - ) + assert tmux("list-windows", "-t", "=windows-example", "-F", "#{window_index}") == "2" assert tmux( "list-panes", "-t", "=panes-example:work", "-F", "#{pane_active}" ).splitlines() == ["0", "1"] @@ -280,6 +272,7 @@ def tmux(*command): ).splitlines() def await_text(pane, expected): + """Wait briefly for a documented pane output.""" deadline = time.monotonic() + 3 while True: output = tmux("capture-pane", "-p", "-t", pane) @@ -331,13 +324,9 @@ def await_text(pane, expected): editor.write_text("#!/bin/sh\nexit 17\n") failed = run("EDITOR=vi tmux-workspace edit workspace.yaml", False) assert failed.returncode == 17 - evidence["negative"].append( - {"case": "editor status propagated", "exit": failed.returncode} - ) + evidence["negative"].append({"case": "editor status propagated", "exit": failed.returncode}) failed = run([str(BINARY), "search", "--json", "["], False) - evidence["negative"].append( - {"case": "invalid regex fails", "exit": failed.returncode} - ) + evidence["negative"].append({"case": "invalid regex fails", "exit": failed.returncode}) (here / "invalid.yaml").write_text( "session_name: invalid\nbogus: true\nwindows: [{window_name: shell, panes: [null]}]\n" ) @@ -345,9 +334,7 @@ def await_text(pane, expected): [str(BINARY), "load", "-S", str(socket), "-d", "--json", "invalid.yaml"], False, ) - evidence["negative"].append( - {"case": "invalid workspace fails", "exit": failed.returncode} - ) + evidence["negative"].append({"case": "invalid workspace fails", "exit": failed.returncode}) finally: if socket.exists(): subprocess.run( @@ -358,7 +345,8 @@ def await_text(pane, expected): if args.report: args.report.write_text(json.dumps(evidence, indent=2) + "\n") print( - f"PASS: {len(evidence['positive'])} documented commands, {len(evidence['negative'])} failure checks for {args.port}" + f"PASS: {len(evidence['positive'])} documented commands, " + f"{len(evidence['negative'])} failure checks for {args.port}" ) for skipped in evidence["skipped"]: print(f"SKIPPED: {skipped}") diff --git a/scripts/compose-published-inventory.mjs b/scripts/compose-published-inventory.mjs new file mode 100644 index 000000000..8869b7ea0 --- /dev/null +++ b/scripts/compose-published-inventory.mjs @@ -0,0 +1,81 @@ +#!/usr/bin/env node +import { execFileSync } from 'node:child_process' +import { createHash } from 'node:crypto' +import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' +import { resolve } from 'node:path' +import { pathToFileURL } from 'node:url' + +/** Compose against the final published manifest, including independently owned port trees. */ +export async function compose({ directory, runtime, catalogs, bucket, locale }) { + const out = resolve(directory) + const { targetEntries, compatibilityEntries, targetKey } = await import(pathToFileURL(resolve(runtime, 'targets.ts')).href) + const { writeInventoryEntries } = await import(pathToFileURL(resolve(runtime, 'inventory.ts')).href) + const read = (file) => JSON.parse(readFileSync(file, 'utf8')) + const manifest = read(resolve(out, 'versions.json')) + const shared = read(resolve(out, 'targets.json')) + const ownership = read(resolve('shell-paths.json')) + const base = `/${locale}/` + if (shared.base !== base) throw new Error(`Published inventory base differs from ${base}`) + const targets = shared.targets.filter((target) => target.scope === 'site' || target.scope.startsWith('tmux@')) + const inputs = [] + const compatibility = [] + for (const [port, versions] of Object.entries(manifest.ports)) { + if (!versions.length) continue + const version = manifest.defaultVersion[port] + if (!versions.some((entry) => entry.slug === version)) throw new Error(`No published default for ${port}/${version}`) + const relative = `${port}/${version}/targets.json` + let file = resolve(out, relative) + if (ownership.portTrees.includes(port) || !existsSync(file)) { + file = resolve(catalogs, relative) + if (bucket) { + mkdirSync(resolve(file, '..'), { recursive: true }) + execFileSync('aws', ['s3', 'cp', `s3://${bucket}/${locale}/${relative}`, file, '--only-show-errors'], { stdio: 'inherit' }) + } + if (!existsSync(file)) throw new Error(`Publish ${locale}/${relative} before advertising its full inventory`) + } + const bytes = readFileSync(file) + const catalog = JSON.parse(bytes.toString()) + const expectedBase = `${base}${port}/${version}/` + if (catalog.schema !== 1 || catalog.scope !== port || catalog.version !== version || catalog.base !== expectedBase || !catalog.targets?.length) { + throw new Error(`Published target catalog has the wrong identity: ${relative}`) + } + for (const target of catalog.targets) { + if (target.scope !== port || target.version !== version || !target.href.startsWith(expectedBase) || + !new URL(target.href, 'https://inventory.invalid').pathname.startsWith(expectedBase) || target.key !== targetKey(target)) { + throw new Error(`Published target is outside ${port}/${version}: ${target.key}`) + } + } + targets.push(...catalog.targets) + inputs.push({ port, version, catalog: `${base}${relative}`, sha256: createHash('sha256').update(bytes).digest('hex') }) + const entries = compatibilityEntries(catalog.targets, base).map((entry) => ({ ...entry, uri: `../../${entry.uri}` })) + compatibility.push({ + file: resolve(out, 'reference', port, 'objects.inv'), + bytes: writeInventoryEntries(entries, { project: `libtmux ${port}`, version, legacyCaseSensitiveLabels: true }), + }) + } + targets.sort((a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0) + const options = { project: 'libtmux', version: 'all' } + // Validate all exports before replacing any artifact file. + const full = writeInventoryEntries(targetEntries(targets, base), options) + const legacy = writeInventoryEntries(compatibilityEntries(targets, base, true), { ...options, legacyCaseSensitiveLabels: true }) + for (const { file, bytes } of compatibility) { + mkdirSync(resolve(file, '..'), { recursive: true }) + writeFileSync(file, bytes) + } + writeFileSync(resolve(out, 'objects-full.inv'), full) + writeFileSync(resolve(out, 'objects.inv'), legacy) + writeFileSync(resolve(out, 'targets.json'), `${JSON.stringify({ schema: 1, base, defaults: manifest.defaultVersion, coverage: { inputs }, targets })}\n`) + return { targets: targets.length, inputs } +} + +if (import.meta.url === pathToFileURL(process.argv[1]).href) { + const args = process.argv.slice(2) + const options = { runtime: 'packages/api-model/src', catalogs: 'published-catalogs', locale: 'en' } + for (let i = 0; i < args.length; i += 2) { + const name = args[i].replace(/^--/, '') + if (!['directory', 'runtime', 'catalogs', 'bucket', 'locale'].includes(name) || !args[i + 1]) throw new Error(`Unknown or missing argument: ${args[i]}`) + options[name] = args[i + 1] + } + if (!options.directory) throw new Error('Usage: compose-published-inventory.mjs --directory dist [--bucket BUCKET] [--catalogs DIRECTORY] [--runtime DIRECTORY]') + console.log(JSON.stringify(await compose(options))) +} diff --git a/scripts/example_tmux_sandbox.py b/scripts/example_tmux_sandbox.py index 03a2300ab..67b181f4f 100644 --- a/scripts/example_tmux_sandbox.py +++ b/scripts/example_tmux_sandbox.py @@ -4,10 +4,11 @@ real tmux binary. It does not add setup code or change the copied program. """ -import json +from __future__ import annotations + import errno +import json import os -from pathlib import Path import shutil import socket import stat @@ -15,21 +16,34 @@ import sys import tempfile import time +from pathlib import Path +from typing import TypedDict + + +class SocketSelection(TypedDict): + """The endpoint and prior ownership recorded by the tmux wrapper.""" + + socket: str + existed: bool + aliasOf: str | None def socket_running(path): + """Report whether a server still accepts connections at this socket.""" with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as client: client.settimeout(0.2) try: client.connect(str(path)) - return True except OSError as error: if error.errno in (errno.ENOENT, errno.ECONNREFUSED): return False raise + else: + return True def wait_for_socket_exit(path, seconds=2): + """Wait for an observed server to stop accepting connections.""" deadline = time.monotonic() + seconds while socket_running(path): if time.monotonic() >= deadline: @@ -39,14 +53,20 @@ def wait_for_socket_exit(path, seconds=2): class ExampleTmuxSandbox: + """Observe explicit tmux endpoints and retire only owned servers.""" + def __init__(self, output, env): - self.binary = str(Path(shutil.which('tmux', path=env['PATH'])).resolve()) - self.directory = Path(tempfile.mkdtemp(prefix='ltx-example-')) - self.trace = output / 'tmux-commands.jsonl' - bindir = output / 'native-tools' + binary = shutil.which("tmux", path=env["PATH"]) + if binary is None: + msg = "tmux is required to verify native examples" + raise FileNotFoundError(msg) + self.binary = str(Path(binary).resolve()) + self.directory = Path(tempfile.mkdtemp(prefix="ltx-example-")) + self.trace = output / "tmux-commands.jsonl" + bindir = output / "native-tools" bindir.mkdir() - wrapper = bindir / 'tmux' - wrapper.write_text(f'''#!{sys.executable} + wrapper = bindir / "tmux" + wrapper.write_text(f"""#!{sys.executable} import json, os, sys from pathlib import Path @@ -94,52 +114,69 @@ def __init__(self, output, env): os.write(descriptor, (entry + '\\n').encode()) os.close(descriptor) os.execv({self.binary!r}, [{self.binary!r}, *sys.argv[1:]]) -''') +""") wrapper.chmod(0o700) - self.env = dict(env, PATH=f'{bindir}{os.pathsep}{env["PATH"]}', - TMUX_TMPDIR=str(self.directory), - TMUX_BIN=str(wrapper), LIBTMUX_TMUX=str(wrapper)) + self.env = dict( + env, + PATH=f"{bindir}{os.pathsep}{env['PATH']}", + TMUX_TMPDIR=str(self.directory), + TMUX_BIN=str(wrapper), + LIBTMUX_TMUX=str(wrapper), + ) def finish(self, require_cleanup): - first = {} + """Record cleanup and stop only servers created by this example.""" + first: dict[str, SocketSelection] = {} if self.trace.exists(): for line in self.trace.read_text().splitlines(): entry = json.loads(line) - first.setdefault(entry['socket'], entry) + first.setdefault(entry["socket"], entry) endpoints = [] for name, entry in first.items(): path = Path(name) running = not wait_for_socket_exit(path) if require_cleanup else socket_running(path) - row = dict(socket=name, preexisting=entry['existed'], - aliasOf=entry.get('aliasOf'), runningAfterProgram=running) + row = { + "socket": name, + "preexisting": entry["existed"], + "aliasOf": entry.get("aliasOf"), + "runningAfterProgram": running, + } # Never stop a server that existed before this example selected it. - if not entry['existed']: + if not entry["existed"]: if running: result = subprocess.run( - [self.binary, '-S', name, 'kill-server'], - env=self.env, capture_output=True, text=True, timeout=5, + [self.binary, "-S", name, "kill-server"], + env=self.env, + capture_output=True, + text=True, + timeout=5, + check=False, ) - row['harnessStopExit'] = result.returncode - row['harnessStopStderr'] = result.stderr - row['runningAfterHarness'] = not wait_for_socket_exit(path) - if not row['runningAfterHarness']: - if path.exists() and stat.S_ISSOCK(path.lstat().st_mode): - path.unlink(missing_ok=True) + row["harnessStopExit"] = result.returncode + row["harnessStopStderr"] = result.stderr + row["runningAfterHarness"] = not wait_for_socket_exit(path) + if ( + not row["runningAfterHarness"] + and path.exists() + and stat.S_ISSOCK(path.lstat().st_mode) + ): + path.unlink(missing_ok=True) else: - row['runningAfterHarness'] = running + row["runningAfterHarness"] = running endpoints.append(row) # Only this directory was created by the harness. A program's socket # path alone does not establish ownership of its parent directory. - if not any(row['runningAfterHarness'] for row in endpoints): + if not any(row["runningAfterHarness"] for row in endpoints): shutil.rmtree(self.directory) - return dict( - required=require_cleanup, - endpoints=endpoints, - passed=bool(endpoints) and all( - (not row['preexisting'] or row['aliasOf'] in first) and - not row['runningAfterHarness'] and - (not require_cleanup or not row['runningAfterProgram']) + return { + "required": require_cleanup, + "endpoints": endpoints, + "passed": bool(endpoints) + and all( + (not row["preexisting"] or row["aliasOf"] in first) + and not row["runningAfterHarness"] + and (not require_cleanup or not row["runningAfterProgram"]) for row in endpoints ), - scope='Observed owned sockets after program exit, before harness retirement.', - ) + "scope": "Observed owned sockets after program exit, before harness retirement.", + } diff --git a/scripts/publish-inventories.mjs b/scripts/publish-inventories.mjs new file mode 100644 index 000000000..5b9cadd83 --- /dev/null +++ b/scripts/publish-inventories.mjs @@ -0,0 +1,12 @@ +#!/usr/bin/env node +import { readFileSync } from 'node:fs' +import { resolve } from 'node:path' +import { fileURLToPath } from 'node:url' +import { publishAssembledInventories } from '../site/src/lib/inventory-publisher.ts' + +const [directory, base] = process.argv.slice(2) +if (!directory || !base?.startsWith('/') || !base.endsWith('/')) throw new Error('Usage: publish-inventories.mjs OUTPUT /url/prefix/') +const out = resolve(directory) +const manifest = JSON.parse(readFileSync(resolve(out, 'versions.json'), 'utf8')) +const aliases = JSON.parse(readFileSync(fileURLToPath(new URL('../site/src/data/inventory-aliases.json', import.meta.url)), 'utf8')) +console.log(JSON.stringify(publishAssembledInventories(out, base, manifest, aliases))) diff --git a/scripts/read-elixir-toolchain.py b/scripts/read-elixir-toolchain.py index f9b7076ee..e34a395af 100755 --- a/scripts/read-elixir-toolchain.py +++ b/scripts/read-elixir-toolchain.py @@ -9,38 +9,47 @@ Nothing is written when a version is missing, inexact or not selected. """ +from __future__ import annotations + import json import os import pathlib import re import sys -PATTERNS = {'erlang': r'[0-9]+\.[0-9]+(?:\.[0-9]+){0,2}', 'elixir': r'[0-9]+\.[0-9]+\.[0-9]+'} +PATTERNS = {"erlang": r"[0-9]+\.[0-9]+(?:\.[0-9]+){0,2}", "elixir": r"[0-9]+\.[0-9]+\.[0-9]+"} def read(source: pathlib.Path) -> dict[str, str]: - reference = json.loads((source / 'priv/tmux/support.json').read_text())['reference'] - selected = {'erlang': reference.get('otp'), 'elixir': reference.get('elixir')} + """Return the exact pinned versions, or raise when one is missing or unselected.""" + reference = json.loads((source / "priv/tmux/support.json").read_text())["reference"] + selected = {"erlang": reference.get("otp"), "elixir": reference.get("elixir")} for tool, version in selected.items(): if not isinstance(version, str) or not re.fullmatch(PATTERNS[tool], version): - raise ValueError(f'elixir: selected source must pin an exact {tool} version') - lines = [line.split() for line in (source / '.tool-versions').read_text().splitlines()] + message = f"elixir: selected source must pin an exact {tool} version" + raise ValueError(message) + lines = [line.split() for line in (source / ".tool-versions").read_text().splitlines()] for tool, version in selected.items(): selectors = [line for line in lines if line and line[0] == tool] - if len(selectors) != 1 or len(selectors[0]) != 2 or not ( - version == selectors[0][1] or version.startswith(selectors[0][1] + '.')): - raise ValueError(f'elixir: .tool-versions must select the pinned {tool} {version}') + if ( + len(selectors) != 1 + or len(selectors[0]) != 2 + or not (version == selectors[0][1] or version.startswith(selectors[0][1] + ".")) + ): + message = f"elixir: .tool-versions must select the pinned {tool} {version}" + raise ValueError(message) return selected def main() -> None: + """Append the exact versions to the GitHub Actions output file.""" if len(sys.argv) != 2: raise SystemExit(__doc__) selected = read(pathlib.Path(sys.argv[1])) - with open(os.environ['GITHUB_OUTPUT'], 'a') as output: + with pathlib.Path(os.environ["GITHUB_OUTPUT"]).open("a") as output: output.write(f"otp-version={selected['erlang']}\n") output.write(f"elixir-version={selected['elixir']}\n") -if __name__ == '__main__': +if __name__ == "__main__": main() diff --git a/scripts/test-all.sh b/scripts/test-all.sh index e53e16f17..f10dbcb5c 100755 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -314,6 +314,8 @@ fi fi [[ -f "$out$preview/en/index.html" ]] || { echo "missing audited assembly: $out$preview/en" >&2; exit 1; } +step 'Sphinx inventories and rendered destinations' +uv run --locked python scripts/check-inventories.py "$out$preview/en" "$preview/en/" if [[ -n "$preview" ]]; then [[ -f "$LIBTMUX_DOCS_TEST_PRODUCTION_SITE/en/sitemap-index.xml" ]] || { echo 'missing production root render' >&2; exit 1; } step 'preview isolation' diff --git a/scripts/test-loop.mjs b/scripts/test-loop.mjs index a1da48243..b1730461b 100644 --- a/scripts/test-loop.mjs +++ b/scripts/test-loop.mjs @@ -70,6 +70,7 @@ try { if (loop !== 'inner') checks.push( pnpm('run', '--recursive', 'lint'), pnpm('exec', 'oxlint', 'scripts'), + pnpm('run', 'lint:python'), node('scripts/check-api-links.mjs'), node('scripts/check-nav.mjs'), node('scripts/check-example-blocks.mjs'), @@ -84,6 +85,7 @@ try { if (loop === 'outer') checks.push( node('scripts/gen-example-sources.mjs', '--check'), pnpm('run', '--recursive', 'type-check'), + pnpm('run', 'type-check:python'), node('site/scripts/check-dev.mjs', '--sample'), ) await Promise.all(checks) diff --git a/site/package.json b/site/package.json index 7a415c51b..5b21ec67a 100644 --- a/site/package.json +++ b/site/package.json @@ -28,6 +28,7 @@ "mdast-util-from-markdown": "2.1.0", "mdast-util-gfm": "^3.1.0", "mdast-util-to-markdown": "^2.2.0", + "parse5": "7.3.0", "prettier": "3.9.10", "schema-dts": "^2.1.0" }, diff --git a/site/scripts/check-dev-sample.mjs b/site/scripts/check-dev-sample.mjs index 56630f45d..2575ebde4 100644 --- a/site/scripts/check-dev-sample.mjs +++ b/site/scripts/check-dev-sample.mjs @@ -187,6 +187,12 @@ export async function checkDevSample(browser, base) { // Vite's first dependency reload may replace the document while fonts load. await page.waitForFunction(() => document.fonts.status === 'loaded') assert.equal(await page.locator('main h1').count(), 1, `${path}: one main heading`) + const rootPath = new URL(base).pathname.replace(/\/$/, '') + const inventoryLinks = await page.locator('footer a[href$=".inv"]').evaluateAll((links) => links.map((link) => link.getAttribute('href'))) + assert.deepEqual(inventoryLinks, path === 'api-example-probe/' + ? [`${rootPath}/ts/latest/objects.inv`, `${rootPath}/objects-full.inv`] + : [...(path.startsWith('tmux/') ? [`${rootPath}/tmux/objects.inv`] : []), `${rootPath}/objects-full.inv`], `${path}: inventory links follow page scope`) + assert.equal(await page.getByRole('link', { name: 'About Sphinx inventories', exact: true }).getAttribute('href'), `${rootPath}/meta/intersphinx/`) for (const width of [1440, 768, 390]) { await page.setViewportSize({ width, height: 1000 }) const layout = await page.evaluate(() => { @@ -216,6 +222,20 @@ export async function checkDevSample(browser, base) { } if (path === 'api-example-probe/') { await checkDeclarationControlsLevel(page.locator('dt.gp-sphinx-api-header').first(), `${path}/${width}: declaration controls`) + const help = page.getByRole('link', { name: 'About Sphinx inventories', exact: true }) + await help.focus() + const tip = page.locator('footer #inventory-tooltip') + await tip.waitFor({ state: 'visible' }) + const bounds = await tip.boundingBox() + assert(bounds && bounds.x >= 0 && bounds.x + bounds.width <= width, `${width}: inventory tooltip fits the viewport`) + const guide = tip.getByRole('link', { name: 'Learn how to link to this documentation.', exact: true }) + assert.equal(await guide.getAttribute('href'), `${rootPath}/meta/intersphinx/`) + await page.keyboard.press('Tab') + assert(await guide.evaluate((node) => node === document.activeElement), 'Tab reaches the inventory setup link') + await page.keyboard.press('Escape') + await tip.waitFor({ state: 'hidden' }) + assert(await help.evaluate((node) => node === document.activeElement), 'Escape dismisses inventory help and returns focus to its trigger') + await help.evaluate((node) => node.blur()) } } if (path.startsWith('tmux/')) { @@ -237,7 +257,7 @@ export async function checkDevSample(browser, base) { const identity = await declaration.getAttribute('id') assert.equal(await declaration.locator('a.headerlink').getAttribute('href'), `#${identity}`, 'A declaration permalink lands on its signature bar') - assert.equal(await declaration.locator('.section-anchor-alias').getAttribute('id'), `${identity}.declaration`, + assert.equal(await declaration.locator(':scope > .section-anchor-alias').getAttribute('id'), `${identity}.declaration`, 'The previous declaration fragment remains available') const equivalents = page.locator('.api-elsewhere a') const hrefs = await equivalents.evaluateAll((links) => links.map((link) => link.getAttribute('href'))) @@ -256,6 +276,11 @@ export async function checkDevSample(browser, base) { assert(await example.locator('[data-home-view="full"]').isVisible()) assert.equal(new URL(page.url()).searchParams.get('cleanup'), '1') for (const width of [1440, 628, 390]) await checkHomeResponsiveLayout(page, width, 'rs') + await page.getByRole('link', { name: 'About Sphinx inventories', exact: true }).focus() + await page.keyboard.press('Tab') + await page.keyboard.press('Enter') + await page.waitForURL(`${base}/meta/intersphinx/`) + assert.equal(await page.locator('main h1').innerText(), 'Link to libtmux from Sphinx', 'The inventory help link opens the setup guide') assert.deepEqual(errors, [], 'Sampled pages have no runtime errors') console.log('Fresh browser sample: prose, MCP table, API equivalents, phone picker, header menu sections, status badges and homepage controls PASS') } finally { diff --git a/site/scripts/check-dev.mjs b/site/scripts/check-dev.mjs index c6bc0b733..0045315e7 100644 --- a/site/scripts/check-dev.mjs +++ b/site/scripts/check-dev.mjs @@ -727,7 +727,7 @@ async function checkReferenceAndHeroes(browser, base) { `${qualifiedName}: complete source name remains in accessible HTML`) if (!qualifiedName.endsWith('.sessions')) { const declaration = page.locator(`dt[data-symbol-id="${legacyId}"]`) - assert.equal(await declaration.locator('.section-anchor-alias').getAttribute('id'), `${legacyId}.declaration`) + assert.equal(await declaration.locator(':scope > .section-anchor-alias').getAttribute('id'), `${legacyId}.declaration`) for (const width of [1440, 390]) { await page.setViewportSize({ width, height: 900 }) const signature = declaration.locator('.gp-sphinx-api-signature:visible') diff --git a/site/src/components/SiteFooter.astro b/site/src/components/SiteFooter.astro index 850114b62..7223f0b6b 100644 --- a/site/src/components/SiteFooter.astro +++ b/site/src/components/SiteFooter.astro @@ -5,6 +5,7 @@ import { PORTS, portHomeUrl } from '../lib/ports' import { rawSourceUrl, type PageSource } from '../lib/markdown-twins' import { withRoot } from '../lib/site-root' import { defaultVersionFor } from '../lib/versions' +import { inventoryLinks } from '../lib/inventory-links' /** * The shared footer. Its last line is the one gp-sphinx gives every page of @@ -13,6 +14,9 @@ import { defaultVersionFor } from '../lib/versions' */ interface Props { locale: Locale + port?: string + version?: string + pagePath?: string /** Generated native indexes may have neither a source file nor a Markdown twin. */ source?: PageSource markdownHref?: string @@ -26,7 +30,8 @@ interface Props { compact?: boolean } -const { locale, source, markdownHref, llmsRoot, githubUrl, flush = false, compact = false } = Astro.props +const { locale, port, version, pagePath, source, markdownHref, llmsRoot, githubUrl, flush = false, compact = false } = Astro.props +const inventories = inventoryLinks(port, version, pagePath) --- + + + + diff --git a/site/src/components/api/ApiCommandParameters.astro b/site/src/components/api/ApiCommandParameters.astro index ba3d80a94..fbf03c27c 100644 --- a/site/src/components/api/ApiCommandParameters.astro +++ b/site/src/components/api/ApiCommandParameters.astro @@ -17,7 +17,7 @@ const anchor = (param: Param) => params.find((p) => p.name === param.name) === p ---
    - {specific.map((p) =>
  • + {specific.map((p) =>
  • -{p.name}{p.type && <>{' ('}{')'}} # @@ -32,7 +32,7 @@ const anchor = (param: Param) => params.find((p) => p.name === param.name) === p

    Common parameters {new Set(common.map((p) => p.name)).size}

    PowerShell supplies these parameters. See {POWER_SHELL_COMMON_HELP_TITLE} for their effects.

      - {common.map((p) =>
    • + {common.map((p) =>
    • -{p.name}{p.type && <>{' ('}{')'}} # diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index 6e2049df3..d799dbfdd 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -1,5 +1,6 @@ --- -import { boundLabel, parameterId, qualifiedNameOf, typeParameterId, typeParameterList, type ApiSymbol, type SymbolIndex } from '@libtmux/api-model' +import { boundLabel, parameterId, qualifiedNameOf, typeParameterId, typeParameterList, type ApiSymbol, type SymbolIndex, type SymbolKind } from '@libtmux/api-model' +import { apiInventoryAttributes } from '../../lib/inventory-targets' import { API_MODELS, mentionsOf, referenceAlternatives } from '../../lib/api-models' import { productApiIndex } from '../../lib/product-api' import { defaultVersionFor } from '../../lib/versions' @@ -13,7 +14,7 @@ import ApiDoc from './ApiDoc.astro' import ApiProse from './ApiProse.astro' import ApiType from './ApiType.astro' import { asideFor } from '../../lib/aside' -import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMethodDetails, anonymousDeclarationLabel, nativeSignatureText as unformattedNativeSignatureText, parameterBindingText, usesNativeSignatures } from '../../lib/api-sections' +import { apiCommandFacts, apiCommandRelatedLinks, apiOverloadId, apiOverloadIdentity, apiEntryFields, apiMethodDetails, anonymousDeclarationLabel, nativeSignatureText as unformattedNativeSignatureText, parameterBindingText, usesNativeSignatures } from '../../lib/api-sections' import { tmuxCommandsFor, tmuxManualUrl } from '../../lib/tmux-manual-data' import { tmuxCommandItems, tmuxCommandRows, tmuxCommandSeparator, tmuxSymbolSends } from '../../lib/tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from '../../lib/tmux-catalog' @@ -37,6 +38,7 @@ import { pythonSignatureLayout } from '../../lib/python-code-layout' */ interface Props { symbol: ApiSymbol + parentKind?: SymbolKind index: SymbolIndex /** Repository blob URL builder, for the source link. */ sourceUrl?: (symbol: ApiSymbol) => string | undefined @@ -77,9 +79,10 @@ interface Props { /** Previous fragment for the same declaration. */ legacyId?: string } -const { symbol, index, sourceUrl, port, language = port, manualLinks, catalogLinks, alternativesFor, heading = false, member = false, +const { symbol, parentKind, index, sourceUrl, port, language = port, manualLinks, catalogLinks, alternativesFor, heading = false, member = false, showSummary = true, showBases = true, legacyId, nameHref } = Astro.props as Props const anchor = symbol.publicId ?? symbol.id +const inventory = apiInventoryAttributes(symbol, language ?? '', parentKind ?? (symbol.parent ? API_MODELS[port ?? '']?.symbols.find((parent) => parent.id === symbol.parent)?.kind : undefined)) const kind = symbol.kind const nativeEntries = language === 'c' ? symbol.signatures.filter((signature) => signature.raw) : symbol.signatures const signatureLayouts = await apiSignatureLayouts(symbol, language) @@ -89,6 +92,15 @@ const nativeSignatureText: typeof unformattedNativeSignatureText = (entry, signa // A Swift layout is the declaration, even where the port documents few parameters. // A Python layout only spaces the parameter list, which keeps its own markup. const nativeSignatures = usesNativeSignatures(symbol, language) || (language === 'swift' && signatureLayouts.size > 0) +const signatureIdentities = new Set() +const signatureTargets = (nativeSignatures ? nativeEntries : symbol.signatures).map((signature) => { + const identity = apiOverloadIdentity(signature) + if (signatureIdentities.has(identity)) return {} + signatureIdentities.add(identity) + return { id: apiOverloadId(symbol, signature), 'data-inventory-category': 'signature', + 'data-inventory-id': `${anchor}.signature:${identity}`, + 'data-inventory-display': signature.label || signature.raw || `${anchor} signature` } +}) /** * The Sphinx domain this port's symbols belong to. @@ -286,6 +298,9 @@ const hasBody = ---

      {symbol.name} = )} - {nativeSignatures ? (nativeEntries.length ? nativeEntries.map((sig) => ( + {nativeSignatures ? (nativeEntries.length ? nativeEntries.map((sig, i) => ( 1 ? `, overload ${symbol.signatures.indexOf(sig) + 1} of ${symbol.signatures.length}` : ''}` : undefined} @@ -339,8 +356,9 @@ const hasBody = ) } { - symbol.signatures.map((sig) => ( + symbol.signatures.map((sig, i) => ( <> + {folds(sig) ? (
      @@ -479,7 +497,7 @@ const hasBody = {methods.map(({ id, label, signature }) => { const methodSource = signature.source && sourceUrl?.({ ...symbol, source: signature.source }) return ( -
      +
      {symbol.signatures.length > 1 ?

      {methodSource && [source]}#

      : methodSource && methodSource !== source &&

      [source]

      } {signature.extension &&

      Available when {signature.extension} is loaded.

      } @@ -612,7 +630,7 @@ const hasBody =
      {symbol.command ? :
        {params.map((p, i) => ( -
      • entry.name === p.name) === i ? parameterId(symbol, p.name) : undefined}> +
      • entry.name === p.name) === i ? parameterId(symbol, p.name) : undefined} data-inventory-category="parameter" data-inventory-id={parameterId(symbol, p.name)} data-inventory-display={`${anchor} (${p.name})`}>

        {/* One line: Astro turns a line break between these parts into a space. */} diff --git a/site/src/components/api/ApiGlossaryContent.astro b/site/src/components/api/ApiGlossaryContent.astro index d5a13a003..f15b4295a 100644 --- a/site/src/components/api/ApiGlossaryContent.astro +++ b/site/src/components/api/ApiGlossaryContent.astro @@ -11,7 +11,7 @@ const jsonHref = `${glossary.path.slice(0, -1)}.json`

        {group.title}#

        {group.description}

        {group.terms.map((term) =>
        -

        {term.id}#

        +

        {term.id}#

        {term.definition}

        {term.detail &&

        {term.detail}

        }

        References: {term.references.map((reference, index) => <> diff --git a/site/src/components/api/ApiReference.astro b/site/src/components/api/ApiReference.astro index 596ee2c3d..723e34620 100644 --- a/site/src/components/api/ApiReference.astro +++ b/site/src/components/api/ApiReference.astro @@ -12,7 +12,7 @@ import { apiGlossary, apiGlossaryHeadings, API_GLOSSARY_TITLE, apiGlossaryHref } import ApiQualifiedName from '../../components/api/ApiQualifiedName.astro' import ApiType from '../../components/api/ApiType.astro' import ApiPageContents from '../../components/api/ApiPageContents.astro' -import { apiEntryFields, apiEntrySections, apiMemberGroups, hasScalarMembers, relatedTypeLinks, type ApiSection } from '../../lib/api-sections' +import { apiEntryFields, apiEntrySections, apiMemberGroups, apiMemberSections, memberTableColumns, relatedTypeLinks, splitFieldMembers, type ApiSection } from '../../lib/api-sections' import PageToolbar from '../../components/PageToolbar.astro' import PagePortSwitcher from '../../components/PagePortSwitcher.astro' import DocumentationContext from '../../components/docs/DocumentationContext.astro' @@ -20,6 +20,7 @@ import type { PagePortLink } from '../../lib/page-port-links' import { pagePortsFor } from '../../lib/page-ports-for' import { pageBreadcrumbs } from '../../lib/sidebar' import BaseLayout from '../../layouts/BaseLayout.astro' +import { apiInventoryIdentity } from '../../lib/inventory-targets' import { withRoot } from '../../lib/site-root' import { API_MODELS, API_NAV, PORT_NAME, indexFor, isMemberOwner, ownersOf, pageSlug, referenceAlternatives, topLevelTypesOf } from '../../lib/api-models' import { PORT_BY_SLUG, referenceUrl } from '../../lib/ports' @@ -351,18 +352,21 @@ const legacyIndexAnchors = (symbol: ApiSymbol) => [...new Set([ const inherited = members.filter((m) => m.inheritedFrom) const listed = members.filter((m) => !m.inheritedFrom || memberTier(m, signals) === 'parent') const otherInherited = inherited.filter((m) => memberTier(m, signals) !== 'parent') -const memberGroups = apiMemberGroups(listed, signals) -const scalarMembers = Boolean(owner && hasScalarMembers(owner, listed)) -const showMemberGroups = !scalarMembers && memberGroups.length > 1 -const membersLabel = owner?.variant || (language === 'julia' && owner?.kind === 'struct' && listed.every((member) => member.kind === 'property')) ? 'Fields' : 'Members' +// A type with typed fields and other members shows the fields as a table, then the rest as the usual list. +const split = owner ? splitFieldMembers(owner, listed, port) : { fields: [] as ApiSymbol[], rest: listed } +const fieldsAndRest = split.fields.length > 0 && split.rest.length > 0 +const shown = fieldsAndRest ? split.rest : listed +const memberGroups = apiMemberGroups(shown, signals) +const tableColumns = owner ? memberTableColumns(owner, listed, port) : undefined +const showMemberGroups = !tableColumns && memberGroups.length > 1 +const membersLabel = owner?.variant || tableColumns === 'fields' || (language === 'julia' && owner?.kind === 'struct' && shown.every((member) => member.kind === 'property')) ? 'Fields' : 'Members' const glossaryContext = apiGlossary(`${refBase}glossary/`) const pageSections: ApiSection[] = glossary ? apiGlossaryHeadings(glossaryContext.path).map((heading) => ({ id: heading.slug, label: heading.text, nested: heading.depth === 3, })) : owner ? [ { id: 'api-overview', label: 'Overview' }, ...apiEntrySections(owner, language, index), - ...(listed.length ? [{ id: 'api-members', label: membersLabel, count: listed.length }, - ...(showMemberGroups ? memberGroups.map((group) => ({ id: group.id, label: group.label, nested: true })) : [])] : []), + ...apiMemberSections({ fields: fieldsAndRest ? split.fields.length : 0, members: shown.length, label: membersLabel, groups: showMemberGroups ? memberGroups : [] }), ...(otherInherited.length ? [{ id: 'api-inherited', label: 'Inherited members', count: otherInherited.length }] : []), ] : [] const relationshipSections = owner && model ? apiRelationshipSections(model, owner) : [] @@ -389,6 +393,7 @@ const bases = owner && 'extends' in owner ? owner.extends ?? [] : [] --- 0 && ( + {fieldsAndRest && owner && ( +

        +

        Fields{split.fields.length}#

        + +
        + )} + {shown.length > 0 && (
        -

        {membersLabel}{listed.length}#

        - {scalarMembers ? : memberGroups.map((group) =>
        +

        {membersLabel}{shown.length}#

        + {tableColumns ? : memberGroups.map((group) =>
        {showMemberGroups &&

        {group.label}{group.members.length}#

        }
          {group.members.map((m) => ( diff --git a/site/src/components/api/ApiScalarMembers.astro b/site/src/components/api/ApiScalarMembers.astro index dcec3300a..bb0177710 100644 --- a/site/src/components/api/ApiScalarMembers.astro +++ b/site/src/components/api/ApiScalarMembers.astro @@ -1,22 +1,26 @@ --- import type { ApiSymbol, SymbolIndex } from '@libtmux/api-model' import ApiDoc from './ApiDoc.astro' +import ApiType from './ApiType.astro' interface Props { owner: ApiSymbol members: ApiSymbol[] index: SymbolIndex hrefFor: (symbol: ApiSymbol) => string + /** `fields` swaps the Value column for a linked Type column. */ + columns?: 'value' | 'fields' } -const { owner, members, index, hrefFor } = Astro.props +const { owner, members, index, hrefFor, columns = 'value' } = Astro.props +const fields = columns === 'fields' --- - - + + {members.map((member) => - + )} diff --git a/site/src/components/api/ProductApiPage.astro b/site/src/components/api/ProductApiPage.astro index 5470887a7..60dcba3f6 100644 --- a/site/src/components/api/ProductApiPage.astro +++ b/site/src/components/api/ProductApiPage.astro @@ -27,6 +27,7 @@ const alternativesFor = (entry: ApiSymbol) => productApiAlternatives(model, entr ---
          diff --git a/site/src/components/docs/DocPage.astro b/site/src/components/docs/DocPage.astro index cd4297e57..c7b4e50be 100644 --- a/site/src/components/docs/DocPage.astro +++ b/site/src/components/docs/DocPage.astro @@ -120,6 +120,9 @@ const isWorkspaceOverview = entry.data.product === 'workspace' cancelAnimationFrame(frame), { once: true }) update() layoutBeforeAppearance(update) + // A pinned class row varies in height, so anchored members measure it for their scroll margin. + const classRows = [...document.querySelectorAll('section > dl.py.class.gp-sphinx-api-container')] + .flatMap((owner) => { const row = owner.querySelector(':scope > dt'); return row ? [{ owner, row }] : [] }) + const measureClassRows = () => { + for (const { owner, row } of classRows) owner.style.setProperty('--native-class-row-height', `${row.getBoundingClientRect().height}px`) + } + measureClassRows() + document.documentElement.setAttribute('data-native-class-rows', '') + layoutBeforeAppearance(measureClassRows) + if (typeof ResizeObserver === 'function' && classRows.length) { + const rowObserver = new ResizeObserver(measureClassRows) + for (const { row } of classRows) rowObserver.observe(row) + signal.addEventListener('abort', () => rowObserver.disconnect(), { once: true }) + } document.addEventListener('gp-sphinx:navigated', () => { queueMicrotask(() => layoutBeforeAppearance(update)) }, { signal }) diff --git a/site/src/components/docs/Sidebar.astro b/site/src/components/docs/Sidebar.astro index 6cd9cec56..147d8fe6e 100644 --- a/site/src/components/docs/Sidebar.astro +++ b/site/src/components/docs/Sidebar.astro @@ -11,7 +11,7 @@ */ import { createHash } from 'node:crypto' import { getSidebar, isActivePath, type SidebarItem } from '../../lib/sidebar' -import { DEFAULT_LOCALE, type Locale } from '../../i18n/locales' +import { DEFAULT_LOCALE, localeSourcePath, type Locale } from '../../i18n/locales' import SidebarLink from './SidebarLink.astro' import SidebarSection from './SidebarSection.astro' import { PORT_BY_SLUG, type DocProduct } from '../../lib/ports' @@ -34,7 +34,8 @@ const { port, product, version, currentPath, locale = DEFAULT_LOCALE, navigation const portInfo = port ? PORT_BY_SLUG[port] : undefined const surfaces = portInfo ? await getDocumentationSurfaces(portInfo.slug, version, locale) : [] const selected = surfaces.length ? currentDocumentation(surfaces, currentPath) : undefined -const pageItems: SidebarItem[] = navigation ?? (selected ? selected.section.items : await getSidebar(port, version, locale, product)) +const pageItems: SidebarItem[] = navigation ?? (selected ? selected.section.items : await getSidebar(port, version, locale, product, + /^meta(?:\/|$)/.test(localeSourcePath(currentPath, locale)) ? 'meta' : 'tmux')) // Root pages can supply a versioned manual or glossary tree of their own. const navigationScope = selected?.section.href ?? `tree:${createHash('sha256').update(JSON.stringify(pageItems)).digest('hex')}` --- diff --git a/site/src/components/mcp/McpSchema.astro b/site/src/components/mcp/McpSchema.astro index 5f68f782f..33260a015 100644 --- a/site/src/components/mcp/McpSchema.astro +++ b/site/src/components/mcp/McpSchema.astro @@ -29,10 +29,10 @@ const closed = typeof schema === 'object' && schema.additionalProperties === fal {rootConstraints && facts(schema).length > 0 &&
          {facts(schema).map(([key, value]) => <>
          {key === 'default' ? 'Default' : key}
          {value}
          )}
          } -{aliases.map((path) => )} +{aliases.map((path) => )} {composition &&

          {composition}

          } {rows.length > 0 &&
            - {rows.map((row) =>
          • + {rows.map((row) =>
          • {/* One line: Astro turns a line break between these parts into a space. */} diff --git a/site/src/components/mcp/ProtocolReference.astro b/site/src/components/mcp/ProtocolReference.astro index 16503d82d..69782c138 100644 --- a/site/src/components/mcp/ProtocolReference.astro +++ b/site/src/components/mcp/ProtocolReference.astro @@ -104,6 +104,7 @@ const introductions: Record = { const summaries = new Map(await Promise.all(entries.map(async (entry) => [entry.id, await renderToolDescription(toolSummary(entry.description), { port, version, objectId: entry.id })] as const))) ---

            @@ -132,8 +133,8 @@ const summaries = new Map(await Promise.all(entries.map(async (entry) => [entry. {object ? <> -
            -
            +
            +
            {declaration ? {declaration} : {object.name}({fields.length || parameterRows.length ? '\n' : ''}{fields.length ? fields.map(([name, value]) => {' '}{name}{schema?.required?.includes(name) ? '' : '?'}: {','}{'\n'}) : parameterRows.map((arg) => {' '}{arg.name}{arg.required ? '' : '?'},{'\n'})})} @@ -154,7 +155,7 @@ const summaries = new Map(await Promise.all(entries.map(async (entry) => [entry.

            {object.kind.startsWith('resource') ? 'URI parameters' : 'Arguments'}#

            {input ? <>{fields.length === 0 &&

            No named arguments.

            } : parameterRows.length ?
              - {parameterRows.map((arg) =>
            • + {parameterRows.map((arg) =>
            • {arg.name}{arg.required === false && '?'}#

              {arg.html &&
              }
              Binding
              {arg.binding}
              @@ -172,7 +173,7 @@ const summaries = new Map(await Promise.all(entries.map(async (entry) => [entry. {typeGroups.filter((group) => group.definitions.length).map((group) => <> {typeGroups.every((entry) => entry.definitions.length) &&

              {group.label}

              } {group.definitions.map((entry) =>
              -
              +

              {entry.name}{': '}

              diff --git a/site/src/content.config.ts b/site/src/content.config.ts index 231640d0f..2bd1dfff0 100644 --- a/site/src/content.config.ts +++ b/site/src/content.config.ts @@ -23,6 +23,12 @@ const docs = defineCollection({ loader: workspaceDocsLoader(), schema: z.looseObject({ title: z.string(), + inventoryId: z.string().min(1).optional(), + inventoryAliases: z.array(z.string().min(1)).optional(), + inventoryTables: z.record(z.string(), z.object({ + type: z.enum(['std:confval', 'std:cmdoption', 'std:envvar', 'std:term']), + identity: z.string().min(1), prefix: z.string().optional(), + })).optional(), description: z.string().optional(), /** Restricts a page to one port's section, e.g. 'py'. Omit for shared pages. */ port: z.string().optional(), diff --git a/site/src/content/_workspace-shared/workspace/cli/import-teamocil.md b/site/src/content/_workspace-shared/workspace/cli/import-teamocil.md index 90072f12f..a84d1d6db 100644 --- a/site/src/content/_workspace-shared/workspace/cli/import-teamocil.md +++ b/site/src/content/_workspace-shared/workspace/cli/import-teamocil.md @@ -1,4 +1,9 @@ --- +inventoryTables: + arguments-and-flags: + type: std:cmdoption + identity: cli/import-teamocil + prefix: "tmuxp import teamocil " description: Translate Teamocil windows and pane commands into a workspace document. product: workspace sidebar: diff --git a/site/src/content/_workspace-shared/workspace/cli/import-tmuxinator.md b/site/src/content/_workspace-shared/workspace/cli/import-tmuxinator.md index 044dfce62..942bae4f4 100644 --- a/site/src/content/_workspace-shared/workspace/cli/import-tmuxinator.md +++ b/site/src/content/_workspace-shared/workspace/cli/import-tmuxinator.md @@ -1,4 +1,9 @@ --- +inventoryTables: + arguments-and-flags: + type: std:cmdoption + identity: cli/import-tmuxinator + prefix: "tmuxp import tmuxinator " description: Translate a tmuxinator project into a workspace document. product: workspace sidebar: diff --git a/site/src/content/_workspace-shared/workspace/cli/load.md b/site/src/content/_workspace-shared/workspace/cli/load.md index d38a023c0..0ccaa5cd5 100644 --- a/site/src/content/_workspace-shared/workspace/cli/load.md +++ b/site/src/content/_workspace-shared/workspace/cli/load.md @@ -1,4 +1,9 @@ --- +inventoryTables: + arguments-and-flags: + type: std:cmdoption + identity: cli/load + prefix: "tmuxp load " description: Create or reuse a session from a workspace file, with explicit attachment and output choices. product: workspace sidebar: diff --git a/site/src/content/_workspace-shared/workspace/configuration/environment.md b/site/src/content/_workspace-shared/workspace/configuration/environment.md index 48958e623..1c9ba16e3 100644 --- a/site/src/content/_workspace-shared/workspace/configuration/environment.md +++ b/site/src/content/_workspace-shared/workspace/configuration/environment.md @@ -1,4 +1,9 @@ --- +inventoryTables: + cli-and-runtime-variables: + type: std:envvar + identity: environment + prefix: "" title: Workspace environment description: Configure the loader process and the variables available to pane commands. product: workspace diff --git a/site/src/content/_workspace-shared/workspace/configuration/panes.md b/site/src/content/_workspace-shared/workspace/configuration/panes.md index 8b5b004b7..261c1f1c4 100644 --- a/site/src/content/_workspace-shared/workspace/configuration/panes.md +++ b/site/src/content/_workspace-shared/workspace/configuration/panes.md @@ -1,4 +1,9 @@ --- +inventoryTables: + pane-keys: + type: std:confval + identity: schema/windows/items/panes/items + prefix: "pane." description: Choose pane commands, launch settings and focus. product: workspace sidebar: diff --git a/site/src/content/_workspace-shared/workspace/configuration/session.md b/site/src/content/_workspace-shared/workspace/configuration/session.md index 9ba21ed01..880bce945 100644 --- a/site/src/content/_workspace-shared/workspace/configuration/session.md +++ b/site/src/content/_workspace-shared/workspace/configuration/session.md @@ -1,4 +1,9 @@ --- +inventoryTables: + root-keys: + type: std:confval + identity: schema/session + prefix: "session." description: Name a workspace and apply session options and environment. product: workspace sidebar: diff --git a/site/src/content/_workspace-shared/workspace/configuration/windows.md b/site/src/content/_workspace-shared/workspace/configuration/windows.md index a80823f28..fc262daa1 100644 --- a/site/src/content/_workspace-shared/workspace/configuration/windows.md +++ b/site/src/content/_workspace-shared/workspace/configuration/windows.md @@ -1,4 +1,9 @@ --- +inventoryTables: + window-keys: + type: std:confval + identity: schema/windows/items + prefix: "window." description: Set window names, indexes, layouts, options and focus. product: workspace sidebar: diff --git a/site/src/content/docs/meta/intersphinx.md b/site/src/content/docs/meta/intersphinx.md new file mode 100644 index 000000000..73bffcc93 --- /dev/null +++ b/site/src/content/docs/meta/intersphinx.md @@ -0,0 +1,165 @@ +--- +title: Link to libtmux from Sphinx +description: Use Intersphinx inventories to reference libtmux APIs and documentation. +inventoryId: intersphinx +sidebar: + group: Linking and consuming our docs + order: 90 +--- + +Sphinx can resolve references to libtmux APIs, guides, headings, MCP objects, +schema fields, and other documented targets. The footer links to the full +inventory and the inventory for the page's port or tmux version. + +Browse [Intersphinx examples](/meta/intersphinx/examples/) for copyable RST +and MyST references paired with their destinations. + +For Markdown exports, manifests and crawler discovery, see +[Linking and consuming our docs](/meta/linking/). + +## Configure Intersphinx + +Enable the built-in extension in your project's `conf.py`: + +```python +extensions = ["sphinx.ext.intersphinx"] +intersphinx_mapping = { + "libtmux": ( + "https://libtmux.org/en/", + "https://libtmux.org/en/objects-full.inv", + ), + "libtmux-python": ("https://libtmux.org/en/py/latest/", None), + "tmux": ("https://libtmux.org/en/tmux/", None), + "tmux-3-7c": ("https://libtmux.org/en/tmux/3.7c/", None), +} +``` + +`None` discovers `objects.inv` at the configured base URL. The port mapping +above selects the Python `latest` tree. Copy the base URL of another port +or version to select its inventory. + +The full inventory includes shared documentation, the configured default +version of each assembled port, and distinct tmux reference versions. +It is generated after site assembly. Each port inventory includes the +rendered targets in that exact version. + +The tmux inventory includes the shared tmux guides and the latest CLI manual, +options, hooks, formats, and C source reference. A version mapping such as +`tmux-3-7c` includes only that release's manual, catalog, and C declarations. +Manual and C reference pages link to the same version inventory in the footer. +Use mapping names without dots when writing MyST reference roles. + +## Choose a reference + +Every exported target has a portable label that works with `std:ref`, without +installing a language or MCP domain. Open `targets.json` beside the inventory +and copy its `key`. Its `href` and `display` identify the destination. + +For example, the Python `libtmux.Pane` declaration has this reStructuredText +reference: + +```rst +:external+libtmux:ref:`Pane ` +``` + +With MyST enabled in your project, the same label works in Markdown: + +```markdown +{external+libtmux:ref}`Pane ` +``` + +Native Python, C++, JavaScript, and C objects also have aliases for their +built-in roles. A scoped Python inventory supports: + +```rst +:external+libtmux-python:py:class:`libtmux.Pane` +``` + +The tmux mapping provides native C roles and portable manual references: + +```rst +:external+tmux:c:struct:`cmd` +:external+tmux:ref:`capture-pane ` +``` + +Command options also work with Sphinx's program context: + +```rst +.. program:: tmuxp load + +:external+libtmux-python:option:`--append` +``` + +The full inventory qualifies native names by port, such as +`py:libtmux.Pane`. A fully qualified alias includes the product too: +`py:core:libtmux.Pane`. Short aliases are offered only when they identify +one destination. Configuration values, command options, environment +variables, and glossary terms use standard-domain types where their +renderers identify those semantics. + +## Stable labels + +A portable key contains `scope:product:category:identity`. Its encoding +preserves uppercase letters, punctuation, and Unicode, because `std:ref` +lowercases targets. `%50ane` and `pane` therefore remain distinct. +Copy the key from the catalog without decoding its percent escapes. + +Keys are independent of display titles and destination URLs. API public IDs, +protocol wire identities, JSON Pointers, named parameters, and native method +identities supply their names. Authored documents can retain `inventoryId` +and explicit HTML fragment IDs when their titles or routes change. +Contributors preserve renamed keys in the inventory alias catalog and use +the existing page redirect mechanism for retired routes. + +### Preserve published links + +If `meta/intersphinx.md` moves to `meta/linking.md`, retain its logical ID +and list the retired route in the new page's frontmatter: + +```yaml +inventoryId: intersphinx +aliases: + - meta/intersphinx +``` + +The document key remains `site:core:doc:intersphinx`, and the old route +redirects to the new page. Retain existing heading fragment IDs when their +text changes. + +When an identity or fragment changes intentionally, map the former keys to +current targets in `site/src/data/inventory-aliases.json`. For example, +choosing `inventoryId: linking` and changing `stable-labels` to +`stable-references` needs these entries: + +```json +[ + { + "scope": "site", + "from": "site:core:doc:intersphinx", + "to": "site:core:doc:linking" + }, + { + "scope": "site", + "from": "site:core:heading:intersphinx%23stable-labels", + "to": "site:core:heading:linking%23stable-references", + "fragment": "stable-labels" + } +] +``` + +The document entry preserves `std:ref` and `std:doc` references. The heading +entry preserves `std:ref`; `fragment` also installs the retired HTML anchor +at the new destination. Keep the route alias too: inventory aliases do not +redirect retired URLs. + +Copy `to` from the current target catalog. Retain earlier `from` entries +and update their destinations when renaming again. Former native role names, +such as a Python class name, need preservation in the native metadata. + +Existing `objects.inv` and `reference/objects.inv` endpoints remain compatibility +exports. New integrations should use the full inventory, a port's root +inventory, or a tmux root inventory to obtain the complete target catalog +and case-safe labels. + +See the [Sphinx Intersphinx documentation](https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html) +for named inventories and cross-reference syntax. diff --git a/site/src/content/docs/meta/intersphinx/examples.mdx b/site/src/content/docs/meta/intersphinx/examples.mdx new file mode 100644 index 000000000..10b12e63a --- /dev/null +++ b/site/src/content/docs/meta/intersphinx/examples.mdx @@ -0,0 +1,324 @@ +--- +title: Intersphinx examples +description: >- + Compare Sphinx and MyST references to APIs, tmux C declarations, hooks, + format variables, CLI commands and schema fields. +inventoryId: intersphinx-examples +sidebar: + group: Linking and consuming our docs + order: 91 +--- + +import { referenceHref } from '../../../../lib/api-models' + +Copy a reference and compare its destination below. These examples cover +native language roles, portable labels, full and scoped inventories, and +links into tmux C declarations, hooks, format variables and CLI commands. + +## Configure the inventories + +Add these mappings to your Sphinx project's `conf.py`: + +```python +extensions = ["sphinx.ext.intersphinx"] +intersphinx_mapping = { + "full": ( + "https://libtmux.org/en/", + "https://libtmux.org/en/objects-full.inv", + ), + "py": ("https://libtmux.org/en/py/latest/", None), + "tmux": ("https://libtmux.org/en/tmux/", None), + "tmux-3-7c": ("https://libtmux.org/en/tmux/3.7c/", None), +} +``` + +`None` discovers `objects.inv` at the mapping's base URL. The full inventory +uses each port's advertised default version. The `py` mapping explicitly +selects `latest`; `tmux` selects the latest tmux manual and C reference. +Use the root URL from an inventory's footer link when selecting a preview +or another release. + +## Native Python roles + +A named inventory selects the Python tree: + +```rst +:external+py:py:class:`libtmux.Pane` +``` + +Destination: [Pane](/py/latest/reference/libtmux-pane/#libtmux.Pane). + +The full inventory qualifies native names by port: + +```rst +:external+full:py:class:`py:libtmux.Pane` +``` + +Destination: Pane in the Python default version. + +For automatic lookup, use the ordinary role. A local definition takes +precedence over Intersphinx: + +```rst +:py:class:`libtmux.Pane` +``` + +Destination: [Pane](/py/latest/reference/libtmux-pane/#libtmux.Pane). + +## Portable labels + +Portable labels work with the standard reference role, including languages +that have no built-in Sphinx domain. Copy the key from `targets.json`. + +```rst +:external+full:ref:`Pane ` +:external+py:ref:`Pane ` +``` + +Destinations: Full inventory: Pane, +[Scoped inventory: Pane](/py/latest/reference/libtmux-pane/#libtmux.Pane). + +The external role searches the configured inventories without selecting one. +This native name is unqualified only in the scoped Python inventory: + +```rst +:external:py:class:`libtmux.Pane` +``` + +Destination: [Pane](/py/latest/reference/libtmux-pane/#libtmux.Pane). + +## MyST roles and inventory URLs + +Enable `myst_parser` alongside `sphinx.ext.intersphinx` for Markdown sources. +Named roles accept the same targets as reStructuredText: + +```markdown +{external+py:py:class}`libtmux.Pane` +``` + +Destination: [Pane](/py/latest/reference/libtmux-pane/#libtmux.Pane). + +Portable labels retain their percent escapes inside reference roles: + +```markdown +{external+full:ref}`Pane ` +``` + +Destination: Pane in the Python default version. + +MyST's inventory URL syntax also supports native aliases: + +```markdown +[Pane](inv:py:py:class#libtmux.Pane) +``` + +Destination: [Pane](/py/latest/reference/libtmux-pane/#libtmux.Pane). + +Use role syntax for percent-encoded portable keys: MyST normalizes escapes +in `inv:` URLs. Keep mapping names free of dots, as in `tmux-3-7c`, so MyST +can parse the role name. When using an inventory URL, specify its domain and +object type if a name is both a document and a label. + +## tmux C declarations + +The tmux mapping provides Sphinx's built-in C roles: + +```rst +:external+tmux:c:struct:`cmd` +:external+tmux:c:func:`cmd_find_target` +``` + +Destinations: [cmd](/tmux/latest/reference/c-struct-cmd/#c%3Astruct%3Acmd), +[cmd_find_target](/tmux/latest/reference/c-function-cmd_find_target/#c%3Afunction%3Acmd_find_target). + +Select a release with its own mapping. The full inventory also offers +version-qualified native aliases: + +```rst +:external+tmux-3-7c:c:func:`cmd_find_target` +:external+full:c:func:`tmux@3.7c:cmd_find_target` +:external+full:c:func:`tmux@latest:cmd_find_target` +``` + +Destinations: [Scoped: cmd_find_target in 3.7c](/tmux/3.7c/reference/c-function-cmd_find_target/#c%3Afunction%3Acmd_find_target), +[Full: cmd_find_target in 3.7c](/tmux/3.7c/reference/c-function-cmd_find_target/#c%3Afunction%3Acmd_find_target), +[Full: cmd_find_target in latest](/tmux/latest/reference/c-function-cmd_find_target/#c%3Afunction%3Acmd_find_target). + +MyST supports the same C roles and a typed inventory URL: + +```markdown +{external+tmux:c:struct}`cmd` +{external+tmux:c:func}`cmd_find_target` +{external+full:c:func}`tmux@3.7c:cmd_find_target` +[cmd_find_target](inv:tmux:c:function#cmd_find_target) +``` + +Destinations: [MyST: cmd](/tmux/latest/reference/c-struct-cmd/#c%3Astruct%3Acmd), +[MyST: cmd_find_target](/tmux/latest/reference/c-function-cmd_find_target/#c%3Afunction%3Acmd_find_target), +[MyST full: cmd_find_target in 3.7c](/tmux/3.7c/reference/c-function-cmd_find_target/#c%3Afunction%3Acmd_find_target), +[Inventory URL: cmd_find_target](/tmux/latest/reference/c-function-cmd_find_target/#c%3Afunction%3Acmd_find_target). + +The C reference links each declaration to its source file and revision. +Portable labels also address its signatures, parameters, and sections. + +## tmux hooks + +Link a hook name to its catalog page with a portable label. The same key +works in the scoped tmux inventory and the full inventory: + +```rst +:external+tmux:ref:`after-new-session ` +:external+full:ref:`after-new-session ` +``` + +Destinations: [Scoped: after-new-session](/tmux/latest/catalog/hooks/after-new-session/), +[Full: after-new-session](/tmux/latest/catalog/hooks/after-new-session/). + +In MyST, use the same key inside a reference role. Preserve its percent +escapes: + +```markdown +{external+tmux:ref}`after-new-session ` +{external+full:ref}`after-new-session ` +``` + +Destinations: [MyST scoped: after-new-session](/tmux/latest/catalog/hooks/after-new-session/), +[MyST full: after-new-session](/tmux/latest/catalog/hooks/after-new-session/). + +## tmux formats + +Link a format variable such as `#{session_name}` to its catalog entry: + +```rst +:external+tmux:ref:`session_name ` +:external+full:ref:`session_name ` +``` + +Destinations: [Scoped: session_name](/tmux/latest/catalog/formats/session_name/), +[Full: session_name](/tmux/latest/catalog/formats/session_name/). + +The MyST references select the same scoped or full inventory: + +```markdown +{external+tmux:ref}`session_name ` +{external+full:ref}`session_name ` +``` + +Destinations: [MyST scoped: session_name](/tmux/latest/catalog/formats/session_name/), +[MyST full: session_name](/tmux/latest/catalog/formats/session_name/). + +## tmux CLI manual + +The same tmux inventory covers command pages: + +```rst +:external+tmux:ref:`capture-pane ` +``` + +Destination: [capture-pane](/tmux/latest/manual/capture-pane/). + +The document role works when the target is a whole page: + +```rst +:external+tmux:doc:`Full manual ` +``` + +Destination: [Full tmux manual](/tmux/latest/manual/full/). + +Select a command's manual page with the document role. Its portable key +also works in the full inventory: + +```rst +:external+tmux:doc:`tmux new-session ` +:external+full:doc:`tmux new-session ` +``` + +Destinations: [Scoped: new-session](/tmux/latest/manual/new-session/), +[Full: new-session](/tmux/latest/manual/new-session/). + +Use the same document role in MyST: + +```markdown +{external+tmux:doc}`tmux new-session ` +{external+full:doc}`tmux new-session ` +``` + +Destinations: [MyST scoped: new-session](/tmux/latest/manual/new-session/), +[MyST full: new-session](/tmux/latest/manual/new-session/). + +## Command options, environment variables, and terms + +The Python port's workspace documentation exports standard-domain objects. +Set the program context before referencing an option: + +```rst +.. program:: tmuxp load + +:external+py:option:`--append` +``` + +Destination: [tmuxp load --append](/py/latest/workspace/cli/load/#arguments-and-flags-a-append). + +Environment variables and glossary terms use their own roles. Qualify the +product when a term appears in more than one glossary: + +```rst +:external+py:envvar:`COLUMNS` +:external+py:term:`async ` +``` + +Destinations: [COLUMNS](/py/latest/workspace/configuration/environment/#cli-and-runtime-variables-columns-lines-rows), +[async](/py/latest/reference/glossary/#async). + +## MCP tools and schema fields + +Portable labels also address protocol objects and individual JSON Schema +fields. No custom MCP domain is required: + +```markdown +{external+py:ref}`Read tools batch ` +{external+py:ref}`on_error ` +``` + +Destinations: [Read tools batch](/py/latest/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch), +[on_error](/py/latest/mcp/tools/call_read_tools_batch/#mcp.tool.call_read_tools_batch.input%2Fproperties%2Fon_error). + +## Shared documentation and headings + +The full inventory includes the shared documentation: + +```rst +:external+full:doc:`Inventory guide ` +:external+full:ref:`Configure Intersphinx ` +``` + +Destinations: [Inventory guide](/meta/intersphinx/), +[Configure Intersphinx](/meta/intersphinx/#configure-intersphinx). + +## Local files and fallback locations + +Download an inventory and pass its filename as the second mapping value. +The first value remains the documentation URL used in generated links: + +```python +extensions = ["sphinx.ext.intersphinx"] +intersphinx_mapping = { + "py": ("https://libtmux.org/en/py/latest/", "python.inv"), +} +``` + +An ordered list tries a local copy before the HTTP inventory: + +```python +extensions = ["sphinx.ext.intersphinx"] +intersphinx_mapping = { + "py": ( + "https://libtmux.org/en/py/latest/", + ("python.inv", "https://libtmux.org/en/py/latest/objects.inv"), + ), +} +``` + +See the [inventory guide](/meta/intersphinx/) for key stability and the +[Sphinx Intersphinx reference](https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html) +for configuration options. diff --git a/site/src/content/docs/meta/linking.md b/site/src/content/docs/meta/linking.md new file mode 100644 index 000000000..051534c45 --- /dev/null +++ b/site/src/content/docs/meta/linking.md @@ -0,0 +1,54 @@ +--- +title: Linking and consuming our docs +description: Find documentation exports for search engines, bots, LLMs and other documentation sites. +inventoryId: linking-and-consuming-docs +sidebar: + group: Linking and consuming our docs + label: Overview + order: 89 +--- + +We welcome bots, search engines, SEO tools, LLMs and other clients to use our +documentation. Read a page in your browser, fetch its Markdown, discover +pages through a manifest, or link to documented objects from another site. + +## Choose an export + +The page footer links to the exports for its documentation tree. Use those +links to select a language, version or preview. + +| File or format | Use it for | +| --- | --- | +| [llms.txt](/llms.txt) | Discover guides, API references and agent prompts through a Markdown index. | +| [llms-full.txt](/llms-full.txt) | Fetch guides and MCP contracts together as Markdown. API references are linked separately. | +| [docs.json](/docs.json) | Discover page titles, URLs, descriptions, headings and Markdown URLs in a structured manifest. | +| Markdown | Read one page as text using its footer's **Markdown** link. | +| Raw source | Inspect the source file using its footer's **Raw source** link, where available. | +| [objects-full.inv](/objects-full.inv) | Resolve Sphinx references across shared docs, advertised port defaults and tmux reference versions. | +| objects.inv | Resolve Sphinx references within one port and version, or one tmux documentation tree. | +| [targets.json](/targets.json) | Browse inventory keys, display names and destination URLs as JSON. A scoped catalog sits beside each root inventory. | + +The root exports above cover the assembled site. Port exports describe the +selected port and version. For a single API declaration, start with +`docs.json` and follow its reference and symbol-index links. + +## Link from Sphinx + +The [Intersphinx guide](/meta/intersphinx/) explains how to configure +inventories, choose native roles or portable labels, and preserve references +when a page moves or changes its title. + +Browse [Intersphinx examples](/meta/intersphinx/examples/) for copyable RST +and MyST references to library APIs, tmux C declarations, hooks, format +variables, CLI commands and schema fields, paired with their destinations. + +## Discover and index pages + +Use the [sitemap](https://libtmux.org/en/sitemap-index.xml) to discover indexable pages. Follow +[robots.txt](https://libtmux.org/robots.txt) and each page's robots metadata: +pull-request previews, component demos and search-index shards are excluded +from crawling, and alternate versions can carry `noindex`. + +Choose a versioned documentation tree when a reference needs a particular +release. The full inventory follows each port's advertised default; a +port's `objects.inv` describes the selected version. diff --git a/site/src/content/docs/ports/go/examples/attach-and-send-keys.md b/site/src/content/docs/ports/go/examples/attach-and-send-keys.md index 4c4f5ce11..47d0fa67c 100644 --- a/site/src/content/docs/ports/go/examples/attach-and-send-keys.md +++ b/site/src/content/docs/ports/go/examples/attach-and-send-keys.md @@ -37,8 +37,8 @@ The server goes to `run`, so a test can pass in an isolated one. ```go file="examples/pane-io/main.go" from="ctx, cancel := context.WithTimeout" to="return run(ctx, server)" ``` - - + + ## 2. Create the session @@ -56,7 +56,9 @@ links that pattern. ```go file="examples/pane-io/main.go" from="session, err := server.NewSession" to="=\t}" ``` - + + + ## 3. Pick the pane @@ -70,7 +72,7 @@ explains why code addresses a pane by identity. ```go file="examples/pane-io/main.go" from="pane, err := session.ResolveActivePane" to="=\t}" ``` - + ## 4. Watch the pane's output @@ -83,7 +85,7 @@ which the deferred call does. Open it before typing, so no output is missed. ```go file="examples/pane-io/main.go" from="output, err := pane.OpenObservation" to="output.Close()" ``` - + ## 5. Send a command @@ -138,6 +140,8 @@ server exits when its last session is gone. ```go file="examples/pane-io/main.go" from="=\tdefer func() {" to="=\t}()" ``` + + ## The complete program The steps follow the order a reader meets the calls. In the file, the deferred diff --git a/site/src/data/inventory-aliases.json b/site/src/data/inventory-aliases.json new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/site/src/data/inventory-aliases.json @@ -0,0 +1 @@ +[] diff --git a/site/src/data/mentions.json b/site/src/data/mentions.json index 0135957e4..6d8ddda6d 100644 --- a/site/src/data/mentions.json +++ b/site/src/data/mentions.json @@ -9429,6 +9429,13 @@ "title": "Architecture", "section": "topics" }, + { + "port": "py", + "symbol": "libtmux.pane.Pane", + "page": "/meta/intersphinx/", + "title": "Link to libtmux from Sphinx", + "section": "meta" + }, { "port": "py", "symbol": "libtmux.pane.Pane", diff --git a/site/src/integrations/inventory.ts b/site/src/integrations/inventory.ts index f8a98d8c8..61f8f5321 100644 --- a/site/src/integrations/inventory.ts +++ b/site/src/integrations/inventory.ts @@ -1,142 +1,37 @@ -import { TMUX_VERSIONS } from '../lib/tmux-manual-data' -import { tmuxSourceModel } from '../lib/tmux-reference' -import { DEFAULT_LOCALE } from '../i18n/locales' -import { mkdirSync, writeFileSync } from 'node:fs' -import { dirname, join } from 'node:path' +import { writeFileSync } from 'node:fs' +import { join } from 'node:path' +import { fileURLToPath } from 'node:url' import type { AstroIntegration } from 'astro' -import { writeInventory, type ApiModel } from '@libtmux/api-model' -import { API_MODELS, PORT_NAME, ownersOf, pageSlug } from '../lib/api-models' - -/** - * Publish an `objects.inv` per port, and one for the whole reference. - * - * This is what makes libtmux.org linkable from any Sphinx project — including - * our own, since the Python docs are Sphinx. Adding libtmux.org to their - * `intersphinx_mapping` lets a docstring write ``:class:`libtmux-rs:Pane` `` - * and get a working link, which is cross-language linking through the - * mechanism Sphinx already ships. - * - * Written at `astro:build:done` rather than as a route: the file is bytes, not - * a page, and a route would have to base64 its way through a text response. - * - * Emitted only from the root build, and only in the default locale. The - * reference lives at `/reference/` and has no per-port mount, so a per-port - * build writing one would publish an inventory of URLs that do not exist - * under its own prefix — and the reference is not translated, so a Japanese - * build wrote an inventory of `/ja/reference/…` for the same reason. An - * inventory is consumed by other projects' Sphinx builds rather than by a - * reader, so a wrong one breaks their links, not ours, and nothing here - * would have reported it. - */ -/** - * A URI as intersphinx reads it: relative to the directory holding the - * inventory, never to the site root. - * - * `rooted` is what tells the two apart. The combined inventory sits at - * `/objects.inv` and needs the `reference//` prefix; a per-port one - * sits beside the pages it names and must not carry it, because intersphinx - * joins the URI onto the base URL it was configured with. With the prefix in - * both, a resolved C++ class came out as - * `libtmux.org/reference/cxx/reference/cxx/libtmux::pane/` — a link that - * Sphinx reported as resolved and that goes nowhere. - */ -function uriForModel(model: ApiModel, rooted = true) { - const paged = new Set(ownersOf(model).map((s) => s.id)) - return (symbol: { id: string; publicId?: string; parent?: string }) => { - const anchor = symbol.publicId ?? symbol.id - const owner = paged.has(symbol.id) - ? anchor - : symbol.parent && paged.has(symbol.parent) - ? (model.symbols.find((s) => s.id === symbol.parent)?.publicId ?? symbol.parent) - : undefined - const page = owner ? `${pageSlug(owner)}/` : '' - const prefix = rooted ? `reference/${model.port}/` : '' - return `${prefix}${page}#${anchor}` - } -} +import { API_MODELS } from '../lib/api-models' +import { collectInventoryTargets, publishPortInventory, publishTmuxInventories } from '../lib/inventory-publisher' +import { buildTarget } from '../lib/versions' +import { withPortRoot } from '../lib/site-root' +/** Port exports follow rendering; the full export follows final site assembly. */ export function inventory(): AstroIntegration { + let base = '/' return { name: 'libtmux:inventory', hooks: { + 'astro:config:done': ({ config }) => { base = `${config.base.replace(/\/$/, '')}/` }, 'astro:build:done': ({ dir, logger }) => { - // A port shell writes one inventory, beside the reference it just - // built: `///reference/objects.inv`, which is where - // that port's pages live now. - const buildPort = process.env.LIBTMUX_DOCS_PORT - if (buildPort) { - const model = API_MODELS[buildPort] - if (!model) return - const uri = uriForModel(model, false) - const path = join(dir.pathname, 'reference', 'objects.inv') - mkdirSync(dirname(path), { recursive: true }) - writeFileSync(path, writeInventory(model, { - project: `libtmux for ${PORT_NAME[buildPort] ?? buildPort}`, - version: model.revision?.slice(0, 7) ?? 'latest', - uriFor: uri, - })) - logger.info(`objects.inv written for ${buildPort} (${model.symbols.length} symbols)`) + const port = process.env.LIBTMUX_DOCS_PORT + const version = buildTarget(process.env).version + if (port && base !== withPortRoot(`/${port}/${version}/`)) return + const out = fileURLToPath(dir) + const targets = collectInventoryTargets(out, base) + if (port) { + const actual = new Set(targets.filter((target) => target.scope === port && target.category === 'api').map((target) => target.identity)) + const missing = API_MODELS[port]?.symbols.filter((symbol) => !actual.has(symbol.publicId ?? symbol.id)) ?? [] + if (missing.length) throw new Error(`Inventory missed ${missing.length} API declarations for ${port}: ${missing.slice(0, 10).map((symbol) => symbol.publicId ?? symbol.id).join(', ')}`) + const result = publishPortInventory(out, base, targets, port, version) + logger.info(`objects.inv: ${result.targets} rendered targets for ${port}/${result.version}`) return } - // The env var, not `buildLocale()` from i18n/resolve: this runs as an - // Astro integration, in the config context, where `astro:content` — - // which that module imports — does not exist. - if ((process.env.LIBTMUX_DOCS_LOCALE || DEFAULT_LOCALE) !== DEFAULT_LOCALE) return - const out = dir.pathname - let total = 0 - for (const version of TMUX_VERSIONS) { - const model = tmuxSourceModel(version) - const path = join(out, 'tmux', version, 'reference', 'objects.inv') - mkdirSync(dirname(path), { recursive: true }) - writeFileSync(path, writeInventory(model, { - project: 'tmux C source', version: model.version, - uriFor: (symbol) => `${symbol.slug}/`, - })) - } - - const uriFor = uriForModel - - for (const [port, model] of Object.entries(API_MODELS)) { - const bytes = writeInventory(model, { - project: `libtmux for ${PORT_NAME[port] ?? port}`, - version: model.revision?.slice(0, 7) ?? 'latest', - uriFor: uriFor(model, false), - }) - const path = join(out, 'reference', port, 'objects.inv') - mkdirSync(dirname(path), { recursive: true }) - writeFileSync(path, bytes) - total += model.symbols.length - } - - // One combined inventory at the site root, so a consumer needs a - // single mapping entry rather than eight. - const combined: ApiModel = { - port: 'py', - extractor: 'libtmux.org', - symbols: Object.values(API_MODELS).flatMap((m) => - m.symbols.map((s) => ({ - ...s, - // Prefixed, because ids are unique *within* a port and this file - // spans all eight. `libtmux.Pane` exists in more than one. - publicId: `${m.port}:${s.publicId ?? s.id}`, - })), - ), - } - const byPort = new Map(Object.entries(API_MODELS).map(([p, m]) => [p, uriFor(m)])) - writeFileSync( - join(out, 'objects.inv'), - writeInventory(combined, { - project: 'libtmux', - version: 'all', - uriFor: (s) => { - const [port] = (s.publicId ?? s.id).split(':') - const inner = { ...s, publicId: (s.publicId ?? s.id).slice(port.length + 1) } - return byPort.get(port)?.(inner) ?? 'reference/' - }, - }), - ) - - logger.info(`objects.inv written for ${Object.keys(API_MODELS).length} ports (${total} symbols) + combined`) + // A shell alone has no core port trees. It cannot publish the full export. + writeFileSync(join(out, 'targets.partial.json'), `${JSON.stringify({ schema: 1, base, targets })}\n`) + publishTmuxInventories(out, base, targets) + logger.info(`${targets.length} rendered inventory targets collected; full export awaits assembly`) }, }, } diff --git a/site/src/layouts/BaseLayout.astro b/site/src/layouts/BaseLayout.astro index a4398e8fd..e529bd227 100644 --- a/site/src/layouts/BaseLayout.astro +++ b/site/src/layouts/BaseLayout.astro @@ -1,6 +1,8 @@ --- import { buildLocale } from '../i18n/resolve' import { localeSourcePath } from '../i18n/locales' +import type { InventoryPage } from '../lib/inventory-targets' +import { tmuxInventoryVersion } from '../lib/inventory-links' import BackToTop from '../components/BackToTop.astro' import Seo from '../components/Seo.astro' import BrandIcons from '../components/BrandIcons.astro' @@ -31,6 +33,9 @@ import type { LocaleStatus } from '../i18n/resolve' */ interface Props { title: string + inventoryId?: string + inventoryAliases?: string[] + inventoryExclude?: boolean description?: string /** Path within the current port+version, e.g. 'guides/panes'. */ pagePath?: string @@ -81,6 +86,9 @@ interface Props { const { title, + inventoryId, + inventoryAliases, + inventoryExclude = false, description, pagePath: requestedPagePath, portSlug, @@ -163,7 +171,10 @@ const markdownHref = typeof markdown === 'object' ? markdown.href : markdownPath(Astro.url.pathname, markdownIndex ?? Astro.url.pathname === buildBase) const versionRoot = portSlug ? withPortRoot(`/${portSlug}/${target.version}/`) : undefined -const llmsRoot = versionRoot && Astro.url.pathname.startsWith(versionRoot) ? versionRoot : withRoot('/') +// A port's demo or landing page sits outside its version tree, where no +// per-version llms files or objects.inv exist. +const inVersionTree = Boolean(versionRoot && Astro.url.pathname.startsWith(versionRoot)) +const llmsRoot = inVersionTree ? versionRoot! : withRoot('/') // The repository the page documents: a product's own, else the one its source // is in, else its port's. Python's MCP server and tmuxp are separate repos. const githubRepo = repository @@ -178,6 +189,18 @@ const homeBrands = homeLauncher ? Object.fromEntries(Object.values(PORT_BY_SLUG).map((port) => [port.slug, port.logoLanguage])) : undefined +const tmuxVersion = tmuxInventoryVersion(pagePath) +const inventoryPage: InventoryPage = { + scope: portSlug ?? (tmuxVersion ? `tmux@${tmuxVersion}` : 'site'), + product: /^(?:mcp|workspace)(?:\/|$)/.exec(pagePath)?.[0].replace(/\/$/, '') ?? 'core', + identity: inventoryId ?? (pagePath || 'index'), + title, version: portSlug ? target.version : tmuxVersion, source, + previousScopes: !portSlug && tmuxVersion && pagePath.startsWith(`tmux/${tmuxVersion}/catalog`) ? ['site'] : undefined, + aliases: inventoryAliases, exclude: inventoryExclude || bare || + Boolean(process.env.LIBTMUX_DOCS_PORT && !inVersionTree) || + /^(?:demo(?:\/|$)|404$|search$)/.test(routePath), +} + --- @@ -185,6 +208,7 @@ const homeBrands = homeLauncher data-home-ports={homeLauncher ? Object.keys(PORT_BY_SLUG).join(' ') : undefined} data-home-brands={homeBrands ? JSON.stringify(homeBrands) : undefined}> + @@ -253,7 +277,7 @@ const homeBrands = homeLauncher
              - + diff --git a/site/src/layouts/DocsLayout.astro b/site/src/layouts/DocsLayout.astro index d27d54580..411195a3f 100644 --- a/site/src/layouts/DocsLayout.astro +++ b/site/src/layouts/DocsLayout.astro @@ -49,6 +49,9 @@ import { DOC_PRODUCTS, PORT_BY_SLUG, portPageUrl, referenceUrl, productAvailable */ interface Props { title: string + inventoryId?: string + inventoryAliases?: string[] + inventoryExclude?: boolean /** Render an API identifier as code while retaining its plain metadata title. */ symbolTitle?: boolean description?: string @@ -99,6 +102,9 @@ interface Props { const { title, + inventoryId, + inventoryAliases, + inventoryExclude, symbolTitle = false, description, port, @@ -150,7 +156,8 @@ const surfaces = port ? await getDocumentationSurfaces(port, version, locale) : const selectedDocumentation = surfaces.length ? currentDocumentation(surfaces, currentPath) : undefined const selectedSection = selectedDocumentation?.section // A tmux page's sidebar links tmux releases; the build slug names a docs build. -const sidebarNavigation = navigation ?? selectedSection?.items ?? await getSidebar(port, contextVersion, locale, product) +const sidebarNavigation = navigation ?? selectedSection?.items ?? await getSidebar(port, contextVersion, locale, product, + /^meta(?:\/|$)/.test(pagePath) ? 'meta' : 'tmux') const libraryReference = port && API_MODELS[port] && (selectedSection?.id === 'reference' || /^api(?:\/|$)/.test(pagePath)) const referenceInventory = libraryReference ? product ? productReferenceTree(API_MODELS[port!], product, version) : referenceTree(port!) : undefined const apiNavigation = requestedApiNavigation ?? (referenceInventory ? { @@ -167,6 +174,9 @@ const breadcrumbs = withSidebarBreadcrumbs(requestedBreadcrumbs ?? (product && p +
              Selectable sidebar $& $$
              Shared footer $& $$
              ` + const metadata = { scope: 'py', product: 'core', version: 'v0.62.0', identity: 'native-api:api/pane', title: 'Pane' } + const envelope = `
              Selectable sidebar $& $$
              Shared footer $& $$
              ` writeFileSync(join(shell, 'api/api/pane/index.html'), envelope) writeFileSync(join(shell, 'api/tree.json'), '{"port":"py","buckets":[],"members":{}}') const options = { sphinxPort: 'py', version: 'v0.62.0', contextFile, shellDirectory: shell } await normalizeNativeShell(native, '/pr-42/en', options) const html = readFileSync(page, 'utf8') expect(nativeArticle(html)).toBe(article) + const targets = renderedTargets(html, `${context.base}api/pane/`) + expect(targets.map((target) => target.category)).toEqual(['doc', 'heading']) + expect(targets[1]).toMatchObject({ scope: 'py', version: 'v0.62.0', href: `${context.base}api/pane/#capture` }) expect(html).toContain('
              Selectable sidebar $& $$
              ') // Replacement tokens in any compiled region are page text, never instructions to the splice. expect(html).toContain('') diff --git a/site/test/prerelease-notice.test.ts b/site/test/prerelease-notice.test.ts index 8cd14f562..2681757be 100644 --- a/site/test/prerelease-notice.test.ts +++ b/site/test/prerelease-notice.test.ts @@ -10,6 +10,9 @@ import { markdownPath } from '../src/lib/markdown-twins' import { pageBrand, PORT_BY_SLUG, PORTS, portSourceUrl } from '../src/lib/ports' import { withPortRoot, withRoot } from '../src/lib/site-root' import { buildTarget } from '../src/lib/versions' +import { renderedTargets } from '../src/lib/inventory-targets' +import { tmuxInventoryVersion } from '../src/lib/inventory-links' +import { targetKey } from '@libtmux/api-model' const astroRequire = createRequire(realpathSync(new URL('../node_modules/astro/package.json', import.meta.url))) const noticeSource = readFileSync(new URL('../src/components/PrereleaseNotice.astro', import.meta.url), 'utf8') @@ -32,7 +35,7 @@ beforeAll(async () => { vi.stubGlobal('__prereleaseChild', (await import(/* @vite-ignore */ stub)).default) const helpers = { buildLocale, localeSourcePath, CONTRIBUTE_BRANCH, CONTRIBUTE_REPO, repoPath, - markdownPath, pageBrand, PORT_BY_SLUG, portSourceUrl, withPortRoot, withRoot, buildTarget, + markdownPath, pageBrand, PORT_BY_SLUG, portSourceUrl, withPortRoot, withRoot, buildTarget, tmuxInventoryVersion, } vi.stubGlobal('__prereleaseHelpers', helpers) const helperModule = `data:text/javascript,export const {${Object.keys(helpers).join(',')}}=globalThis.__prereleaseHelpers` @@ -53,11 +56,11 @@ afterEach(async () => { }) afterAll(() => vi.unstubAllGlobals()) -async function render(path: string, pagePath?: string, portSlug?: string, bare = false, repository?: string) { +async function render(path: string, pagePath?: string, portSlug?: string, bare = false, repository?: string, buildPort = '') { const url = new URL(path, 'https://libtmux.org') const prefix = /^(\/pr-\d+)?\/(en|ja)\//.exec(url.pathname) vi.stubEnv('LIBTMUX_DOCS_BASE', prefix?.[0] ?? '/') - vi.stubEnv('LIBTMUX_DOCS_PORT', '') + vi.stubEnv('LIBTMUX_DOCS_PORT', buildPort) vi.stubEnv('LIBTMUX_DOCS_LOCALE', prefix?.[2] ?? 'en') const container = await experimental_AstroContainer.create() return container.renderToString(layout, { @@ -81,6 +84,31 @@ describe('bare pages', () => { }) describe('prerelease notice ownership', () => { + it('assigns versioned tmux manuals, catalogs and C pages to their release inventory', async () => { + for (const version of ['latest', '3.7c', '3.2a']) for (const section of ['manual', 'catalog', 'reference']) { + const page = `tmux/${version}/${section}/entry` + for (const pagePath of [page, undefined]) { + const href = `/pr-42/en/${page}/` + const targets = renderedTargets(await render(href, pagePath), href) + expect(targets).toMatchObject([{ scope: `tmux@${version}`, version, category: 'doc', identity: page }]) + if (section === 'catalog') expect(targets[0].aliases).toContain(targetKey({ scope: 'site', product: 'core', category: 'doc', identity: page })) + } + } + }) + it('exports the selected port only inside its version mount', async () => { + for (const path of ['/en/', '/pr-42/en/', '/py/', '/py/latestish/']) { + const shared = await render(path, '', 'py', false, undefined, 'py') + expect(renderedTargets(shared, path), path).toEqual([]) + } + const port = await render('/py/latest/', '', 'py', false, undefined, 'py') + expect(renderedTargets(port, '/py/latest/')).toMatchObject([ + { scope: 'py', version: 'latest', category: 'doc', identity: 'index', href: '/py/latest/' }, + ]) + const root = await render('/en/', '') + expect(renderedTargets(root, '/en/')).toMatchObject([ + { scope: 'site', category: 'doc', identity: 'index', href: '/en/' }, + ]) + }) it('omits the library notice from every tmux area before JavaScript runs', async () => { for (const prefix of ['/en/', '/ja/', '/pr-42/en/', '/pr-42/ja/']) { for (const page of ['tmux', 'tmux/', 'tmux/guides', 'tmux/topics/environment', diff --git a/site/test/prose-port-sections.test.ts b/site/test/prose-port-sections.test.ts index 991b5aaf9..50a1e6f5d 100644 --- a/site/test/prose-port-sections.test.ts +++ b/site/test/prose-port-sections.test.ts @@ -1,3 +1,5 @@ +import { readFileSync, rmSync } from 'node:fs' +import { fileURLToPath } from 'node:url' import { afterEach, describe, expect, it, vi } from 'vitest' import { rehypeApiLinks } from '../src/plugins/rehype-api-links' @@ -46,4 +48,19 @@ describe('API links in port sections', () => { expect(other.children?.[0].properties?.href).toBe('/go/latest/reference/tmux-session-panes/') expect(shared.children?.[0].tagName).toBe('code') }) + + it('leaves a published inventory file plain after a Python fence, without reporting it dangling', () => { + const report = fileURLToPath(new URL('../.astro/dangling-refs.json', import.meta.url)) + rmSync(report, { force: true }) + const fence = element('pre', element('code')) + fence.children![0].properties = { className: ['language-python'] } + const inventory = element('p', element('code', text('objects.inv')), element('code', text('reference/objects.inv'))) + const symbol = element('p', element('code', text('libtmux.Server'))) + const missing = element('p', element('code', text('Nope.thing()'))) + rehypeApiLinks()({ type: 'root', children: [fence, inventory, symbol, missing] }) + expect(inventory.children?.map((child) => child.tagName)).toEqual(['code', 'code']) + expect(symbol.children?.[0].properties?.href).toBe('/py/latest/reference/libtmux-server/') + // The control: the gate still records a Python name that nothing defines. + expect(readFileSync(report, 'utf8').trim().split('\n').map((line) => JSON.parse(line).text)).toEqual(['Nope.thing()']) + }) }) diff --git a/site/test/published-inventory.test.ts b/site/test/published-inventory.test.ts new file mode 100644 index 000000000..513333859 --- /dev/null +++ b/site/test/published-inventory.test.ts @@ -0,0 +1,68 @@ +import { execFileSync } from 'node:child_process' +import { createHash } from 'node:crypto' +import { cpSync, mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { dirname, join, resolve } from 'node:path' +import { afterEach, describe, expect, it } from 'vitest' +import { readInventory, targetKey, writeInventoryEntries } from '@libtmux/api-model' + +const root = resolve(import.meta.dirname, '../..') +const scratch: string[] = [] +afterEach(() => { for (const path of scratch.splice(0)) rmSync(path, { recursive: true, force: true }) }) + +function fixture(published = true, wrongScope = false) { + const path = mkdtempSync(join(tmpdir(), 'libtmux-published-inventory-')); scratch.push(path) + const write = (file: string, object: unknown) => { const target = join(path, file); mkdirSync(dirname(target), { recursive: true }); writeFileSync(target, JSON.stringify(object)) } + for (const file of ['inventory', 'targets', 'modules']) { + mkdirSync(join(path, 'inventory-runtime'), { recursive: true }) + cpSync(join(root, `packages/api-model/src/${file}.ts`), join(path, `inventory-runtime/${file}.ts`)) + } + write('inventory-runtime/package.json', { type: 'module' }) + const target = (scope: string, version: string) => { + const value = { scope, version, product: 'core', category: 'api', identity: 'Pane', display: 'Pane', href: `/en/${scope}/${version}/reference/pane/#Pane` } + return { ...value, key: targetKey(value), legacy: [{ type: 'std:label', name: 'Pane' }] } + } + write('shell-paths.json', { portTrees: ['rs'] }) + write('dist/versions.json', { schema: 1, ports: { rs: [{ slug: 'stable' }] }, defaultVersion: { rs: 'stable' } }) + write('dist/targets.json', { schema: 1, base: '/en/', targets: [target('rs', 'latest')] }) + write('dist/rs/latest/targets.json', { schema: 1, base: '/en/rs/latest/', scope: 'rs', version: 'latest', targets: [target('rs', 'latest')] }) + const catalog = { schema: 1, base: '/en/rs/stable/', scope: 'rs', version: 'stable', targets: [target(wrongScope ? 'py' : 'rs', 'stable')] } + if (published) write('published/rs/stable/targets.json', catalog) + return { path, catalog } +} + +function compose(path: string) { + return execFileSync(process.execPath, [join(root, 'scripts/compose-published-inventory.mjs'), '--directory', 'dist', '--catalogs', 'published', '--runtime', 'inventory-runtime'], { cwd: path, encoding: 'utf8', stdio: 'pipe' }) +} + +describe('published default inventory composition', () => { + it('uses the published stable catalog instead of a locally assembled latest tree', () => { + const { path } = fixture() + const result = JSON.parse(compose(path)) + const catalog = JSON.parse(readFileSync(join(path, 'dist/targets.json'), 'utf8')) + expect(catalog.targets.map((target: { version: string }) => target.version)).toEqual(['stable']) + expect(readInventory(readFileSync(join(path, 'dist/objects-full.inv'))).entries[0].uri).toContain('rs/stable/') + expect(result.inputs[0].sha256).toBe(createHash('sha256').update(readFileSync(join(path, 'published/rs/stable/targets.json'))).digest('hex')) + }) + it('replaces stale root compatibility entries with the selected published API', () => { + const { path } = fixture() + const file = join(path, 'dist/reference/rs/objects.inv') + mkdirSync(dirname(file), { recursive: true }) + writeFileSync(file, writeInventoryEntries(['Pane', 'Retired'].map((name) => ({ + name, type: 'std:label', priority: 1, uri: `../../rs/latest/reference/old/#${name}`, dispname: name, + })), { project: 'libtmux rs', version: 'latest', legacyCaseSensitiveLabels: true })) + compose(path) + expect(readInventory(readFileSync(file)).entries.map(({ name, type, uri }) => ({ name, type, uri }))).toEqual([ + { name: 'Pane', type: 'std:label', uri: '../../rs/stable/reference/pane/#Pane' }, + ]) + }) + it('refuses to advertise a default whose catalog has not been published', () => { + expect(() => compose(fixture(false).path)).toThrow('Publish en/rs/stable/targets.json before advertising') + }) + it('rejects a catalog containing another port before writing the aggregate', () => { + const { path } = fixture(true, true) + const full = join(path, 'dist/objects-full.inv'); writeFileSync(full, 'retained') + expect(() => compose(path)).toThrow('outside rs/stable') + expect(readFileSync(full, 'utf8')).toBe('retained') + }) +}) diff --git a/site/test/python-layout.test.ts b/site/test/python-layout.test.ts index 6b04fde77..a15cd397d 100644 --- a/site/test/python-layout.test.ts +++ b/site/test/python-layout.test.ts @@ -219,7 +219,7 @@ describe('Python layouts in the rendered declaration', () => { const wrapper = `--- import ApiType from './ApiType.astro' import ApiSignatureParameters from './ApiSignatureParameters.astro' -const { symbol, index, language, keyword, prename, nameHref, value, pythonLayouts } = Astro.props +const { symbol, index, language, keyword, prename, nameHref, value, pythonLayouts, signatureTargets = [] } = Astro.props const folds = (sig) => sig.params.length >= 10 --- <> diff --git a/site/test/row-anchors.test.ts b/site/test/row-anchors.test.ts index 91193a9f5..93079e9c3 100644 --- a/site/test/row-anchors.test.ts +++ b/site/test/row-anchors.test.ts @@ -24,6 +24,35 @@ const render = (html: string) => { } describe('section and item permalinks', () => { + it('exports individually named options from an explicitly typed table', () => { + const tree = fromHtml('

              Flags

          {owner.name} constant object properties
          NameValueDescription
          {owner.name} {fields ? 'fields' : 'constant object properties'}
          Name{fields ? 'Type' : 'Value'}Description
          {member.name}{member.value}{fields ? : {member.value}} {member.doc?.summary && }
          --append, -aAppend
          ', { fragment: true }) + rehypeRowAnchors()(tree, { data: { astro: { frontmatter: { inventoryTables: { + flags: { type: 'std:cmdoption', identity: 'cli/load', prefix: 'tmuxp load ' }, + } } } } }) + const entries: unknown[] = [] + visit(tree, 'element', (node) => { + if (node.properties.dataInventoryTargets) entries.push(...JSON.parse(String(node.properties.dataInventoryTargets))) + }) + expect(entries).toEqual([ + { category: 'cmdoption', identity: 'cli/load:--append', display: 'tmuxp load --append', native: [{ type: 'std:cmdoption', name: 'tmuxp load --append' }] }, + { category: 'cmdoption', identity: 'cli/load:-a', display: 'tmuxp load -a', native: [{ type: 'std:cmdoption', name: 'tmuxp load -a' }] }, + ]) + }) + + it('keeps hidden kind marks out of configuration inventory names', () => { + const tree = fromHtml('

          Configuration

          layoutLayout
          ', { fragment: true }) + rehypeRowAnchors()(tree, { data: { astro: { frontmatter: { inventoryTables: { + config: { type: 'std:confval', identity: 'schema/session', prefix: 'session.' }, + } } } } }) + const entries: unknown[] = [] + visit(tree, 'element', (node) => { + if (node.properties.dataInventoryTargets) entries.push(...JSON.parse(String(node.properties.dataInventoryTargets))) + }) + expect(entries).toEqual([ + { category: 'confval', identity: 'schema/session:layout', display: 'session.layout', native: [{ type: 'std:confval', name: 'session.layout' }] }, + ]) + }) + it('names option rows consistently across tmux versions', () => { const rows = (version: string) => tmuxCommandNotes(version, 'capture-pane')!.groups .flatMap((group) => group.options) diff --git a/site/test/rust-variant-fields.test.ts b/site/test/rust-variant-fields.test.ts index 69b6a2489..cac97c5d4 100644 --- a/site/test/rust-variant-fields.test.ts +++ b/site/test/rust-variant-fields.test.ts @@ -68,8 +68,9 @@ describe('Rust payload documentation surfaces', () => { const markdown = symbolMarkdown({ model, symbol: variant, index, hrefFor }) expect(markdown).toContain(variant.signatures[0].raw) expect(markdown).toContain('## Fields') - expect(markdown).toContain('[`pane`](/en/rs/latest/reference/control.Event.Output.pane/) (`PaneId`): The pane that produced it.') - expect(markdown).toContain('[`bytes`](/en/rs/latest/reference/control.Event.Output.bytes/) (`Vec`): The output bytes.') + expect(markdown).toContain('| Name | Type | Description |') + expect(markdown).toContain('| [`pane`](/en/rs/latest/reference/control.Event.Output.pane/) | `PaneId` | The pane that produced it. |') + expect(markdown).toContain('| [`bytes`](/en/rs/latest/reference/control.Event.Output.bytes/) | [`Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html)`<`[`u8`](https://doc.rust-lang.org/std/primitive.u8.html)`>` | The output bytes. |') expect(markdown).not.toContain('## Parameters') expect(symbolMarkdown({ model, symbol: symbols[2], index, hrefFor })).toContain('pane: PaneId') expect(apiEntryFields(variant, 'rs').params).toEqual([]) diff --git a/site/test/sidebar-demo.test.ts b/site/test/sidebar-demo.test.ts index 44438b640..77c386d12 100644 --- a/site/test/sidebar-demo.test.ts +++ b/site/test/sidebar-demo.test.ts @@ -3,6 +3,8 @@ import { Window } from 'happy-dom' import { demoConfig, demoUrl } from '../src/lib/sidebar-demo' import { API_MODEL_PORTS } from '../src/lib/ports' import { loadAstroTemplate, renderAstroTemplate } from './astro-templates' +import { buildLocale } from '../src/i18n/locales' +import { parseHtml, renderPage } from './header-page' afterEach(() => vi.unstubAllEnvs()) @@ -53,8 +55,9 @@ async function footer(props: Record) { it('keeps the page-source line on an embedded preview and drops the site navigation', async () => { const embedded = await footer({ compact: true }) const line = embedded.document.querySelector('.page-source')! - expect([...line.querySelectorAll('a')].map((link) => link.getAttribute('href')!.replace(/^.*\//, ''))) - .toEqual(['py.md', '[port].astro', 'docs.json', 'llms.txt', 'llms-full.txt']) + expect([...line.querySelectorAll('a')].map((link) => link.getAttribute('href')!.replace(/\/$/, '').replace(/^.*\//, ''))) + // The inventory download and its help page sit on the same line, so a preview names them too. + .toEqual(['py.md', '[port].astro', 'docs.json', 'llms.txt', 'llms-full.txt', 'objects-full.inv', 'intersphinx', 'intersphinx']) expect(line.querySelector('code')!.textContent).toBe('site/src/pages/demo/sidebar/preview/[port].astro') expect(embedded.document.querySelector('footer a[aria-label="GitHub"]')!.getAttribute('href')).toBe('https://github.com/libtmux/docs/') expect(embedded.document.querySelectorAll('footer li')).toHaveLength(0) @@ -64,3 +67,16 @@ it('keeps the page-source line on an embedded preview and drops the site navigat expect(full.document.querySelector('.page-source')!.innerHTML).toBe(line.innerHTML) await Promise.all([embedded.happyDOM.abort(), full.happyDOM.abort()]) }) + +it('links a port inventory only from pages inside that port\'s version tree', async () => { + // `i18n/resolve` reads Astro content collections, which a bare vitest run cannot load. + const layout = await loadAstroTemplate('layouts/BaseLayout.astro', { real: ['components/SiteFooter.astro'], modules: { '../i18n/resolve': { buildLocale } } }) + const scoped = async (url: string) => [...parseHtml(await renderPage(layout, url, { portSlug: 'ts' }), url).document.querySelectorAll('.page-source a')] + .map((link) => link.getAttribute('href')!).filter((href) => href.endsWith('/objects.inv')) + // A preview build's version is its PR label, and no `ts/pr-42/` tree exists. + vi.stubEnv('LIBTMUX_DOCS_VERSION', 'pr-42') + expect(await scoped('https://libtmux.org/en/demo/sidebar/preview/ts/')).toEqual([]) + // Site roots are fixed at import, so this run's roots carry no locale prefix. + vi.stubEnv('LIBTMUX_DOCS_VERSION', 'latest') + expect(await scoped('https://libtmux.org/ts/latest/guides/')).toEqual([expect.stringMatching(/\/ts\/latest\/objects\.inv$/)]) +}) diff --git a/site/test/signature-component.ts b/site/test/signature-component.ts index e506516b3..8865950b5 100644 --- a/site/test/signature-component.ts +++ b/site/test/signature-component.ts @@ -31,7 +31,7 @@ export async function signatureComponent() { const start = source.indexOf(" { }) }) -const astroRequire = createRequire(realpathSync(new URL('../node_modules/astro/package.json', import.meta.url))) -async function scalarTableComponent() { - const { transform } = await import(astroRequire.resolve('@astrojs/compiler-rs')) - const compiled = new Map() - for (const name of ['ApiDoc', 'ApiScalarMembers']) { - const file = new URL(`../src/components/api/${name}.astro`, import.meta.url) - const result = await transform(readFileSync(file, 'utf8'), { filename: file.pathname, internalURL: 'astro/compiler-runtime', resultScopedSlot: true, resolvePath: (specifier: string) => specifier }) - expect(result.diagnostics.filter((item: { severity: string }) => item.severity === 'error')).toEqual([]) - const linker = 'data:text/javascript,export const linkTmuxDoc = globalThis.__scalarMemberDocLinker' - let code = result.code.replaceAll('"astro/compiler-runtime"', JSON.stringify(pathToFileURL(astroRequire.resolve('astro/compiler-runtime')).href)) - .replaceAll('"../../lib/tmux-links"', JSON.stringify(linker)) - for (const [dependency, url] of compiled) code = code.replaceAll(`"./${dependency}.astro"`, JSON.stringify(url)) - compiled.set(name, `data:text/javascript;base64,${Buffer.from(code).toString('base64')}`) - } - return (await import(/* @vite-ignore */ compiled.get('ApiScalarMembers')!)).default -} +const scalarTableComponent = async () => (await apiComponents()).members it('renders linked scalar values as a semantic table with exact literal text', async () => { const owner = model.symbols.find((symbol) => symbol.id === 'constants.ResizeAdjustmentDirection')! const members = membersOf(model, owner) const window = new Window() - vi.stubGlobal('__scalarMemberDocLinker', linkTmuxDoc) try { const container = await experimental_AstroContainer.create() window.document.body.innerHTML = await container.renderToString(await scalarTableComponent(), { props: { owner, members, index, hrefFor } }) @@ -141,5 +123,5 @@ it('renders linked scalar values as a semantic table with exact literal text', a expect(row.querySelector('code')?.textContent).toBe(member.value) expect(row.querySelector('td:last-child')?.textContent).toBe('') } - } finally { await window.happyDOM.abort(); vi.unstubAllGlobals() } + } finally { await window.happyDOM.abort() } }) diff --git a/uv.lock b/uv.lock new file mode 100644 index 000000000..4e502526b --- /dev/null +++ b/uv.lock @@ -0,0 +1,746 @@ +version = 1 +revision = 3 +requires-python = ">=3.12, <4" + +[options] +exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values. +exclude-newer-span = "P3D" + +[[package]] +name = "accessible-pygments" +version = "0.0.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bc/c1/bbac6a50d02774f91572938964c582fff4270eee73ab822a4aeea4d8b11b/accessible_pygments-0.0.5.tar.gz", hash = "sha256:40918d3e6a2b619ad424cb91e556bd3bd8865443d9f22f1dcdf79e33c8046872", size = 1377899, upload-time = "2024-05-10T11:23:10.216Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8d/3f/95338030883d8c8b91223b4e21744b04d11b161a3ef117295d8241f50ab4/accessible_pygments-0.0.5-py3-none-any.whl", hash = "sha256:88ae3211e68a1d0b011504b2ffc1691feafce124b845bd072ab6f9f66f34d4b7", size = 1395903, upload-time = "2024-05-10T11:23:08.421Z" }, +] + +[[package]] +name = "alabaster" +version = "1.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a6/f8/d9c74d0daf3f742840fd818d69cfae176fa332022fd44e3469487d5a9420/alabaster-1.0.0.tar.gz", hash = "sha256:c00dca57bca26fa62a6d7d0a9fcce65f3e026e9bfe33e9c538fd3fbb2144fd9e", size = 24210, upload-time = "2024-07-26T18:15:03.762Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/b3/6b4067be973ae96ba0d615946e314c5ae35f9f993eca561b356540bb0c2b/alabaster-1.0.0-py3-none-any.whl", hash = "sha256:fc6786402dc3fcb2de3cabd5fe455a2db534b371124f1f21de8731783dec828b", size = 13929, upload-time = "2024-07-26T18:15:02.05Z" }, +] + +[[package]] +name = "babel" +version = "2.18.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/b2/51899539b6ceeeb420d40ed3cd4b7a40519404f9baf3d4ac99dc413a834b/babel-2.18.0.tar.gz", hash = "sha256:b80b99a14bd085fcacfa15c9165f651fbb3406e66cc603abf11c5750937c992d", size = 9959554, upload-time = "2026-02-01T12:30:56.078Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/77/f5/21d2de20e8b8b0408f0681956ca2c69f1320a3848ac50e6e7f39c6159675/babel-2.18.0-py3-none-any.whl", hash = "sha256:e2b422b277c2b9a9630c1d7903c2a00d0830c409c59ac8cae9081c92f1aeba35", size = 10196845, upload-time = "2026-02-01T12:30:53.445Z" }, +] + +[[package]] +name = "beautifulsoup4" +version = "4.15.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "soupsieve" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/65/318323f98dbee45d42dff61d8f047181bc6f2268a9068cfad035a46be5af/beautifulsoup4-4.15.0.tar.gz", hash = "sha256:288e3ca7d54b06f2ac191970bc275c1939cb46d450b255bf6718b04aa37ab4f7", size = 632571, upload-time = "2026-06-07T16:44:20.453Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/c6/92fcd42f1ba33e1184263f25bfabf3d27c383410470f169e4b8163bf9c17/beautifulsoup4-4.15.0-py3-none-any.whl", hash = "sha256:d6f88de62e1d4e38ecb1077eb9724cd0eff29d2a08ca16a401e9b9e93f117cf9", size = 109924, upload-time = "2026-06-07T16:44:21.566Z" }, +] + +[[package]] +name = "breathe" +version = "4.36.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "sphinx" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/01/56/99bf7d0799d95ad485d95596dc01c2a5b3dda58ebf50a94f6f73b33bacdf/breathe-4.36.0.tar.gz", hash = "sha256:14860b73118ac140b7a3f55446890c777d1b67149cb024279fe3710dad7f535c", size = 154842, upload-time = "2025-02-22T18:36:03.36Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/bc/d67ef1e11ed6e6343c135bf605aa9d5734ff0cc77eb42a2a41f182abc9d9/breathe-4.36.0-py3-none-any.whl", hash = "sha256:af85436f1f09e842bd1fd95617281211c635f8768d245ff830c59b979888d1d5", size = 97231, upload-time = "2025-02-22T18:36:01.087Z" }, +] + +[[package]] +name = "certifi" +version = "2026.7.22" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a3/c2/24167ea9858356b47a87a50d39908bfdb72ceeefe0041586e704e5376b3a/certifi-2026.7.22.tar.gz", hash = "sha256:741e2c3b351ddf169a738da9f2c048608ff7f2c5cc02f1ebc6b118bb090d5d55", size = 138112, upload-time = "2026-07-22T03:35:12.644Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0b/a7/71ac2cff56fec219ed242bb11b8efb69fcc4bec75db06fb7bfe35de520e6/certifi-2026.7.22-py3-none-any.whl", hash = "sha256:62f22742b58a1a33014a2b6b706588a8d7e2a88ae7bd1a6ebe8c992928483775", size = 136983, upload-time = "2026-07-22T03:35:11.276Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/c8/693809898870237d82785a03f3b2b58fe4c9f14669f84a7d4e623c92a59e/charset_normalizer-3.5.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ed2a239c0ea213acc1908150a3037257083c7c083128f1a4cec2ec4b97dca491", size = 367780, upload-time = "2026-09-30T04:35:30.888Z" }, + { url = "https://files.pythonhosted.org/packages/c9/87/2fea8c13dc24b3ca9c6f803a5b2dfdeae73eb4f9e12c7885ed908ff0433c/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b91363207bd9dc966a691e959bb47f64b30f7ac4b072be9968b366982f7db77c", size = 246730, upload-time = "2026-09-30T04:35:32.286Z" }, + { url = "https://files.pythonhosted.org/packages/a8/9e/09efac30b937722f46d3110ba30b875b24b2e3a266ed746cc4e376a94d80/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:38a873987f3be698494da8b2e3085e29da02da7b633dce73e79c699a113d7bf0", size = 237707, upload-time = "2026-09-30T04:35:33.709Z" }, + { url = "https://files.pythonhosted.org/packages/9e/18/70d76670b13686237863a379928d60bd10e021f17d243ab3d7014c4a5f4e/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:355ad8011081dec5412240c087a9a0c9d4d5039f3ed11a3f13e18c2b29b56c51", size = 273050, upload-time = "2026-09-30T04:35:35.138Z" }, + { url = "https://files.pythonhosted.org/packages/54/e2/77a8b09d5adc013ed07b95b01b8b8fa5441c4e810e83ee7e4aae2fa4d91a/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ee21e28f0430bd6dc9086c6e525d5e818a44a5ad19720c8a0ef766792f3eb5e5", size = 270345, upload-time = "2026-09-30T04:35:36.502Z" }, + { url = "https://files.pythonhosted.org/packages/7f/c5/38806a25ab5e65fc178f39affeda20858efafede2fce1ffc2556cfc9fe73/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3d31298449090ab8d47b7b1b2a555ff73cac7ed438a08b7ac160980c7ebed649", size = 257601, upload-time = "2026-09-30T04:35:37.919Z" }, + { url = "https://files.pythonhosted.org/packages/ae/8d/213565184708fdb263ae55e2c04ee1ff748129dd65d48ed0e3502da9c85a/charset_normalizer-3.5.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5cde776b7cc66e4f6c99612cea4aa7269aa65863f7a15841b2c264f103822f4e", size = 252222, upload-time = "2026-09-30T04:35:39.544Z" }, + { url = "https://files.pythonhosted.org/packages/7e/24/76d2cefc25472531e4c5c7dfff68865eb1c39b78482f0fdc15b46f047830/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ae4f5fea5b8b8ccff88238cc8569303e5ee95efae67fa62922a311397a71f346", size = 248482, upload-time = "2026-09-30T04:35:41.088Z" }, + { url = "https://files.pythonhosted.org/packages/7d/dc/65a801b66ab4c197e22c433ab25e7ac24324ac6f45a2269aca42cce309bf/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f7d486c83842422badd511868fd8a9a20e9407ace71564b6af47ce7e60a336c1", size = 241206, upload-time = "2026-09-30T04:35:42.59Z" }, + { url = "https://files.pythonhosted.org/packages/a7/95/ca9b5eabde673002c6f1e7ada1b223916fe18f6d661da7aabd4d643718f1/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:11a4d68a6ecda3292cb1e50239e111543ba5d709bb62a6b4ea1afcfa729d8875", size = 273190, upload-time = "2026-09-30T04:35:44.347Z" }, + { url = "https://files.pythonhosted.org/packages/2d/8b/803b4d2a3f6e1740f63f1e87b04d14b42f3d4fdfe6ed7d4db2d34102b14f/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d6734d2ef8a50fbf8445c139477da401f50d62a0606bf00e20ec6d87773fefb1", size = 253527, upload-time = "2026-09-30T04:35:45.915Z" }, + { url = "https://files.pythonhosted.org/packages/a9/55/93c0e5dbd085ae0471346026abbe7e0db9ea2d6fea74e51f0b5a46f233a7/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:a815775b6c38d4e0ff7bcffbeba67feded90202bb6a226b8dd35f1c855217413", size = 271285, upload-time = "2026-09-30T04:35:47.49Z" }, + { url = "https://files.pythonhosted.org/packages/95/69/0dbd0e0b9b16cfa816cdfcb3e2e3854a1f680dc07fb1245ea125e7448060/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23851fb4e1b85ed3f6c2a27b777cdfe2e19fb5b38429a8faf38c7542b7665869", size = 260010, upload-time = "2026-09-30T04:35:48.996Z" }, + { url = "https://files.pythonhosted.org/packages/58/9d/e7b88e7b1bf403590c3b573277b5e1e488c68c7a6fbacca310a2c324e90c/charset_normalizer-3.5.2-cp312-cp312-win32.whl", hash = "sha256:db19d07e2e0129e974a0e65d0064fc222a446cd5122c2fd4184d2af9fc734a9e", size = 184125, upload-time = "2026-09-30T04:35:50.777Z" }, + { url = "https://files.pythonhosted.org/packages/eb/e6/e6e083884cbcfd49c64865af05027fe7011be7b2d9179524f099a1b611f3/charset_normalizer-3.5.2-cp312-cp312-win_amd64.whl", hash = "sha256:780fbe7cab297b81dad9fb8dc5eb003c0468ffb0d9e5f65068c53a34661a96bc", size = 207486, upload-time = "2026-09-30T04:35:52.194Z" }, + { url = "https://files.pythonhosted.org/packages/c4/e3/017aea0911ada7405a825c7d937eb3a13009664e2f5b38e8c4bbf2abf894/charset_normalizer-3.5.2-cp312-cp312-win_arm64.whl", hash = "sha256:e2af3aad578aa6bd1384bcf4750fc285e5a9de53f40b7d41e5a0bf748edeb2b3", size = 196734, upload-time = "2026-09-30T04:35:53.636Z" }, + { url = "https://files.pythonhosted.org/packages/c5/34/68292d68512768591aaff07c59bb53ee31341c87759433a859c4641a50c2/charset_normalizer-3.5.2-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:ed905975ab14056a2e5eb1c376cb2e1ebc5396baf84163939c518556fccde9f5", size = 225946, upload-time = "2026-09-30T04:35:55.313Z" }, + { url = "https://files.pythonhosted.org/packages/e3/80/bee0b01b90ccd5322ae1d0abb33fab1bd95b7c2eadaf02aeccf22e04ee83/charset_normalizer-3.5.2-cp313-cp313-android_24_x86_64.whl", hash = "sha256:a66c3bc5ab1f0ff2164fc9965ddd611ff0802173f4b9d24554c563f6ab7e1d6e", size = 238619, upload-time = "2026-09-30T04:35:56.863Z" }, + { url = "https://files.pythonhosted.org/packages/78/6e/60ce52a85a7fd631ae8482ae6d74521014ca2f255892679484dc04d7ef56/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d2374b62878abb00cd8309b32af6c0b715cd02dec0ca74ef12e5069bdc64144a", size = 206701, upload-time = "2026-09-30T04:35:58.639Z" }, + { url = "https://files.pythonhosted.org/packages/36/8c/71aafad23f971afc84c2b295bc0c560739ce1dac558aad9fec22e39f3639/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d376bbd28b3a8999db1a103b3b388aee6f1ddeb3e51bc2172993efdcd86e064d", size = 210506, upload-time = "2026-09-30T04:36:00.147Z" }, + { url = "https://files.pythonhosted.org/packages/91/da/3c5a7798c046df7d2d68ad653cf5b6c5a8bfee225055a843c6f2f42aac1a/charset_normalizer-3.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6045373d5a89a5ec71afde535db987ca28e76dfa276c2d4c818265b375d4b055", size = 366626, upload-time = "2026-09-30T04:36:01.77Z" }, + { url = "https://files.pythonhosted.org/packages/e1/16/710ac3de2ee354e2bd1a9c94efe45a2d27b5c6ad39b2d6a905be2c094b6c/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:849df64e889b2e17230d58410a03dba311a65b163508fd33679b2b737d4b7858", size = 244624, upload-time = "2026-09-30T04:36:03.389Z" }, + { url = "https://files.pythonhosted.org/packages/d6/39/45c7439f5b63d24f7d5b2a1d760f34af7628782d7144b4cc8ded45c2d4bc/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15c44f7edfd477b06f517a5cc317fc1707edb9de2c865f43d4b6513907473234", size = 235731, upload-time = "2026-09-30T04:36:04.987Z" }, + { url = "https://files.pythonhosted.org/packages/4d/34/38f3154785ce92e9f56eb226f4d35bdfae6b008480dd055f58837a89c810/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a89012d6d5476ee112d20d998570ed58df2260a852afb1758809cd6900411d21", size = 270352, upload-time = "2026-09-30T04:36:06.412Z" }, + { url = "https://files.pythonhosted.org/packages/04/f3/859f74e7babc977705026b30593b3be04049632a522fb7000f83c033d747/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0c951d5e6dd9c2ff60609476752bee49da4206adde960ebc247766937f72e718", size = 267393, upload-time = "2026-09-30T04:36:07.865Z" }, + { url = "https://files.pythonhosted.org/packages/4b/85/41d27f234b82e47c167a5f6c0f62501dc0c640585ff4aba79e08a390336a/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4", size = 254660, upload-time = "2026-09-30T04:36:09.248Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/5d1a997587febe5b26d8daffe363b5c1a091cece19828eec6502fd09c5ef/charset_normalizer-3.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a19a731138fc27d5682277d3b9df22855cea1239bce7fcec5f78f42ef2d1f3c3", size = 249996, upload-time = "2026-09-30T04:36:10.73Z" }, + { url = "https://files.pythonhosted.org/packages/b3/1f/d1e78246f7ed60c8c8d606b4ac27f66ce49cc3e95f24893ccbeba9f77302/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62603db9a7caa0802eaa28c1c46fecd7b3a263a774069c24c3c28c302448721c", size = 247028, upload-time = "2026-09-30T04:36:12.294Z" }, + { url = "https://files.pythonhosted.org/packages/8e/37/eba316edd4f0c4d3a5d945924c4eeeae59abac4056aa815d8a4268f863a2/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b6856554c4f44d79fc2307d5768854310a8f0096e501c75637542c82292b0429", size = 240562, upload-time = "2026-09-30T04:36:13.887Z" }, + { url = "https://files.pythonhosted.org/packages/c8/8e/aaa037d40ca9ef045977f1a661048b1aa33f223adfce3452fe9be9f79d14/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1bc0baf5ef96b6ede57d47f4b8fe4d9d84019c3bfcbeb20a41edc6a6ee341f1f", size = 271699, upload-time = "2026-09-30T04:36:15.41Z" }, + { url = "https://files.pythonhosted.org/packages/26/19/1c1c9f75974adf523b87f34b8a2adc5a435cd65916812bcbd0dfa45f9a29/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:56bc200a365efb37383b7852e4cc5898d3b2da5987289b543956cf8cad71018a", size = 252030, upload-time = "2026-09-30T04:36:16.839Z" }, + { url = "https://files.pythonhosted.org/packages/bc/90/0660ef18e18df0a4d2a1a0edff7dfbba42d4e50ef2425557a5bb7051f77b/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2c9ad19a6cfcd5ea5c0d41161d22f9df1dcc277e9bef2751391334546a314c00", size = 268565, upload-time = "2026-09-30T04:36:18.468Z" }, + { url = "https://files.pythonhosted.org/packages/79/ba/57adc269824e8658f1a0f97a9e514c247445a9632b3419b97e0ba37f16dc/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e243bd13217235fc7290c621941c3f5cc8b66e4872495be821d7436ba2fb838d", size = 257627, upload-time = "2026-09-30T04:36:19.938Z" }, + { url = "https://files.pythonhosted.org/packages/9a/85/33abd4315c052d3d4f54c92b1ee49bfbc0dc7115a981e462a793b6d2ab87/charset_normalizer-3.5.2-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:a090bb2c68df85450502e3e20d665e3a5af9c65a84d6508ed477badd49166fd3", size = 143407, upload-time = "2026-09-30T04:36:21.376Z" }, + { url = "https://files.pythonhosted.org/packages/4f/de/6435e18d1aaa5d910b896d551411c96af1f42a0c56c29afc2016c61ccc2e/charset_normalizer-3.5.2-cp313-cp313-win32.whl", hash = "sha256:2b7b3bbfb4fe8ef40600792d762fbaa9057559f9d3fad209525b7a22b99e91fd", size = 183207, upload-time = "2026-09-30T04:36:22.776Z" }, + { url = "https://files.pythonhosted.org/packages/9c/76/b8ec57f4e9ee3253541abf95e4a462c0175fe8032dcd070f1f2421240942/charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:78456a747de8dc58360ffa581f30a002baf5aa28cb262536545e91f113ed7639", size = 206489, upload-time = "2026-09-30T04:36:24.306Z" }, + { url = "https://files.pythonhosted.org/packages/3e/60/c647c6ae47480221e875ea5d743ff94946f7416e3c69415ab772928e8d32/charset_normalizer-3.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:11912e4bb14baae7c5d8791aa55ba0a3a03ec6729073307b0f57270abaa713d3", size = 195501, upload-time = "2026-09-30T04:36:25.846Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/7aa91362a2f77ac8e9e28a9b902a74f7d0e11a851ef0d27a74308da8cd90/charset_normalizer-3.5.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187", size = 226010, upload-time = "2026-09-30T04:36:27.669Z" }, + { url = "https://files.pythonhosted.org/packages/a8/cf/ac8878d0322cf88a1aad4c7b147db32ca0bd806eb0060957b2e31486dbe6/charset_normalizer-3.5.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad", size = 239266, upload-time = "2026-09-30T04:36:29.434Z" }, + { url = "https://files.pythonhosted.org/packages/c9/6d/9a08d7e0b29b7208e2c6c01dc56c8e0520e7c7beadbbfb024b58fd69c8a5/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf", size = 206783, upload-time = "2026-09-30T04:36:30.872Z" }, + { url = "https://files.pythonhosted.org/packages/82/44/b0aa350280e6ff5a5492d17cf10460dd39d5ee848f872f7ba2df10607f60/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995", size = 210449, upload-time = "2026-09-30T04:36:32.625Z" }, + { url = "https://files.pythonhosted.org/packages/7c/8a/40db9aa9f5907bb0e6f8b6d64064bf8852fb33d4b813ff9414911df7647c/charset_normalizer-3.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424", size = 367815, upload-time = "2026-09-30T04:36:34.197Z" }, + { url = "https://files.pythonhosted.org/packages/7f/72/9c5e7707b57c8ddfa9ddf7b0b1d009d7fbab9e9e887d5b721060f37e307d/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13", size = 247095, upload-time = "2026-09-30T04:36:35.803Z" }, + { url = "https://files.pythonhosted.org/packages/83/09/71e453691e927de4ddf792770cfaab3f49d494e222f66ea5e404bbd5e39c/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d", size = 233942, upload-time = "2026-09-30T04:36:37.407Z" }, + { url = "https://files.pythonhosted.org/packages/9f/86/85c84e4da8b27dd409577d9437926ff581c5f9d3c66038dc68c1a526de51/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4", size = 273762, upload-time = "2026-09-30T04:36:38.904Z" }, + { url = "https://files.pythonhosted.org/packages/92/08/564955a4b5f2ccb410ab480bbe8c6a18063ff27f2d35458731c4a5335df9/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438", size = 269514, upload-time = "2026-09-30T04:36:40.469Z" }, + { url = "https://files.pythonhosted.org/packages/18/24/bad3ac4271589df29cf5ce2f5ae490518a5739358052bd0d61209e6fea54/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a", size = 255056, upload-time = "2026-09-30T04:36:42.02Z" }, + { url = "https://files.pythonhosted.org/packages/d6/3e/350d89ad49916b86554d6f5f2d03ec1152148f87e5ff735106c6a03b1a36/charset_normalizer-3.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56", size = 251311, upload-time = "2026-09-30T04:36:43.577Z" }, + { url = "https://files.pythonhosted.org/packages/56/5b/4970a2d154df502e133402906dd04e3ae7cada7b3011283c88d0479a2585/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd", size = 250190, upload-time = "2026-09-30T04:36:45.185Z" }, + { url = "https://files.pythonhosted.org/packages/88/8c/f1a91bddc8fb47c2889e29ea7ea49a194eb0d9868675d786806519c00d76/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204", size = 237098, upload-time = "2026-09-30T04:36:46.689Z" }, + { url = "https://files.pythonhosted.org/packages/24/0e/bb5dace3cc7e79068425386a6589c19b5a2ab5fefc2a46abea6919683332/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7", size = 274228, upload-time = "2026-09-30T04:36:48.31Z" }, + { url = "https://files.pythonhosted.org/packages/9d/79/b849ad523017ea9f5a45581bbebed91439e0cf42fd2860a6f64e358eb5a6/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd", size = 252401, upload-time = "2026-09-30T04:36:50.091Z" }, + { url = "https://files.pythonhosted.org/packages/89/8c/75469d690cf47200bce8f6cad7655724fc23148e147abfc5ce78b5f65863/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc", size = 271846, upload-time = "2026-09-30T04:36:51.719Z" }, + { url = "https://files.pythonhosted.org/packages/26/cd/6d52d3c7437cdcf2e310ce9f28f282e733d4ef60ed19105d1819c356255f/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874", size = 258151, upload-time = "2026-09-30T04:36:53.234Z" }, + { url = "https://files.pythonhosted.org/packages/f7/4c/070b38bdb5f49a70199fce923ec0726a49536a63ab262abbfcaaf351110b/charset_normalizer-3.5.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655", size = 143570, upload-time = "2026-09-30T04:36:54.816Z" }, + { url = "https://files.pythonhosted.org/packages/81/84/9ebfc8ed6c8c4fcd8e726ff6bf220cc8deb3966e31dce9be8dd8aa017e64/charset_normalizer-3.5.2-cp314-cp314-win32.whl", hash = "sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0", size = 186412, upload-time = "2026-09-30T04:36:56.643Z" }, + { url = "https://files.pythonhosted.org/packages/d1/78/5ed86f743d4bc350db307e7636419a0a5ee1d91806d30c7f667bd5c80dae/charset_normalizer-3.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c", size = 210965, upload-time = "2026-09-30T04:36:58.205Z" }, + { url = "https://files.pythonhosted.org/packages/53/94/a3a7698e9b1a395e1eb99ccd9a324be9347973bff4e72db2a06496d7cd27/charset_normalizer-3.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253", size = 200406, upload-time = "2026-09-30T04:36:59.764Z" }, + { url = "https://files.pythonhosted.org/packages/c1/48/c5dd00d5ef7791f02666de250a5bb6071e29b7e133cf4b835800b6d3bc27/charset_normalizer-3.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709", size = 396871, upload-time = "2026-09-30T04:37:01.543Z" }, + { url = "https://files.pythonhosted.org/packages/12/c8/8379554b42e8368161d898476686947a0fdbd3e8865170d7909dcabfdee8/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084", size = 249711, upload-time = "2026-09-30T04:37:03.111Z" }, + { url = "https://files.pythonhosted.org/packages/4a/eb/2ddb1035d17320caa9f41682935123a9a250277b261c3efc86b2d2a21343/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb", size = 231146, upload-time = "2026-09-30T04:37:04.721Z" }, + { url = "https://files.pythonhosted.org/packages/4a/24/2ecb4bde104322cd7859d6594fcfa74649f8d90b3221c9feecbef149875b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f", size = 271552, upload-time = "2026-09-30T04:37:06.295Z" }, + { url = "https://files.pythonhosted.org/packages/3f/98/9d5f6ebc3aee9fef5d30b4aff11fb2ab7a1222b4064f8ef2c7c87cde217a/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09", size = 269810, upload-time = "2026-09-30T04:37:07.905Z" }, + { url = "https://files.pythonhosted.org/packages/09/e1/a3b06a10461b1b7628853c934c644e03bc28e42767116afb52f19a56519b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80", size = 259845, upload-time = "2026-09-30T04:37:09.554Z" }, + { url = "https://files.pythonhosted.org/packages/fd/d3/6f561f74a296cf27d61775a1dc665ad13f3bff6a798810ca05907f37a7c4/charset_normalizer-3.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c", size = 252825, upload-time = "2026-09-30T04:37:11.274Z" }, + { url = "https://files.pythonhosted.org/packages/26/9f/69e13ca3b18f43e0eafcd34c04a45b732ae22a43b54a5fc9e119103356eb/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f", size = 252659, upload-time = "2026-09-30T04:37:12.941Z" }, + { url = "https://files.pythonhosted.org/packages/73/a9/ace29806a0dae18939919c76ba526472d83214afa101105fabff2cf30625/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03", size = 238819, upload-time = "2026-09-30T04:37:14.659Z" }, + { url = "https://files.pythonhosted.org/packages/f8/c1/6116d52a2e3311ec80f21f5fb5e17b27405f10b9608af8f6e69516841a1b/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604", size = 272973, upload-time = "2026-09-30T04:37:16.346Z" }, + { url = "https://files.pythonhosted.org/packages/19/aa/9955c7e93bba10a9c7e8f7a5031b7ced66f3a1883a55c00712b8d5850ff3/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8", size = 253692, upload-time = "2026-09-30T04:37:18.212Z" }, + { url = "https://files.pythonhosted.org/packages/bb/33/2a6ae7fdc1b10cb581cef91addd8cdfc5f40d50abb5702309369d5834579/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93", size = 268757, upload-time = "2026-09-30T04:37:19.877Z" }, + { url = "https://files.pythonhosted.org/packages/a2/22/80992720a0282cd39bba1db35868e6b9c22f41281160143a836544bc1d8a/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915", size = 262220, upload-time = "2026-09-30T04:37:21.583Z" }, + { url = "https://files.pythonhosted.org/packages/92/9f/181fd07e1bffea1d95cd80c84ac537354f50699c22cfc4d3c02b6fc16208/charset_normalizer-3.5.2-cp314-cp314t-win32.whl", hash = "sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5", size = 197797, upload-time = "2026-09-30T04:37:23.235Z" }, + { url = "https://files.pythonhosted.org/packages/49/1c/25d8415ec1c4f2f41f1680435e4c87cfb378ff2f677d950946f2a45d0632/charset_normalizer-3.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc", size = 222765, upload-time = "2026-09-30T04:37:24.891Z" }, + { url = "https://files.pythonhosted.org/packages/3e/b4/46b48f013dadfc0d0d33b375438e31bdf5a989dc68389c6bf627054d4df9/charset_normalizer-3.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105", size = 210985, upload-time = "2026-09-30T04:37:26.634Z" }, + { url = "https://files.pythonhosted.org/packages/ca/e9/34e597dee616d0b8ee4b34d29399e85c2204ade174157a48505d42baa4ff/charset_normalizer-3.5.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:87475fabc8d9996fd9c27debb395e642e8c838d78a00b6e932227a0e06b81e26", size = 367676, upload-time = "2026-09-30T04:37:28.329Z" }, + { url = "https://files.pythonhosted.org/packages/60/9f/a5d1c91c0263745e2cd344c5a4415d787c575501ab1d449f1148ac6b495d/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9409a8bf35cf78353942504b24a57de3d75b708997a1e4bd8db71ac8633ce364", size = 248414, upload-time = "2026-09-30T04:37:30.167Z" }, + { url = "https://files.pythonhosted.org/packages/26/79/e697f77464748a3ee3cf490c83d592459400d4898380d66c38366b03080c/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:498dc3188ca05a68231ac3fdbfc7f57eb67e1343c30e0fea17f8218c1599b253", size = 244775, upload-time = "2026-09-30T04:37:31.964Z" }, + { url = "https://files.pythonhosted.org/packages/ca/87/3d42a42e18ea066e2513936fd678a00696e77878b5ae04528976abdbcb83/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e242bb1c5e76e97dfa9e7f209a71e93a01d7f19ffdd5cfbb2e2d55b4f08f8ab0", size = 273877, upload-time = "2026-09-30T04:37:33.661Z" }, + { url = "https://files.pythonhosted.org/packages/c3/76/8a28136f3938ba9836f84280ce0c4d61ed1cf15a036b2034900c62634162/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:def79fa35ef0cef8d2accec024f4fdc7ead3012ff02f5215c783f39f03ef8cfc", size = 269455, upload-time = "2026-09-30T04:37:35.573Z" }, + { url = "https://files.pythonhosted.org/packages/a0/a1/4fbf5d0f0f1b2a080474c1cf9a2f12c4c6531bb0e8ba591055e846d2b4e9/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3df041de8887954562c9b261cba85ca0e9ded74048daf125f45edcfaa4832229", size = 257336, upload-time = "2026-09-30T04:37:37.397Z" }, + { url = "https://files.pythonhosted.org/packages/ba/a2/8b50aa320adb880ad579518e6f718f24944804b42a88b83d267d5d444125/charset_normalizer-3.5.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:04851f73ae72b8413dddadb16a49dfee95263553741fd42d546f7d66907e6be5", size = 257584, upload-time = "2026-09-30T04:37:39.522Z" }, + { url = "https://files.pythonhosted.org/packages/a5/57/50e3fed84e175f40349bd0da7a4fce94c87f0378f52d74f511d89e0bdc20/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:183b88127acdb4fabe59d951ab424faf1af7b63cdbb5f776186c1ea2ffcaed98", size = 251854, upload-time = "2026-09-30T04:37:41.23Z" }, + { url = "https://files.pythonhosted.org/packages/d6/54/f7fbb3493c9f49091213b9c2d6dd65800696f1ce1a3f196a4205f50417b1/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:16fa0eccf81304b79c5cd87f9271c3b85dd9dd99245e4422ae9c0dd45e0f99d3", size = 248767, upload-time = "2026-09-30T04:37:42.883Z" }, + { url = "https://files.pythonhosted.org/packages/d9/37/b3a6385acc5a1e45b39ae9c90bfb9cf838a09b9dd37ef2740ab4c6b4a2eb/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:7441d755b7ab94f8d4eb3e43ec05482d760842fd263d003a99102d742cd835e2", size = 274479, upload-time = "2026-09-30T04:37:44.658Z" }, + { url = "https://files.pythonhosted.org/packages/89/44/809913e2cfd279e635a9294fdbbfb1b1dc62a8189d473d561f649fce98d8/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:ca403d7e4798f525fdfc78e258820419cbbd0f0ecbab9de7840e3c017cf6b8cf", size = 258310, upload-time = "2026-09-30T04:37:46.529Z" }, + { url = "https://files.pythonhosted.org/packages/af/a2/f28400ab13359d91bd39179df8e149376b9bf36588e739a3a4f9de2b84b2/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:df29a0a7107f7011e77f4eebdddec4c7331e24d787a0b21a46d63bdf7445da95", size = 271100, upload-time = "2026-09-30T04:37:48.399Z" }, + { url = "https://files.pythonhosted.org/packages/e9/89/9bab37955edf0adb3b66f8a3a6617d9f2f487e0d56f295a6a286cb640aa6/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f3c96f633825733f735c5a9cf21d21a257d8e1edf0b1cee0a064b9c424ca0f7d", size = 259936, upload-time = "2026-09-30T04:37:50.023Z" }, + { url = "https://files.pythonhosted.org/packages/23/b5/4459e08d45a679f903d50fea08bc52cfa728cca4d7bd02c757b5e5abda2e/charset_normalizer-3.5.2-cp315-cp315-win32.whl", hash = "sha256:281cb91036248400f4cc957495cccd44c275c2e0c5854f7e45ac5cf7dc193847", size = 186301, upload-time = "2026-09-30T04:37:51.722Z" }, + { url = "https://files.pythonhosted.org/packages/98/e8/55d5fd3935b4bce6da4fe0df61898e8c82653e317e677bd58aceb9c60f13/charset_normalizer-3.5.2-cp315-cp315-win_amd64.whl", hash = "sha256:89b53f3cda69831909888e0494f4fa0bcd3537e3e138dabeb620bd6ad946bae8", size = 210858, upload-time = "2026-09-30T04:37:53.427Z" }, + { url = "https://files.pythonhosted.org/packages/a9/5b/974423c2fd8e524c7a7f64318c1e02240ef954912fa2b4d70344107b9c68/charset_normalizer-3.5.2-cp315-cp315-win_arm64.whl", hash = "sha256:6be488a102b8cf28d0391d8c4ba7748938ae28b78ad901f8585520fca33ead1a", size = 200309, upload-time = "2026-09-30T04:37:55.015Z" }, + { url = "https://files.pythonhosted.org/packages/ee/f9/00ee0195db1013d8f7c416fd770fbeb560bb46eb2e36b054d05cb56f6cfa/charset_normalizer-3.5.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:915563965d418f986e7e145accc592eae9e1a1be3566ff98a05d7a9ec42a76e1", size = 395343, upload-time = "2026-09-30T04:37:56.743Z" }, + { url = "https://files.pythonhosted.org/packages/04/3a/c00b50e94c964cf934c7899cd47c97952fc11dad71cc5884b3c61795b09b/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65cd72beeeca9d3aaea1201e5923859f308f952f9c71de93f06063c79f0f7a3b", size = 250114, upload-time = "2026-09-30T04:37:58.607Z" }, + { url = "https://files.pythonhosted.org/packages/50/27/d102dc880bbcffd0479ab64dfc1fb96777a854355a55e2bda72a71efadcb/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b7fd005a73d9e657273b7a10dc71a9e03c8fb9ee6999798d6918ce095b81ac7f", size = 239997, upload-time = "2026-09-30T04:38:00.511Z" }, + { url = "https://files.pythonhosted.org/packages/a5/4a/bf7ef45794dd293fab5f98a9309817977fbb845b9998f171b8cc5d8437a3/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e54da4baf05720032d527874d40b65fa4d7e5c6c6a43d0c3adbeffcaf275a2b3", size = 272313, upload-time = "2026-09-30T04:38:02.509Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ee/008a2837737991474c5754bb3191010007663860979701990982a502cbaf/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:124fbf1a8ff966d87ae05bb8bd45a71f966055ed8bba320d0c7cf450bc5f4d0e", size = 269986, upload-time = "2026-09-30T04:38:04.435Z" }, + { url = "https://files.pythonhosted.org/packages/93/ad/bd74a283940dc910c5b14f8e4f80a248082bc9c0fcbe1f54530cb6d9cc5e/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28b4f0d66fb834ff90f28209ac7bce77868c45d8c93e26f906709d9b7c2e1af9", size = 260202, upload-time = "2026-09-30T04:38:06.549Z" }, + { url = "https://files.pythonhosted.org/packages/8a/7b/ed341c66f69f688723501fac752be3d63c7159ca0d0d4174fc611e5710bb/charset_normalizer-3.5.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:58ca3755ee7ff7f59b57789ec9833c9de9ea275405cdd240eda1f193112e398a", size = 259083, upload-time = "2026-09-30T04:38:08.311Z" }, + { url = "https://files.pythonhosted.org/packages/cc/9d/e41588b777965e5031a43128a1e96173ebb35ac75fc53ec3b517e7c21cd4/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:443eae2bf318abeaf6f15d785138f71fd6de770e99a92158b8b814265e079115", size = 253081, upload-time = "2026-09-30T04:38:10.402Z" }, + { url = "https://files.pythonhosted.org/packages/81/35/b761eb6d8c1eb218b9b42b9b4d5ac902afdc399fb6dac6f9a9aac7bda589/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:58f361dcbab699cf8f42db3f47c8e7fd1036f138c23a5d08de9fde5f425a730c", size = 248712, upload-time = "2026-09-30T04:38:12.317Z" }, + { url = "https://files.pythonhosted.org/packages/4d/2c/147169a041b747759f37405c0a97157e8e92de967968373101ff14915cba/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1b4cbc7c3491ccb4aa17fcd8165649d01cf39f76de1696da8631b5f71b85401d", size = 274176, upload-time = "2026-09-30T04:38:14.138Z" }, + { url = "https://files.pythonhosted.org/packages/f0/2d/0ff8db0d373ba8538db686db11cd7e8912031490b9e4f383b41912e8d594/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:ba0b1d2620edf869789c3879223f52bf2afc5d31b3cb47cc57b3a12c05e2aa9d", size = 259413, upload-time = "2026-09-30T04:38:15.841Z" }, + { url = "https://files.pythonhosted.org/packages/8a/8e/b4a085fb47c9d3a7e43576a4784fdd8fe23f907514a972de8086edaf7a48/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:5e2b6b57e9733d39f0c9fd3185efa6b8e29652c4cd8fe94180272cf6ed9a78c4", size = 269434, upload-time = "2026-09-30T04:38:17.626Z" }, + { url = "https://files.pythonhosted.org/packages/83/1c/d8d8d7322a7c3eecdf3237a4a419cf41d2eaad8e006ce7dfdd9d4c8fa2eb/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:51cf45226a9b588d0d2b4880c62d686934b63ab0bd79ca23ab0e9762eb27441b", size = 262716, upload-time = "2026-09-30T04:38:19.214Z" }, + { url = "https://files.pythonhosted.org/packages/a0/16/0e4c6ba9b44e97a2da150e52d331e8f9c968b21b358fbffa6c856cebcd89/charset_normalizer-3.5.2-cp315-cp315t-win32.whl", hash = "sha256:5fb29fb8cd1a46c27a1bf9613ad5ec2599310d46b4025d9556404a6b6a292800", size = 197159, upload-time = "2026-09-30T04:38:21.037Z" }, + { url = "https://files.pythonhosted.org/packages/be/33/e90bc2b1374f7f36ef106f56620de5a783907e19ca857efe2277e31cac3e/charset_normalizer-3.5.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a192e2c40070d92c3ccf777e3a5c4ff515573cd2bb7ed0c537fdadbbec5bbf21", size = 221322, upload-time = "2026-09-30T04:38:22.886Z" }, + { url = "https://files.pythonhosted.org/packages/66/89/dfa6dcb08c200b7830ab56439e8c1890f2971d51aafbb3937894a2e7fcfc/charset_normalizer-3.5.2-cp315-cp315t-win_arm64.whl", hash = "sha256:749e97e1b32313717a565abbe321bc2190bc8b35f1a67e4cdbc7c56c8d8ffe58", size = 209192, upload-time = "2026-09-30T04:38:24.648Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" }, + { url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" }, + { url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" }, + { url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" }, + { url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" }, + { url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" }, + { url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" }, + { url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" }, + { url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" }, + { url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" }, + { url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" }, + { url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" }, + { url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "docutils" +version = "0.22.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ae/b6/03bb70946330e88ffec97aefd3ea75ba575cb2e762061e0e62a213befee8/docutils-0.22.4.tar.gz", hash = "sha256:4db53b1fde9abecbb74d91230d32ab626d94f6badfc575d6db9194a49df29968", size = 2291750, upload-time = "2025-12-18T19:00:26.443Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/02/10/5da547df7a391dcde17f59520a231527b8571e6f46fc8efb02ccb370ab12/docutils-0.22.4-py3-none-any.whl", hash = "sha256:d0013f540772d1420576855455d050a2180186c91c15779301ac2ccb3eeb68de", size = 633196, upload-time = "2025-12-18T19:00:18.077Z" }, +] + +[[package]] +name = "furo" +version = "2025.12.19" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "accessible-pygments" }, + { name = "beautifulsoup4" }, + { name = "pygments" }, + { name = "sphinx" }, + { name = "sphinx-basic-ng" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ec/20/5f5ad4da6a5a27c80f2ed2ee9aee3f9e36c66e56e21c00fde467b2f8f88f/furo-2025.12.19.tar.gz", hash = "sha256:188d1f942037d8b37cd3985b955839fea62baa1730087dc29d157677c857e2a7", size = 1661473, upload-time = "2025-12-19T17:34:40.889Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f4/b2/50e9b292b5cac13e9e81272c7171301abc753a60460d21505b606e15cf21/furo-2025.12.19-py3-none-any.whl", hash = "sha256:bb0ead5309f9500130665a26bee87693c41ce4dbdff864dbfb6b0dae4673d24f", size = 339262, upload-time = "2025-12-19T17:34:38.905Z" }, +] + +[[package]] +name = "idna" +version = "3.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, +] + +[[package]] +name = "imagesize" +version = "2.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fb/5e/513ff06670c84e7b9887c1fdf61b2d42b4f574a831f2f1d2222023049d8a/imagesize-2.0.1.tar.gz", hash = "sha256:b2ba6a4dea487a7ebcd53248d3476aca449d30db12a2dde5e0c5ca9624fd77e5", size = 1883774, upload-time = "2026-08-24T12:35:19.13Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/01/f9/575c8d760eae1fc99651b7cc5efd96ad5379ca4d6b53750b0fb4fe983f34/imagesize-2.0.1-py3-none-any.whl", hash = "sha256:ea0c9a0384df69ed86a943a15cde37d0360b82491b3910dc2215e202e62b5b02", size = 14794, upload-time = "2026-08-24T12:35:12.548Z" }, +] + +[[package]] +name = "jinja2" +version = "3.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115, upload-time = "2025-03-05T20:05:02.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" }, +] + +[[package]] +name = "libtmux-docs" +version = "0.0.0" +source = { virtual = "." } + +[package.dev-dependencies] +dev = [ + { name = "myst-parser" }, + { name = "ruff" }, + { name = "sphinx" }, + { name = "ty" }, +] +docs = [ + { name = "breathe" }, + { name = "furo" }, + { name = "sphinx" }, +] +lint = [ + { name = "ruff" }, + { name = "ty" }, +] +testing = [ + { name = "myst-parser" }, + { name = "sphinx" }, +] + +[package.metadata] + +[package.metadata.requires-dev] +dev = [ + { name = "myst-parser", specifier = ">=5.1.0,<6" }, + { name = "ruff", specifier = ">=0.16.1" }, + { name = "sphinx", specifier = ">=9.1.0,<10" }, + { name = "ty", specifier = ">=0.0.35" }, +] +docs = [ + { name = "breathe", specifier = ">=4.36.0,<5" }, + { name = "furo", specifier = ">=2025.12.19" }, + { name = "sphinx", specifier = ">=9.1.0,<10" }, +] +lint = [ + { name = "ruff", specifier = ">=0.16.1" }, + { name = "ty", specifier = ">=0.0.35" }, +] +testing = [ + { name = "myst-parser", specifier = ">=5.1.0,<6" }, + { name = "sphinx", specifier = ">=9.1.0,<10" }, +] + +[[package]] +name = "markdown-it-py" +version = "4.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz", hash = "sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49", size = 82454, upload-time = "2026-05-07T12:08:28.36Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687, upload-time = "2026-05-07T12:08:27.182Z" }, +] + +[[package]] +name = "markupsafe" +version = "3.0.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/38/9b/e422a865e1d5d57d0e509b4e0bf1c1a70a7f6382c29a5aa428df994c8bc8/markupsafe-3.0.4.tar.gz", hash = "sha256:2e9ad7dd851bf45fab9f75cbff4cb493fee9979e8d8c7c9c3ee119022518edd6", size = 153777, upload-time = "2026-10-02T23:07:22.29Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/09/4c59d56b8461ae8eb0d8ba34bb25b7e618547044679d58a82ef9b2479fc1/markupsafe-3.0.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:61631e08084be9e21a8967ec3139c7616ed7c5e9368e05c86d1b39562c8a57b6", size = 11658, upload-time = "2026-10-02T23:04:51.876Z" }, + { url = "https://files.pythonhosted.org/packages/a2/f0/d6613774d86fbf6d145751d43c59875e47a6f9f17daee0aef173bd36d90e/markupsafe-3.0.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f", size = 12050, upload-time = "2026-10-02T23:04:52.931Z" }, + { url = "https://files.pythonhosted.org/packages/0d/f2/8f18e0b806eb13c1f8d07d917a720831ead54253a6dec011fbc78098a6f8/markupsafe-3.0.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6a45c3d514f2436064db00d7fc8778d888f0236ebfed649b53d13a59e69ad51b", size = 24363, upload-time = "2026-10-02T23:04:53.895Z" }, + { url = "https://files.pythonhosted.org/packages/60/ce/fa07dbe8a5675558fa36dea033e19995bc783de2dec5f540ccb9030b06aa/markupsafe-3.0.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1e1451fab512d1bcc3dc26988ec1edb0b82c2db909132872cd9356070a6b63df", size = 28525, upload-time = "2026-10-02T23:04:54.905Z" }, + { url = "https://files.pythonhosted.org/packages/85/40/be87c01f3868ec217f8a2015089d71c22c8c5a75324822e5ed1cdd87210d/markupsafe-3.0.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bd3ce56ae2cbae3ba82b683bc425cd7e48d2ed8b10f3e818186b6f5646d9271c", size = 24733, upload-time = "2026-10-02T23:04:56.229Z" }, + { url = "https://files.pythonhosted.org/packages/4f/a7/aeedb5140afa41fc74c225e9184ab96723a6e873b6ee1c9fede7283456d8/markupsafe-3.0.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581", size = 22985, upload-time = "2026-10-02T23:04:57.521Z" }, + { url = "https://files.pythonhosted.org/packages/c3/fc/e91352bb08c6a59da3ef0909d457bf95a5f5908fbf151b30a06d9dbcfbb4/markupsafe-3.0.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c02e8f18bdedba082cef725942ac823b9b60656db07f7e265cb31618dfd00d77", size = 22001, upload-time = "2026-10-02T23:04:58.597Z" }, + { url = "https://files.pythonhosted.org/packages/5d/f8/bffee5e7d2a3deb59748a797650a48af7e672025cf641a79344a771ad106/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9f098115c247e11d138ab83a28fa0323c77015007ea2df73ba5fd714dfefd67c", size = 23793, upload-time = "2026-10-02T23:04:59.686Z" }, + { url = "https://files.pythonhosted.org/packages/ed/59/b853d6628ecb4d658e1d637224846d5e9bb4adf4f8df97f3be9f29dce2ec/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d5f93ebbeb8032d47e349328ec8662d973d9b05a70b3c35df1f91fe419b84749", size = 22640, upload-time = "2026-10-02T23:05:00.768Z" }, + { url = "https://files.pythonhosted.org/packages/09/b2/1506df394f0f075797c418d0301498f49e43be194e3ffcb49e6fe6ccf022/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:64511c54db4e4987aef4c41923235927428729e8174c5dba488429be70a998ed", size = 24074, upload-time = "2026-10-02T23:05:01.813Z" }, + { url = "https://files.pythonhosted.org/packages/c7/81/5ed69cda630ac69ef60d06c09ba5a7f84ff66a2e28cf986fd5614ab3c6e6/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:e1a622f13970d81f95d0c72f9dc090dce9085fccfa4c9f2174377ee32bd15786", size = 21563, upload-time = "2026-10-02T23:05:03.239Z" }, + { url = "https://files.pythonhosted.org/packages/0c/fe/fb1e79be0fea60aa32602ebefc9c35a82bb42b4df157285ab7dfec12341a/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c9a7f43c0b202b334cc9184af09bb8f21d3a209e038efaf106936fb69e6b026e", size = 23048, upload-time = "2026-10-02T23:05:04.479Z" }, + { url = "https://files.pythonhosted.org/packages/c8/52/7632a53360671a9b750cdbabaf9cdd89f18b42248b8e4cb42c0b0296e459/markupsafe-3.0.4-cp312-cp312-win32.whl", hash = "sha256:f0ec3b750b59375eab5b0fb2b9254810c00a3375be6d789899f1055a1d556237", size = 14108, upload-time = "2026-10-02T23:05:05.513Z" }, + { url = "https://files.pythonhosted.org/packages/3f/bf/62495e180b7000aaf30000fff849e933f74264638057176cf46852500adc/markupsafe-3.0.4-cp312-cp312-win_amd64.whl", hash = "sha256:11935df9bf455ed0c04eb87bcd720f02b1fe5e02128a9430f23aed6f93336fc7", size = 14303, upload-time = "2026-10-02T23:05:06.538Z" }, + { url = "https://files.pythonhosted.org/packages/c5/8e/4c24208776a65878d656996945aacfbfe010d3720d1a98fc0eb8491fc03b/markupsafe-3.0.4-cp312-cp312-win_arm64.whl", hash = "sha256:a4bbd2d87dd233b9fc5812160c3d0ffbe42edc22a26ce0469f58479ede633fe9", size = 14174, upload-time = "2026-10-02T23:05:07.617Z" }, + { url = "https://files.pythonhosted.org/packages/6d/18/4bc5ba32499e87bb2b0ef5b3a9bb9c00a131fa961ddf0be548cb550f548b/markupsafe-3.0.4-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:de8b364c423ef0a4bad9069657d617f9a5d2b2062457a89b1fa16ee199c399c1", size = 12786, upload-time = "2026-10-02T23:05:08.709Z" }, + { url = "https://files.pythonhosted.org/packages/4e/6f/17f0c099bf25f3e31e63cc19244d9f6af861a9a4ab778c203997903cfdd0/markupsafe-3.0.4-cp313-cp313-android_24_x86_64.whl", hash = "sha256:34bdde374c5932765d7dc685c4a1d191a3207852d67e8e0a9eb6ea85156181f1", size = 12510, upload-time = "2026-10-02T23:05:09.93Z" }, + { url = "https://files.pythonhosted.org/packages/11/af/1a141081b905036ee904ec4bd945e1f70b4e1b32d33c4e59e8cf1d58b247/markupsafe-3.0.4-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:6bd9e1788e15bfcf6a9082de42e30387e7b85d211ab21e57a939bb8cfaaf8d96", size = 11583, upload-time = "2026-10-02T23:05:10.884Z" }, + { url = "https://files.pythonhosted.org/packages/e7/0a/a89385ae590232622a03e091805cff12f24fabe6c11e0e8bae096cece81c/markupsafe-3.0.4-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:5066b244f576f91afc8ee3ba029a89f99d39c79b1853fe9d39bea9f0afbec148", size = 11801, upload-time = "2026-10-02T23:05:11.913Z" }, + { url = "https://files.pythonhosted.org/packages/ed/85/ea548dc013962eb73653124bc595635fbf9e0fa41d1f181a967ccb784dfb/markupsafe-3.0.4-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:7a83aa6e4805df46fed18e989d3d16f86ef60cb50bbc8d9ce3a6be89165fbf6e", size = 11443, upload-time = "2026-10-02T23:05:12.887Z" }, + { url = "https://files.pythonhosted.org/packages/cc/72/15f2e5ec9cf2eb00d5cdfe968d94e4156a7bd7303832c3f3b2c403a36839/markupsafe-3.0.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2d1b7d9308288661f56672b1b157d75fc536714d3638487bbea17b6318a78248", size = 11665, upload-time = "2026-10-02T23:05:13.829Z" }, + { url = "https://files.pythonhosted.org/packages/ca/e0/4030bea613677e333c8a2c901fd405055f657f9d06acba5b7357984b6ef7/markupsafe-3.0.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:73e77980c7207854f00fc4e71fb1626868d5740ab4012623d55c7a99ad122a72", size = 12061, upload-time = "2026-10-02T23:05:14.807Z" }, + { url = "https://files.pythonhosted.org/packages/f3/a5/28b76a7449eb702966b88bef599e2360b411fbb3afeee8fe560939be06ec/markupsafe-3.0.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7018d4af1cd272e847aa5917983ab5e83e4f6579f9dbfecd4a79c0ca80b144c2", size = 24395, upload-time = "2026-10-02T23:05:15.909Z" }, + { url = "https://files.pythonhosted.org/packages/07/6c/21232811afc3a063b5e934b1ae2efda52f46154ec382f585149c020e61fe/markupsafe-3.0.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c90d5b3d4e944e065a301d741b3c1d784f6bd1f503aa68b4967e32b2ba313d85", size = 27183, upload-time = "2026-10-02T23:05:16.976Z" }, + { url = "https://files.pythonhosted.org/packages/14/38/6ccdfa5b59049cb36fb80cbc80aee9cf1fc9bb77d1335ad435f2070b08cf/markupsafe-3.0.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:18a801868a884f216e784d7d14db2a4077143ce7610440aee2ce8f734e7cfcde", size = 24772, upload-time = "2026-10-02T23:05:18.209Z" }, + { url = "https://files.pythonhosted.org/packages/63/e0/cec6865dfe88cb48fedd4b20aed6af5158e41092adcbf3e028bcc6ec2108/markupsafe-3.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:434139499bb20b502ed3baa1f169e618f924a97e7a777fea1a49446d80106cf6", size = 23017, upload-time = "2026-10-02T23:05:19.286Z" }, + { url = "https://files.pythonhosted.org/packages/ee/76/6ed4940bb7648a9aac457c14f870cfdd5105f139a0fb1f29cd61fafa47d1/markupsafe-3.0.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9e227f3dbe6bde7491cf0a9965d00b88c6b1a4a95d11480ddf88bb96d397c19f", size = 22036, upload-time = "2026-10-02T23:05:20.352Z" }, + { url = "https://files.pythonhosted.org/packages/a1/4f/ed476226d4fe46a09090a36025bf319296810028df55eb12f1253b540f3a/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b8cd1f918b26fd7b1832ece557cc18f2d8747309ff8b3f0ef9d4250c5ad67a39", size = 23786, upload-time = "2026-10-02T23:05:21.576Z" }, + { url = "https://files.pythonhosted.org/packages/9a/35/66ff30450e35ef5fba9ebc930c9411747e537fd9447b65e44f5007e2b84d/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:a5fcffb37e602b0b3c1638a97746b9b96125caa9bcf6fa41d337a9261de231ee", size = 22672, upload-time = "2026-10-02T23:05:22.922Z" }, + { url = "https://files.pythonhosted.org/packages/32/0b/72f45ce4b4efcbca4b80cf1b06703eff0be8d37e82abb78f66c85a7ead1e/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5989cb26b2e1efc6a42216a9f6b5ee495ce5ace2e5b352a9af489976b32d1ee2", size = 24107, upload-time = "2026-10-02T23:05:24.175Z" }, + { url = "https://files.pythonhosted.org/packages/d2/03/71776e5fdcba04614b384cc102e8a4198208579d896fd1394cb7cb9aa900/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:add96447a86d205ab616665d53b2950ee81083757f56e6ea833c8b2917646b46", size = 21615, upload-time = "2026-10-02T23:05:25.215Z" }, + { url = "https://files.pythonhosted.org/packages/ab/5f/801ce02a02e7aee0f784b1ec7843026178f6adeb9c93ac67eb1992a9a84d/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:2628d3a8cb648ecebb3c5d6b0a1052d400e4d8b7ac0fb786be8d285b50040d17", size = 23076, upload-time = "2026-10-02T23:05:26.423Z" }, + { url = "https://files.pythonhosted.org/packages/4a/85/c43776625428f3bb4a61e8633940400e3efe6409e3c6f5bff26de5e45618/markupsafe-3.0.4-cp313-cp313-win32.whl", hash = "sha256:672d207103e6b16ca098611b0f9efad6bc00afd47c03d6ef62186495ca677dc0", size = 14118, upload-time = "2026-10-02T23:05:27.716Z" }, + { url = "https://files.pythonhosted.org/packages/6f/36/163da64de88a13db79214ef75fa041be7fa13bdb42261cf5b7484de14bfb/markupsafe-3.0.4-cp313-cp313-win_amd64.whl", hash = "sha256:1f1f9477e174582b0a1b583d60b66e1f2cf5d3fe12cee985e4aedf44766600e5", size = 14313, upload-time = "2026-10-02T23:05:28.749Z" }, + { url = "https://files.pythonhosted.org/packages/9f/a8/9b662783ffaa1149221432a923cee562f78b9cbbb8baa3df9b3753e63e1e/markupsafe-3.0.4-cp313-cp313-win_arm64.whl", hash = "sha256:06de8ef6331f6e822c28d577dc8bf43fe398800477c49498f38fc38b67ff33fc", size = 14189, upload-time = "2026-10-02T23:05:29.917Z" }, + { url = "https://files.pythonhosted.org/packages/5c/c3/a944f3b0df22bd129e96915b9f4e98d2eeca6516687d7618304a966c3c74/markupsafe-3.0.4-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:4ed644d75aa94a2baf7ec3a96eaa160ea58c742eb9d27c6506053c5c40fc84ed", size = 12787, upload-time = "2026-10-02T23:05:30.971Z" }, + { url = "https://files.pythonhosted.org/packages/d4/d6/a44863f69d88b6c7e27889108f70d47aed259edf89d5df3c5fca1eac87d6/markupsafe-3.0.4-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6d2a9efe686f9de00d0d1ea32a4a5a86d558a2277501bd78d964214eab625e59", size = 12525, upload-time = "2026-10-02T23:05:32.263Z" }, + { url = "https://files.pythonhosted.org/packages/17/8f/168ba80e532dd6a93f96f8f706f1ad41d7990b6e1aeedc1cc0d211a33497/markupsafe-3.0.4-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:8781a792a070cf2bd1b86d3aa943894115faaba6e88122a7bf32d62072742453", size = 11589, upload-time = "2026-10-02T23:05:33.251Z" }, + { url = "https://files.pythonhosted.org/packages/32/b3/aa2c95a574d3af39403a469b295886eb9b6d448da568cbebb5a2cbfdc2e5/markupsafe-3.0.4-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:971a3bbb75d97ae4e2e8f7d4834236f86f85f0c85e04ab2e191db1123b04f80b", size = 11801, upload-time = "2026-10-02T23:05:34.315Z" }, + { url = "https://files.pythonhosted.org/packages/60/d0/34b810107d83840e768bf485de795893ebbae35b26ab061b487adfa0a692/markupsafe-3.0.4-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:8909c2f1c6dd65e054ac4b573a91c8384d1492281e55d82d159d653f7a13adf6", size = 11447, upload-time = "2026-10-02T23:05:35.302Z" }, + { url = "https://files.pythonhosted.org/packages/6c/ab/2f8488f0f817a39fca068d2b17daf446bf5cdb3eae28c3720af534d873b4/markupsafe-3.0.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:4cf3468d5ec187ffffcaca8e61929a37448f215dafc1386a12c750a72fe53634", size = 11722, upload-time = "2026-10-02T23:05:36.363Z" }, + { url = "https://files.pythonhosted.org/packages/ad/40/e2d117b048d47282ade906fbfd92814cbee5647afc13fda88a3406039372/markupsafe-3.0.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:52704c5d36eb6dda8866493decd61111fff86244c9b1ad225ca01b9e91e5970f", size = 12061, upload-time = "2026-10-02T23:05:37.397Z" }, + { url = "https://files.pythonhosted.org/packages/9a/a8/73a81135e85ba66217f5af7facb03bbb386807e1a729ab64532e4c802652/markupsafe-3.0.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1caa2fa5a6184fb233153b35f654e6687bd555476f6170f29d8ee9be1a8b0af9", size = 24434, upload-time = "2026-10-02T23:05:38.407Z" }, + { url = "https://files.pythonhosted.org/packages/ac/ca/fa9216dd01efee2dfdacafe7df32b4d0170fbac694b0c258a193d6e53999/markupsafe-3.0.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:387d8cd30e69b3f0a72877b9ae717033396404e19095b17fe89753a981fda44f", size = 27183, upload-time = "2026-10-02T23:05:39.581Z" }, + { url = "https://files.pythonhosted.org/packages/fa/4e/a469509e538d37af51103b17b073126973f2b1cbf197ff32c7ddf025cfe5/markupsafe-3.0.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:051417f74bcaaefa316276e0ff723f541616ca51043d070da00249d9bddd3e3c", size = 24813, upload-time = "2026-10-02T23:05:40.671Z" }, + { url = "https://files.pythonhosted.org/packages/8f/db/d7282caf7ab03af44d5d6fdbaa019b35c7d7f1c90588b839c07cba640d6a/markupsafe-3.0.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8e9f292fcda89b324f2f5c91d13f1424a153e40fc2756f38ee23b15835ff300", size = 23049, upload-time = "2026-10-02T23:05:41.864Z" }, + { url = "https://files.pythonhosted.org/packages/30/f3/b6a425206e6964efda6acee544d0eb01d1501784d0b8e2dcc74986f33b17/markupsafe-3.0.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:df1ae86ff54725a01fa1a0510b914ca53a161b7050be74f6204e24aded5971d0", size = 22088, upload-time = "2026-10-02T23:05:43.014Z" }, + { url = "https://files.pythonhosted.org/packages/ea/8a/84d3582fc1f0d5bd466cdf2eebf175e172158a6e70701aacec1de1b35430/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8965520ac587c94a4ac48b729be3d8b8de00af39699b17585dfb599babe77977", size = 23846, upload-time = "2026-10-02T23:05:44.098Z" }, + { url = "https://files.pythonhosted.org/packages/1c/65/db101cce51b7ba4864ac491a9859d297dd1adf0e55b103fee9db9c47c527/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:340cbb1957ba99929cbf19a75626d36ba1ae21d1730b287d1cf7f824a20c4fc7", size = 22674, upload-time = "2026-10-02T23:05:45.23Z" }, + { url = "https://files.pythonhosted.org/packages/e0/49/ddee9813d71db0c7a5c9d97c832125e6758a0c844777f1cf076569bb0e22/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:3a93d9616ddecfb393727a0041a562cf0b15a244e20f2bd25efc7949be4c4f17", size = 24104, upload-time = "2026-10-02T23:05:46.398Z" }, + { url = "https://files.pythonhosted.org/packages/aa/0e/7d8518d726726870a2399d69fd30d0fa36c5e57a2132c336b58d7c491073/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:d2e56fd3b00222722abfb3f5f0759ddbae4b90811b5ad4343c64030ad1bde70c", size = 21637, upload-time = "2026-10-02T23:05:47.48Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b0/b505e8a361ba557dbf3b3aa7331ea39b00d2022a26e925ff8463b9714bb3/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:0d9c47709875fdb321452056622e930c52afbc07a7d780762fbb8b4d91ce6fa4", size = 23081, upload-time = "2026-10-02T23:05:48.611Z" }, + { url = "https://files.pythonhosted.org/packages/1c/ea/9cc3cea873f980c75cbdb6f4277ce30ee955de38be0b3d02f14c108e0698/markupsafe-3.0.4-cp314-cp314-win32.whl", hash = "sha256:38fc55594dab834470b6733dead2ee9e3f657fb0608c769dcafa0ba5ab52f45c", size = 14272, upload-time = "2026-10-02T23:05:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/80/f0/5792ff768a410f93ee3f84fc19345295ffc352d2c936b424cb37e514714c/markupsafe-3.0.4-cp314-cp314-win_amd64.whl", hash = "sha256:c1bc67752d5f21013cfe430df4062441714eab79f65a6a05e01505957e9c35fe", size = 14501, upload-time = "2026-10-02T23:05:50.788Z" }, + { url = "https://files.pythonhosted.org/packages/5f/cf/3d074a8edffcc6899355232ff2543ae8d929733239596423b7db79698bc9/markupsafe-3.0.4-cp314-cp314-win_arm64.whl", hash = "sha256:7e1636da3d8dfc220b6dd10264db5f2b165e4888c4518594898fbe381049af8a", size = 14364, upload-time = "2026-10-02T23:05:51.857Z" }, + { url = "https://files.pythonhosted.org/packages/d9/31/87ce42159aae2163cf3bbbd0c44bc87780510eecab1ea3859099aed95dcb/markupsafe-3.0.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:805c8b84534fa10891890f0e4be39f3a99e94615d93e8836bf9fa1fdca2feeb2", size = 11759, upload-time = "2026-10-02T23:05:52.951Z" }, + { url = "https://files.pythonhosted.org/packages/5f/53/b047207eeb7752e960aca3eb1df5fb7eefa7dd4c62ac49bb156456c8a702/markupsafe-3.0.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:fa95848c929b6a75f6848d3c9793e59db365ee436776e57db835cdbfa79ba977", size = 12096, upload-time = "2026-10-02T23:05:54.066Z" }, + { url = "https://files.pythonhosted.org/packages/ee/51/4326c88a13c7b755657d44b4bb986f8c3d9843ecba7e22d98661d87f9a57/markupsafe-3.0.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e916035e3e9930cbdfdd10abf48861340221857f45509565898e012263f7b289", size = 25699, upload-time = "2026-10-02T23:05:55.15Z" }, + { url = "https://files.pythonhosted.org/packages/f2/bb/990581b7474bfcf2cf34bed6ba5ea23bd87adb9d671213d68e88620e7a6b/markupsafe-3.0.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b4d12837e0203bbace818ff4a7461afdcd78bcd782351cea148139180d7bcffe", size = 27804, upload-time = "2026-10-02T23:05:56.29Z" }, + { url = "https://files.pythonhosted.org/packages/6b/89/89491878c28e8291f5aa2fffe2c2d57230d10ae366d55dd810b840513d78/markupsafe-3.0.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5086f9975abb1ab531ee6afca1761e4b59a19b446f3f6522ed776963228cfe5a", size = 25912, upload-time = "2026-10-02T23:05:57.416Z" }, + { url = "https://files.pythonhosted.org/packages/30/77/680998b54efdea06fc114565cd739b6d059f826a0279219b218dfa750d29/markupsafe-3.0.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b4a635a0487774f841cb1fb62e907e7195cc95bc761e053184b8acc3ceb20733", size = 23623, upload-time = "2026-10-02T23:05:58.557Z" }, + { url = "https://files.pythonhosted.org/packages/ae/75/2709f5ac5de9467b40b10e2bb8f89cc63dfb74582e09aa734b1124a217de/markupsafe-3.0.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb96e6e088d6cf71c1ea977510948320234824cf226e32f6f6e044f7a9c82b34", size = 23301, upload-time = "2026-10-02T23:05:59.94Z" }, + { url = "https://files.pythonhosted.org/packages/a0/c8/39eadc6c5b14c9c7679bfb98f4d4c6a97863b5beb91839aca4d2d6e16e55/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8b5d563170ff8ba3181caa967c99a3c804d1dedb702c7cb93a6a7c32247da978", size = 24950, upload-time = "2026-10-02T23:06:01.289Z" }, + { url = "https://files.pythonhosted.org/packages/1a/5e/01037f8a43e8ccb0bffb4fbdc5212db05bf080fdd7286cd392332d58128a/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:396ec4e65cc889f69786b3b89478b471cee5a3bcf468b9d9bb03e1a30fb291fc", size = 23330, upload-time = "2026-10-02T23:06:02.441Z" }, + { url = "https://files.pythonhosted.org/packages/d4/f4/23e83ce0596bb0cbe670502d31df8f757bbd01a392aa486fa3b40d1ed399/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:15ba9e28640feef770374b116a6f019c21f52404aeabe516aa7f800587b98cfc", size = 25239, upload-time = "2026-10-02T23:06:03.579Z" }, + { url = "https://files.pythonhosted.org/packages/88/5b/3708897368073cc683d524750474f41a77d2986152c380dcc55b20fdf340/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:d920abdfa61279ba1a2ef9484aab07bf03331f8c08a10120fa332353d06e6932", size = 22767, upload-time = "2026-10-02T23:06:04.699Z" }, + { url = "https://files.pythonhosted.org/packages/c6/61/ebda1307864b409e6b3115757a3d4a09cca46cfb6cc65191b5de226b424b/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:a9f54054101545a9a9cccefddf54316aa6e4491611fcbef9e91b3b6bebec04f6", size = 23668, upload-time = "2026-10-02T23:06:05.9Z" }, + { url = "https://files.pythonhosted.org/packages/09/15/98075cceac3b5ba0dbb8e4762a847be967d2befc349a2cf2d0ac77f62c9d/markupsafe-3.0.4-cp314-cp314t-win32.whl", hash = "sha256:12a606a492de952afcb43b59a14aaaaad120e708d3663dd0fdf2d738d427a691", size = 14301, upload-time = "2026-10-02T23:06:07.109Z" }, + { url = "https://files.pythonhosted.org/packages/0b/a3/768b560fcc4156685cb563d922b217810cfa7bc135773367f62f1f9d2078/markupsafe-3.0.4-cp314-cp314t-win_amd64.whl", hash = "sha256:a18f38cafc329bac5e3c2b96c765b4c96d3d103421ed22ab7988c1e3fce27464", size = 14526, upload-time = "2026-10-02T23:06:08.276Z" }, + { url = "https://files.pythonhosted.org/packages/93/63/da554b4c97a6b0ea3229ca7fe8cbfb620be81613d517f482e85958550537/markupsafe-3.0.4-cp314-cp314t-win_arm64.whl", hash = "sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c", size = 14421, upload-time = "2026-10-02T23:06:09.402Z" }, + { url = "https://files.pythonhosted.org/packages/a9/30/54d11c8ca027114898cab97421fb39e4ffd9ddf47cdbc44df2ec76722da9/markupsafe-3.0.4-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:737c9c3981998eba27f11786f84fddcbabc74068b72a4a1f454ea02094b57b65", size = 12791, upload-time = "2026-10-02T23:06:10.485Z" }, + { url = "https://files.pythonhosted.org/packages/10/6d/97c913e253a14bd3cd0e15a5c56d13203b823fa7ee32498342896a072dc4/markupsafe-3.0.4-cp315-cp315-android_24_x86_64.whl", hash = "sha256:489505b03f692c3f376394e49194fa7a7f9e8558d6e293a7056a0032b0c38163", size = 12527, upload-time = "2026-10-02T23:06:11.834Z" }, + { url = "https://files.pythonhosted.org/packages/26/f9/b86d032042a4d597d9e1997f0e5f63a3eedaf11258e0a05760b0a0a826ea/markupsafe-3.0.4-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:077293e425f28ec737dbcad442a71752e28f8ae27cde3d68acd1fb212091cd92", size = 11602, upload-time = "2026-10-02T23:06:13.122Z" }, + { url = "https://files.pythonhosted.org/packages/f2/dc/73c14c1eedf0ac5fa3292ba43435e6c49d2c2050f33cebde541f8f4807f1/markupsafe-3.0.4-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:9348cbb300d224fe3b89793262cb093504d4ae927004468463f745188a193e4a", size = 11817, upload-time = "2026-10-02T23:06:14.227Z" }, + { url = "https://files.pythonhosted.org/packages/8f/69/2c2fcaa5fcee22d72c7819c0d536fd181c74a688e6143845419579cd2863/markupsafe-3.0.4-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b807e598953730f82e4eae3bd30f6a122cf6b31c398c6b504c0e04c13c170429", size = 11446, upload-time = "2026-10-02T23:06:15.574Z" }, + { url = "https://files.pythonhosted.org/packages/88/54/9e5ec76c62e6e2834d5a93623018c943e8b3bb41d663e3fd4c03303b9b85/markupsafe-3.0.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:799c39bdf5e2f1292fedd3009f7b3c9e760f10b2420cb9638d56920840ff6db8", size = 11719, upload-time = "2026-10-02T23:06:16.701Z" }, + { url = "https://files.pythonhosted.org/packages/96/24/3ec292b44064c16229e064d770b2625bd8ea941aa61f44905a9fa44942c0/markupsafe-3.0.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:ae9dcb8fbe244cb82f8a6458b455b927a03685e383d9bacf1ea5ce180b96dc97", size = 12075, upload-time = "2026-10-02T23:06:17.855Z" }, + { url = "https://files.pythonhosted.org/packages/aa/85/b64fdb1f304848518742136983c24e96d967bfb59a0ea160e92736901ab0/markupsafe-3.0.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4bced6e2a6dba6a28f7dd3c6ce14df1b2dd495923f16ea484cad03decd463b2b", size = 24656, upload-time = "2026-10-02T23:06:18.963Z" }, + { url = "https://files.pythonhosted.org/packages/9c/18/23997d4c65b355da6390d61cd56e0ab3befd6ba8dda25cb40c602bd0fa6b/markupsafe-3.0.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3882fb412298575bae3b9c46868251f15cc69307359f87bb1b382e53d6e5a2c9", size = 27737, upload-time = "2026-10-02T23:06:20.117Z" }, + { url = "https://files.pythonhosted.org/packages/d4/36/35998dead3c6af88c38265a56e58100211f036234ab88eb2283fd4cbce44/markupsafe-3.0.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:04e7902ba80ee4bac1d50a549606527a1dcf0476cd81403db41099d3b60ec653", size = 25003, upload-time = "2026-10-02T23:06:21.284Z" }, + { url = "https://files.pythonhosted.org/packages/82/96/ef49135ce260db4ca4a12b119ed468449cd248db6b1468e2112b546d7a2e/markupsafe-3.0.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:925f929d6b59a8b3f8b8c6ac363cd0af7eecc81efb3071770b3c6717c450a369", size = 23111, upload-time = "2026-10-02T23:06:22.524Z" }, + { url = "https://files.pythonhosted.org/packages/50/7d/83126e338bd88c17a220668235368ad719fd4638e426739858cbb8508f77/markupsafe-3.0.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f68edfc67aabac33708941f26f22a7b8e9f81429bc0cf249fcf7d66b23af8d19", size = 22403, upload-time = "2026-10-02T23:06:23.785Z" }, + { url = "https://files.pythonhosted.org/packages/83/dd/daf7e420de23c8206c365204e7b85e1251d8e19d34196a56336f316e5ed2/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:e5c802729725bd07e2bc3ab7b76dc7e0bbfc53129d8f1eb1c002c24cf774717e", size = 24083, upload-time = "2026-10-02T23:06:25.037Z" }, + { url = "https://files.pythonhosted.org/packages/19/3c/11eecdc06bc44ad5570350085b572ebf049e8f9a38d1ece6d76640b739cd/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:55ffd6ce583d97dc71dc92e930324c8c0d25aea7e3ade6ae54ef77cedb096811", size = 22931, upload-time = "2026-10-02T23:06:26.328Z" }, + { url = "https://files.pythonhosted.org/packages/0d/9e/ac0fd77f2a726e56ecc3ca0235d095feace1358d1b822406c2a2ef26a4dc/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:2cb3dd71fc6be918ad4264346a8ed69485f9b7ed7bf35495d8e22807cd6b8bea", size = 24299, upload-time = "2026-10-02T23:06:27.742Z" }, + { url = "https://files.pythonhosted.org/packages/d7/09/c6bd842ad58ff5b3bc76eeed7e9a42a6f11adc5d090ec697b72c9672731e/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:94f5407f7bc64fa6463906b896f9904beeeb7dd8dc116ee8e9056c8714ff9916", size = 21948, upload-time = "2026-10-02T23:06:29.274Z" }, + { url = "https://files.pythonhosted.org/packages/a3/46/82f586711fed61e86faa1ee1bc317d68cd45a10c8bdbe3f7d1fdf9026ad8/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:2dad610540cb2e6272855c178f08ae9a1c7ac258a7fb71660553a5f104b42741", size = 23150, upload-time = "2026-10-02T23:06:30.583Z" }, + { url = "https://files.pythonhosted.org/packages/19/2d/2dfdce99318abbfa26925195fbc17db188c46a1ec6457be121b6f9cfeb42/markupsafe-3.0.4-cp315-cp315-win32.whl", hash = "sha256:03470d1a8268e692ecf79ecd565593e59d44219377a7ead61f1f1b94c1f7ff6b", size = 14269, upload-time = "2026-10-02T23:06:31.949Z" }, + { url = "https://files.pythonhosted.org/packages/5b/ec/6000fd82e8791e58fcd0456ec20f098957e2b03d5ed02eb73241a577c0ba/markupsafe-3.0.4-cp315-cp315-win_amd64.whl", hash = "sha256:d882a373d8093c2941e01291b7ced96e9cbe4781da9a7751ca7e6c70385e5214", size = 14496, upload-time = "2026-10-02T23:06:33.258Z" }, + { url = "https://files.pythonhosted.org/packages/bc/66/e73bd5016421d5d6e2fb6de7dd609f9de020942ac8c626526bd8c6eeaf82/markupsafe-3.0.4-cp315-cp315-win_arm64.whl", hash = "sha256:353bd63081912ab8cfa6a0c7d185934cdf8426f04c618bba6bc4b394f2069b67", size = 14361, upload-time = "2026-10-02T23:06:34.539Z" }, + { url = "https://files.pythonhosted.org/packages/90/df/cb8c3dc98d313a951df2f8968f44e4cb5643df6d3cab749a530ce2f7d972/markupsafe-3.0.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c61750fadcd119d0825bcb7d7d675dd264dcc89cc05292aab5be68ebdbb374ad", size = 11760, upload-time = "2026-10-02T23:06:35.807Z" }, + { url = "https://files.pythonhosted.org/packages/d6/bb/4af9b3ca0753d654ac75f9531d5bd741bb77ca6e696f36807c475ffc099a/markupsafe-3.0.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1c0df495a977d10460a94941799c72d5b5ab03d3858d949b55b5a66c8f371c99", size = 12108, upload-time = "2026-10-02T23:06:37.089Z" }, + { url = "https://files.pythonhosted.org/packages/3f/d4/b56429313aee5fd59b079c3df5615299959e25e7113eb6d8caadbdd7d38a/markupsafe-3.0.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:02fa4acbc6a3fc5c693c34d4dd8c1130b7fe99cc915181b0ddd6f72aeb296002", size = 25762, upload-time = "2026-10-02T23:06:38.419Z" }, + { url = "https://files.pythonhosted.org/packages/65/f5/34c181e891aa4f7d59c918584672e0c5eb7fffe76c1387d1246008bf4081/markupsafe-3.0.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:05295589e619b9bed252a86b532b8e27350abc372d18ba89b59375325e91ec1e", size = 28400, upload-time = "2026-10-02T23:06:39.819Z" }, + { url = "https://files.pythonhosted.org/packages/ce/b5/ad14694fd0ac9a5ce30bc6498f2999378f418583dd1679cca5a1b512957e/markupsafe-3.0.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:be6cb0c799abb0e2ba3e618e6d28ddddf7e485f6c2ce938dfa237daf3905072c", size = 25946, upload-time = "2026-10-02T23:06:41.381Z" }, + { url = "https://files.pythonhosted.org/packages/d6/a8/26b606445387d0ceb1eb1f21840094b84e4e3c3c3983d80d10b89823b490/markupsafe-3.0.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:26e9867520db70d37f7fb421a7f0d8adb40171011fb84ce869afa1a83370dfa8", size = 23634, upload-time = "2026-10-02T23:06:42.748Z" }, + { url = "https://files.pythonhosted.org/packages/39/a2/b8814de672f1f0094d498bf646f2fec9d6356b503d28ef500b71c5095377/markupsafe-3.0.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f03460ff076f70ab595bb45a0205ccea1971443575b6920c52e755dec2b3fbfe", size = 23488, upload-time = "2026-10-02T23:06:44.176Z" }, + { url = "https://files.pythonhosted.org/packages/db/c7/287223376fb73335a3cc5d6eb22c6ab01358cf33945a9c39c06b9dac3f4b/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:436e3ffc6310d3c41878c601db29098102fe5d8a467c49da4a4125254e0980f2", size = 25037, upload-time = "2026-10-02T23:06:45.646Z" }, + { url = "https://files.pythonhosted.org/packages/f9/29/4df8355e313426d19e62ba33e0253c009ca12a0894ee77d67fa67255361c/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:4e2c4809c14559aa7ef426f27fb35afbb38104c349a903bf8f3600456764bb38", size = 23543, upload-time = "2026-10-02T23:06:47.264Z" }, + { url = "https://files.pythonhosted.org/packages/71/e5/8377731e8495668dcc768f645e717df18318c841edaf023a99395f6da9b4/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:da2af0d7aebfc2074080d72efa6ab8317c62481ef1f896f65d9999c1c01f4494", size = 25282, upload-time = "2026-10-02T23:06:48.795Z" }, + { url = "https://files.pythonhosted.org/packages/ed/5f/373456e37ceb1478d657d6fe769cbe0a39f0a8dfc1548eeb19c471eefdd9/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:aa2c838cc024642cc04c6854232f32b43e5e22833dd11119c1766c7873b8370d", size = 22993, upload-time = "2026-10-02T23:06:50.31Z" }, + { url = "https://files.pythonhosted.org/packages/d7/93/2cbd5628435afb6f541bbaced4bce0c2edac4b09a142e6e928b8b0da9858/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:b91cc9d336957239ff200f30097e6fea2dc6d6fb3c81e853eaa09eac904fd894", size = 23712, upload-time = "2026-10-02T23:06:51.759Z" }, + { url = "https://files.pythonhosted.org/packages/81/99/157e10966b033b363aeda5263e82596ee232a0b1d082fdbf90aa417ff083/markupsafe-3.0.4-cp315-cp315t-win32.whl", hash = "sha256:e49fb0d1ce92cfa0cb198cc5b1b11cdf9d0638658e2a2db2687e39db7c87fc78", size = 14300, upload-time = "2026-10-02T23:06:53.241Z" }, + { url = "https://files.pythonhosted.org/packages/33/05/55884815414c9706a23deca150b72c25a62109e65b0b6ce232077802c719/markupsafe-3.0.4-cp315-cp315t-win_amd64.whl", hash = "sha256:4f6e0852a0283b1b1fd776eeb7b766a5f440b3e2bd31ab51af3b400585f3965c", size = 14522, upload-time = "2026-10-02T23:06:54.729Z" }, + { url = "https://files.pythonhosted.org/packages/92/f9/ecbde7149e95b8a0f18e16d5d747f7dc06049d5da2e4f77f6f5e4a1f46a8/markupsafe-3.0.4-cp315-cp315t-win_arm64.whl", hash = "sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba", size = 14417, upload-time = "2026-10-02T23:06:56.246Z" }, +] + +[[package]] +name = "mdit-py-plugins" +version = "0.6.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/59/fc/f8d0863f8862f25602c0404d75568e89fb6b4109804645e5cdfb1be5cf56/mdit_py_plugins-0.6.1.tar.gz", hash = "sha256:a2bca0f039f39dbd35fb74ae1b5f998608c437463371f0ff7f49a19a17a114d0", size = 56114, upload-time = "2026-05-13T09:03:38.91Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a5/69/6da5581c6a7fede7dc261bf4e67d6adca4196f176b43288b55b3db395b6e/mdit_py_plugins-0.6.1-py3-none-any.whl", hash = "sha256:214c82fb2ac524472ab6a5bcab1de80f73b50443e187f401bfd77efbc7c6481d", size = 66663, upload-time = "2026-05-13T09:03:37.76Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "myst-parser" +version = "5.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "docutils" }, + { name = "jinja2" }, + { name = "markdown-it-py" }, + { name = "mdit-py-plugins" }, + { name = "pyyaml" }, + { name = "sphinx" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/21/dc/603751677fff302f34396e206b610f556a59d7fe58b9a2145f54e96b48e8/myst_parser-5.1.0.tar.gz", hash = "sha256:ab69322dc6719dcc7f296479dbb70181b66df6ed315064f92dbc85c0e1bf2f02", size = 101182, upload-time = "2026-05-13T09:38:19.361Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/09/dc/f3dfb7488b770f3f67e6545085bf2abea5172e88f57b8ad25ef860ca704c/myst_parser-5.1.0-py3-none-any.whl", hash = "sha256:9c91c52b3cdb4d94a6506e4fab4e2f296c7623a0da0dcbe6de1565c3dad67a8a", size = 85817, upload-time = "2026-05-13T09:38:17.904Z" }, +] + +[[package]] +name = "packaging" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, +] + +[[package]] +name = "pygments" +version = "2.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" }, + { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" }, + { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" }, + { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" }, + { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" }, + { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" }, + { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" }, + { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" }, + { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" }, + { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" }, + { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" }, + { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" }, + { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" }, + { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" }, + { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" }, + { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" }, + { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" }, + { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" }, + { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" }, + { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, + { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, + { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, + { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, + { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, + { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, + { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, + { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, + { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, +] + +[[package]] +name = "requests" +version = "2.34.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", hash = "sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", size = 142856, upload-time = "2026-05-14T19:25:27.735Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" }, +] + +[[package]] +name = "roman-numerals" +version = "4.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ae/f9/41dc953bbeb056c17d5f7a519f50fdf010bd0553be2d630bc69d1e022703/roman_numerals-4.1.0.tar.gz", hash = "sha256:1af8b147eb1405d5839e78aeb93131690495fe9da5c91856cb33ad55a7f1e5b2", size = 9077, upload-time = "2025-12-17T18:25:34.381Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/54/6f679c435d28e0a568d8e8a7c0a93a09010818634c3c3907fc98d8983770/roman_numerals-4.1.0-py3-none-any.whl", hash = "sha256:647ba99caddc2cc1e55a51e4360689115551bf4476d90e8162cf8c345fe233c7", size = 7676, upload-time = "2025-12-17T18:25:33.098Z" }, +] + +[[package]] +name = "ruff" +version = "0.17.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e7/e6d5749983b020e6cb1055abec0a6f361a8e94f0184cdcf56d4760995f02/ruff-0.17.1.tar.gz", hash = "sha256:5bb796c5112e9fb9527f2ef2faa0a130d6312d19de92bcfaddd70dbb2d41020f", size = 5323349, upload-time = "2026-10-15T15:23:18.64Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2e/78/90c46ca6250709f7c37e397b60d06061adee8d0f7d13959ed6a8e49b14fd/ruff-0.17.1-py3-none-linux_armv6l.whl", hash = "sha256:1796c41eafec66f4635125dd1e074a7aa27b8d20c187d484360acf11d247fc4a", size = 10147528, upload-time = "2026-10-15T15:22:33.667Z" }, + { url = "https://files.pythonhosted.org/packages/aa/d2/a2e28bc35b083ae51fa07dfba5280a667c8b01ecaee7802fc8849dcd5c46/ruff-0.17.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:8eadb09a788010be29c895418bdfa513e4e1c65e64b94e5b19e4cd381f6cc7fb", size = 10225974, upload-time = "2026-10-15T15:22:36.328Z" }, + { url = "https://files.pythonhosted.org/packages/8e/71/7a9029a81c8206ee01a98f6cfeeb56e6c095af86857581a37045c46d7e94/ruff-0.17.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:29b454f18ca3eeaf37fbf140841dcf27d36109e29dee9aae8acecb68c26c6f74", size = 9270361, upload-time = "2026-10-15T15:22:38.651Z" }, + { url = "https://files.pythonhosted.org/packages/c0/8c/e075e9c917cb0575297880c96768304e881240171c870cbd8d9b7b54bec2/ruff-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:872e03dd231744d6c5ec5c8af6be52b71323fc6ee096e4c8b34d9f844ee3b978", size = 9938300, upload-time = "2026-10-15T15:22:41.284Z" }, + { url = "https://files.pythonhosted.org/packages/87/27/0b4bb926a49de2383f161272b4d863571a4c7ecdbf595a6bc58813a13367/ruff-0.17.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4c0d6cb5f8fbac77eec9af49f4fc0eaf856b05545e372b0694d24b4e76b1c640", size = 9948464, upload-time = "2026-10-15T15:22:43.681Z" }, + { url = "https://files.pythonhosted.org/packages/14/27/518d57e0e02aecb8ea4acac6b57b51a53173d25fa734952bfdd7d531e88e/ruff-0.17.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78beced4a3c94dfedbee4b999b95b6a27b35820fdc0afbacc6d37a8da26c1cd1", size = 10638639, upload-time = "2026-10-15T15:22:46.081Z" }, + { url = "https://files.pythonhosted.org/packages/01/82/d89a4e498ade59e6cee52d67f8da569019372212b87468c1fdeae884601c/ruff-0.17.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7feefc63921202894f0e158b0e32f45a5950d70a7fb693ccb9264816c25b1c05", size = 11337238, upload-time = "2026-10-15T15:22:48.894Z" }, + { url = "https://files.pythonhosted.org/packages/a2/7c/3b0fdef9352656317c977086fe1d802902406e4f2a0d8578da90c0e6d1c5/ruff-0.17.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:684154861a819bf1f433669d2a0ce9c3e54677c65b8ebb866cc2a7ec86345785", size = 10896327, upload-time = "2026-10-15T15:22:51.45Z" }, + { url = "https://files.pythonhosted.org/packages/62/86/5566290219708ce2928f3a29c4f843a1185b341ec6111c4631a33c5ceced/ruff-0.17.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a6ef98e51de8ef38082f90653ceeb84944bd7673783eea13e1647c5b9b064189", size = 10350811, upload-time = "2026-10-15T15:22:54.401Z" }, + { url = "https://files.pythonhosted.org/packages/ad/d2/ca8462dabb3c413990d49703ba306c30c862195a75448d080fa8fcce9775/ruff-0.17.1-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:8f9aa5b5bd5fa1937803ea609c8f153b8de39bf3e0e149897ae34b0c5b52f467", size = 10569994, upload-time = "2026-10-15T15:22:57.142Z" }, + { url = "https://files.pythonhosted.org/packages/e3/ad/dd1864c1f1db17c8cfb297ce70b352388e6977620f66f7182c52855407df/ruff-0.17.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:80e53b0e5faa3c5667f035daaa032893ae42b7cfe708c886d39ed131e54688ab", size = 10059672, upload-time = "2026-10-15T15:23:00.084Z" }, + { url = "https://files.pythonhosted.org/packages/65/45/3f56cf1d2168c2165cdd5ac6f9668aee66a4cfdd4caf2b2cc5ccb2b1d568/ruff-0.17.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:056c5d5fa0ac790051ae165d7035c7bf956d02de2db557f2e9b31d877a505fca", size = 9947803, upload-time = "2026-10-15T15:23:03.132Z" }, + { url = "https://files.pythonhosted.org/packages/aa/4b/5457cb2be4c1d1ea5e919558131a0f197a4a454a0530d9e30820e8206e4c/ruff-0.17.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:bd8f5a55b10f371642eacd0e8665a42a8b97da15c9a7187c79e697b77b5e0ce4", size = 10351807, upload-time = "2026-10-15T15:23:05.628Z" }, + { url = "https://files.pythonhosted.org/packages/49/fb/db15b4f8fa24a1e36b99e1401f42ef6df16ee299a48670d5d262b771e7d7/ruff-0.17.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:ce05e6f3973611d9550a600e04bb531061e368baba31610eb57c1509a8f21a0a", size = 10765716, upload-time = "2026-10-15T15:23:08.092Z" }, + { url = "https://files.pythonhosted.org/packages/0a/e8/1e186578076aff7a80735f625005fde678412ab609cd323ed182eb7d6b87/ruff-0.17.1-py3-none-win32.whl", hash = "sha256:1de0030a8aa78c65c5fecb84b2e5c390ac684c0452875a02afc7c083d49a496a", size = 9895093, upload-time = "2026-10-15T15:23:10.582Z" }, + { url = "https://files.pythonhosted.org/packages/6a/2e/da3d9589bae8e8b58f3a48bd5bc0b980232fb14a83bf02c3be7660f87c1b/ruff-0.17.1-py3-none-win_amd64.whl", hash = "sha256:5df76f16580fab58d0f6c98a3ac254a4abceb7b2489b8b678335869cff77b3d7", size = 10097955, upload-time = "2026-10-15T15:23:13.309Z" }, + { url = "https://files.pythonhosted.org/packages/df/c9/0f2a4dea06a5e12c1191ee3d96b1e1233797d0d5e18f97a2b909a95a9836/ruff-0.17.1-py3-none-win_arm64.whl", hash = "sha256:42400b9a6ff8515ff27796f07f92e0195be011c86e81e381606f58ea5502fef4", size = 9853542, upload-time = "2026-10-15T15:23:16.05Z" }, +] + +[[package]] +name = "snowballstemmer" +version = "3.1.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/43/f8/0a71edf031f03c40db17503cb8ca78a69a171254e568e7db241b0ab57ea1/snowballstemmer-3.1.1.tar.gz", hash = "sha256:e07bbc54a0d798fe6010a12398422e62a8bfbba95c394fd0956ef58cb4d3e260", size = 123314, upload-time = "2026-06-03T00:56:40.194Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4c/07/2ebca9b11fb9be7340a818d8d6f63feaebb146be2c4afbd6061701d6df6e/snowballstemmer-3.1.1-py3-none-any.whl", hash = "sha256:7e207fa178741da09cdee59d3ecec3827ad5f92b1fc5c9ff3755b639f71f5752", size = 104164, upload-time = "2026-06-03T00:56:38.614Z" }, +] + +[[package]] +name = "soupsieve" +version = "3.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5e/77/2dcfa996b01702ab8fd0763d84098f6a640d6162a328f1c04c2697579a1a/soupsieve-3.0.3.tar.gz", hash = "sha256:7dcf6022eed0399eb9934a75e020148f7a2024c37b7dfcd3cf2c5505d69c364e", size = 115923, upload-time = "2026-10-12T13:21:17.696Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/ca/f639c80449997b88aba7bc9705d25dd76cc0844f45f187862fd8f8bb18fa/soupsieve-3.0.3-py3-none-any.whl", hash = "sha256:fa30e3ba4809cb81ce1f3209f2fbe3e779fc445f0439bc147a0d7c4601743f21", size = 41705, upload-time = "2026-10-12T13:21:16.474Z" }, +] + +[[package]] +name = "sphinx" +version = "9.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "alabaster" }, + { name = "babel" }, + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "docutils" }, + { name = "imagesize" }, + { name = "jinja2" }, + { name = "packaging" }, + { name = "pygments" }, + { name = "requests" }, + { name = "roman-numerals" }, + { name = "snowballstemmer" }, + { name = "sphinxcontrib-applehelp" }, + { name = "sphinxcontrib-devhelp" }, + { name = "sphinxcontrib-htmlhelp" }, + { name = "sphinxcontrib-jsmath" }, + { name = "sphinxcontrib-qthelp" }, + { name = "sphinxcontrib-serializinghtml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cd/bd/f08eb0f4eed5c83f1ba2a3bd18f7745a2b1525fad70660a1c00224ec468a/sphinx-9.1.0.tar.gz", hash = "sha256:7741722357dd75f8190766926071fed3bdc211c74dd2d7d4df5404da95930ddb", size = 8718324, upload-time = "2025-12-31T15:09:27.646Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/73/f7/b1884cb3188ab181fc81fa00c266699dab600f927a964df02ec3d5d1916a/sphinx-9.1.0-py3-none-any.whl", hash = "sha256:c84fdd4e782504495fe4f2c0b3413d6c2bf388589bb352d439b2a3bb99991978", size = 3921742, upload-time = "2025-12-31T15:09:25.561Z" }, +] + +[[package]] +name = "sphinx-basic-ng" +version = "1.0.0b2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "sphinx" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/98/0b/a866924ded68efec7a1759587a4e478aec7559d8165fac8b2ad1c0e774d6/sphinx_basic_ng-1.0.0b2.tar.gz", hash = "sha256:9ec55a47c90c8c002b5960c57492ec3021f5193cb26cebc2dc4ea226848651c9", size = 20736, upload-time = "2023-07-08T18:40:54.166Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3c/dd/018ce05c532a22007ac58d4f45232514cd9d6dd0ee1dc374e309db830983/sphinx_basic_ng-1.0.0b2-py3-none-any.whl", hash = "sha256:eb09aedbabfb650607e9b4b68c9d240b90b1e1be221d6ad71d61c52e29f7932b", size = 22496, upload-time = "2023-07-08T18:40:52.659Z" }, +] + +[[package]] +name = "sphinxcontrib-applehelp" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ba/6e/b837e84a1a704953c62ef8776d45c3e8d759876b4a84fe14eba2859106fe/sphinxcontrib_applehelp-2.0.0.tar.gz", hash = "sha256:2f29ef331735ce958efa4734873f084941970894c6090408b079c61b2e1c06d1", size = 20053, upload-time = "2024-07-29T01:09:00.465Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5d/85/9ebeae2f76e9e77b952f4b274c27238156eae7979c5421fba91a28f4970d/sphinxcontrib_applehelp-2.0.0-py3-none-any.whl", hash = "sha256:4cd3f0ec4ac5dd9c17ec65e9ab272c9b867ea77425228e68ecf08d6b28ddbdb5", size = 119300, upload-time = "2024-07-29T01:08:58.99Z" }, +] + +[[package]] +name = "sphinxcontrib-devhelp" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/d2/5beee64d3e4e747f316bae86b55943f51e82bb86ecd325883ef65741e7da/sphinxcontrib_devhelp-2.0.0.tar.gz", hash = "sha256:411f5d96d445d1d73bb5d52133377b4248ec79db5c793ce7dbe59e074b4dd1ad", size = 12967, upload-time = "2024-07-29T01:09:23.417Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/35/7a/987e583882f985fe4d7323774889ec58049171828b58c2217e7f79cdf44e/sphinxcontrib_devhelp-2.0.0-py3-none-any.whl", hash = "sha256:aefb8b83854e4b0998877524d1029fd3e6879210422ee3780459e28a1f03a8a2", size = 82530, upload-time = "2024-07-29T01:09:21.945Z" }, +] + +[[package]] +name = "sphinxcontrib-htmlhelp" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/43/93/983afd9aa001e5201eab16b5a444ed5b9b0a7a010541e0ddfbbfd0b2470c/sphinxcontrib_htmlhelp-2.1.0.tar.gz", hash = "sha256:c9e2916ace8aad64cc13a0d233ee22317f2b9025b9cf3295249fa985cc7082e9", size = 22617, upload-time = "2024-07-29T01:09:37.889Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0a/7b/18a8c0bcec9182c05a0b3ec2a776bba4ead82750a55ff798e8d406dae604/sphinxcontrib_htmlhelp-2.1.0-py3-none-any.whl", hash = "sha256:166759820b47002d22914d64a075ce08f4c46818e17cfc9470a9786b759b19f8", size = 98705, upload-time = "2024-07-29T01:09:36.407Z" }, +] + +[[package]] +name = "sphinxcontrib-jsmath" +version = "1.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b2/e8/9ed3830aeed71f17c026a07a5097edcf44b692850ef215b161b8ad875729/sphinxcontrib-jsmath-1.0.1.tar.gz", hash = "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8", size = 5787, upload-time = "2019-01-21T16:10:16.347Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c2/42/4c8646762ee83602e3fb3fbe774c2fac12f317deb0b5dbeeedd2d3ba4b77/sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl", hash = "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178", size = 5071, upload-time = "2019-01-21T16:10:14.333Z" }, +] + +[[package]] +name = "sphinxcontrib-qthelp" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/68/bc/9104308fc285eb3e0b31b67688235db556cd5b0ef31d96f30e45f2e51cae/sphinxcontrib_qthelp-2.0.0.tar.gz", hash = "sha256:4fe7d0ac8fc171045be623aba3e2a8f613f8682731f9153bb2e40ece16b9bbab", size = 17165, upload-time = "2024-07-29T01:09:56.435Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/27/83/859ecdd180cacc13b1f7e857abf8582a64552ea7a061057a6c716e790fce/sphinxcontrib_qthelp-2.0.0-py3-none-any.whl", hash = "sha256:b18a828cdba941ccd6ee8445dbe72ffa3ef8cbe7505d8cd1fa0d42d3f2d5f3eb", size = 88743, upload-time = "2024-07-29T01:09:54.885Z" }, +] + +[[package]] +name = "sphinxcontrib-serializinghtml" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3b/44/6716b257b0aa6bfd51a1b31665d1c205fb12cb5ad56de752dfa15657de2f/sphinxcontrib_serializinghtml-2.0.0.tar.gz", hash = "sha256:e9d912827f872c029017a53f0ef2180b327c3f7fd23c87229f7a8e8b70031d4d", size = 16080, upload-time = "2024-07-29T01:10:09.332Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/52/a7/d2782e4e3f77c8450f727ba74a8f12756d5ba823d81b941f1b04da9d033a/sphinxcontrib_serializinghtml-2.0.0-py3-none-any.whl", hash = "sha256:6e2cb0eef194e10c27ec0023bfeb25badbbb5868244cf5bc5bdc04e4464bf331", size = 92072, upload-time = "2024-07-29T01:10:08.203Z" }, +] + +[[package]] +name = "ty" +version = "0.0.88" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/e8/303e333a45289c2f1f006661c9aa535de83b316a6bfc2d2f97ba815be143/ty-0.0.88.tar.gz", hash = "sha256:5e3165a05b3757edd5a08b1fc6cb4a00c3b067100416d50afb2d13a5ec102206", size = 7968779, upload-time = "2026-10-15T09:41:07.334Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/7e/a62ddf5c56cf0f96fdc268bb0ec4bfe16e28b50d9158de8e7038b004e515/ty-0.0.88-py3-none-linux_armv6l.whl", hash = "sha256:19f24e69e97d9edfb05fb2e1c7fe2b6fcce275338415e2f7de23d74627f2b436", size = 14240767, upload-time = "2026-10-15T09:40:23.285Z" }, + { url = "https://files.pythonhosted.org/packages/77/b0/ca23cf93931c6dcf790376c2dac6d2cbcbc1c5fbbead6a536c52eae6ac22/ty-0.0.88-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:957f0db83b9b0f837b86fe4a0a8fb98db8da89444555246871e6eb2820629c1b", size = 13755861, upload-time = "2026-10-15T09:40:26.292Z" }, + { url = "https://files.pythonhosted.org/packages/8c/a6/91d2aa967a69535845445660d3a9412f7f4f746597c650e5d3a799c9e286/ty-0.0.88-py3-none-macosx_11_0_arm64.whl", hash = "sha256:021bd4a6d01d4a39e48a87e308161e7adea851b8cab9f4c71452dde6e365aa15", size = 12771934, upload-time = "2026-10-15T09:40:28.913Z" }, + { url = "https://files.pythonhosted.org/packages/2e/a4/266f2dacbded7fac1f567292363ad05d4d03b246a8bd5ccd68206d0c9ce0/ty-0.0.88-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcd956e6c3c8b038a3725f2bf255a45a284ece64a012a4e790fbf23db862af84", size = 13638979, upload-time = "2026-10-15T09:40:31.49Z" }, + { url = "https://files.pythonhosted.org/packages/18/c9/4d7ec25675e9d2d70d9a8635d47b4737540818852e35fc6b7ca47b3e7f99/ty-0.0.88-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a8beb5fe8ae4ee8853891647d27cec7b65f6547532e9250cd3439181993aa973", size = 13971852, upload-time = "2026-10-15T09:40:34.039Z" }, + { url = "https://files.pythonhosted.org/packages/57/5d/0753dd860127f2601333156948ce2680ac2f65534ee39c81e9d4623f51aa/ty-0.0.88-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6aa805d8d4ab6512ca9591c221f828d818c000cdd5bd5108923eb21405eefebd", size = 14876774, upload-time = "2026-10-15T09:40:36.86Z" }, + { url = "https://files.pythonhosted.org/packages/26/8b/706b59938c4c83caed1df9a74f9b6d1e9d7d196b5006f3655b618daab5da/ty-0.0.88-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7dfb625a98f8fb02995aa3e3fb762c910158f1419bf38d1d1dcb97f35526e4b0", size = 15249187, upload-time = "2026-10-15T09:40:39.643Z" }, + { url = "https://files.pythonhosted.org/packages/09/1a/1a214f674e66c65347380cc8b637ffbb50624ab4ff7dc0d6f0bf34c64303/ty-0.0.88-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6784a5398c69ea39ad43512ba5fa7850599d8f371b7caa974dc8603b9634e63f", size = 15202315, upload-time = "2026-10-15T09:40:42.436Z" }, + { url = "https://files.pythonhosted.org/packages/e4/9e/a8a0af89ce94e87f6b4fdec62dce473d2858223ba7298276911c568f413c/ty-0.0.88-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ec0c364abad7e81013c1b4ec788d811078b9b20a8a2e07ac8613499eb6f104f", size = 14447671, upload-time = "2026-10-15T09:40:44.842Z" }, + { url = "https://files.pythonhosted.org/packages/17/74/be3cd8bee9ad01615449a1c22c6be2cc9a5d652eb6c1e9b2e993dc8b9141/ty-0.0.88-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:96940e5393ec00732bfaa747825979ebd971f0bafe538538d164bcba4cec5408", size = 14728283, upload-time = "2026-10-15T09:40:47.47Z" }, + { url = "https://files.pythonhosted.org/packages/84/e7/5918d99b7aff20c4a55f50d64620186af822a023ca767b65d965a3fd4858/ty-0.0.88-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c245fab62af678d3df2e8bf26550c0f81f5567b72de670863e300cab07d0b891", size = 13637751, upload-time = "2026-10-15T09:40:49.832Z" }, + { url = "https://files.pythonhosted.org/packages/c5/df/2eb1ddfafd986fdfa7be9941f2665945fe6dbcc952309195ba536f6394fd/ty-0.0.88-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:90407c5c7e0387295aab0e2d4de0ed7a7942f9793a4628942f367257d431e55c", size = 13985403, upload-time = "2026-10-15T09:40:52.348Z" }, + { url = "https://files.pythonhosted.org/packages/67/12/f9fc5e038dd2f0372be8ffbf5b1e429ef084035efdede5288a6fae74c52f/ty-0.0.88-py3-none-musllinux_1_2_i686.whl", hash = "sha256:591ef09e37bec260399cd526d694a815b8f1dab55dc841a44bd9ccb78cca84a1", size = 14305076, upload-time = "2026-10-15T09:40:54.944Z" }, + { url = "https://files.pythonhosted.org/packages/5e/5a/8a5e7c43b5d981d1f383602ddeaea91e0fde18900d1808ee74e1c894570c/ty-0.0.88-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:092522f2fa87becfb3b098a1f58ec1b82dfd7c87eaa0533c5ce500a743d8e79e", size = 14637327, upload-time = "2026-10-15T09:40:57.462Z" }, + { url = "https://files.pythonhosted.org/packages/5f/16/426272696ea754575305868787b35f18c23a3851c363827f27c7c8093cff/ty-0.0.88-py3-none-win32.whl", hash = "sha256:954cc19cd68015d4e92eb3f9218760d324dbdf67daae0e0da2c0179b644f450f", size = 13178338, upload-time = "2026-10-15T09:41:00.059Z" }, + { url = "https://files.pythonhosted.org/packages/49/a1/db4113fa72d44a28aeeccf3a71f9a803b278d945b11fa7b070a703d8bffd/ty-0.0.88-py3-none-win_amd64.whl", hash = "sha256:c76f1c65a492fed594bc14a1c70a1fdacd8a3165440a1eaa5af7f3c248fee963", size = 13690632, upload-time = "2026-10-15T09:41:02.379Z" }, + { url = "https://files.pythonhosted.org/packages/70/16/bc82e209f0d4de6213d41f58dd619b3e65d24cb58a6da0cd7c6665dd6654/ty-0.0.88-py3-none-win_arm64.whl", hash = "sha256:9b4289f6dec4123cf671a5b3d9512cdbf03889996d6895efc595bdc50573eafc", size = 13251351, upload-time = "2026-10-15T09:41:04.912Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] + +[[package]] +name = "urllib3" +version = "2.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/05/b17359e1cefb4f909b5e40b1b90a496d987258916dbbf88e842c729f510e/urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63", size = 458972, upload-time = "2026-09-15T19:29:36.253Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, +]