Vitepress/Markdown-It/Vite plugins and extensions -
  • TypeScript 89.7%
  • Vue 7.9%
  • Python 0.9%
  • JavaScript 0.8%
  • CSS 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-08 14:09:17 +03:00
.forgejo/workflows ci: trigger publish on every package tag, not just vitepress-* 2026-09-04 17:53:21 +03:00
docs perf(theme): recompress built PNGs before the exports inline them 2026-09-07 10:33:38 +03:00
packages chore(release): vitepress-plugin-cross-site-router 0.1.4 2026-09-08 14:09:17 +03:00
.gitignore ci: pin CI=true so pnpm install can prune old node_modules without a TTY 2026-08-28 12:33:44 +03:00
.npmrc ci: hoist @types/* and vite for typecheck 2026-08-28 13:05:30 +03:00
eslint.config.js fix(lint): type the external boundaries, keep console where it belongs 2026-09-04 17:49:31 +03:00
integrations feat: products sidebar on distro landing pages via createRuConfig 2026-04-08 12:40:20 +03:00
LICENSE Initial commit 2026-02-10 15:17:02 +03:00
package.json ci(publish-forgejo): force npmjs default registry, fail on publish error 2026-09-01 16:35:35 +03:00
pnpm-lock.yaml fix(deps): refresh the lockfile for the theme's new optional peer 2026-09-07 10:47:47 +03:00
pnpm-workspace.yaml ci(publish-forgejo): force npmjs default registry, fail on publish error 2026-09-01 16:35:35 +03:00
README.md feat(markdown-it-kbd): fork upstream to @ampernic/markdown-it-kbd 2026-08-28 11:17:57 +03:00
README.ru.md feat(markdown-it-kbd): fork upstream to @ampernic/markdown-it-kbd 2026-08-28 11:17:57 +03:00
tsconfig.base.json chore(monorepo): scaffold uniform test + lint + typecheck + ci 2026-08-27 14:56:13 +03:00
vue-shim.d.ts chore(monorepo): raise typecheck 4/13 -> 12/13 via base plumbing + surgical code fixes 2026-08-27 16:02:41 +03:00

Русская версия

integrations

CI License: GPL v3

Monorepo of general-purpose VitePress, markdown-it, and Vite plugins and extensions. Developed for and used in production by the ALT Linux documentation infrastructure. All packages live under ./packages and publish under the @ampernic scope to npm and to the internal Forgejo registry at altlinux.space.

Packages

Package Purpose npm Forgejo README
@ampernic/alt-docs-registry Single source of truth for the ALT docs registry: products, sections, versions. YAML plus a Vite plugin (virtual:alt-docs-registry) plus a runtime composable plus a CLI. npm forgejo README
@ampernic/markdown-it-grid-table Pandoc-style grid tables for VitePress without clashes with the markdown-it core. npm forgejo README
@ampernic/markdown-it-kbd [[x]] -> <kbd>x</kbd>. TypeScript rewrite of the classic markdown-it-kbd with a typed API and optional tag / class overrides. npm forgejo README
@ampernic/vitepress-plugin-alt-docs-versioning Documentation versioning: editions, distributions, version switcher. npm forgejo README
@ampernic/vitepress-plugin-breadcrumbs Dynamic breadcrumbs computed from the sidebar; framework-agnostic. npm forgejo README
@ampernic/vitepress-plugin-cross-site-router Correct same-tab navigation between independently deployed VitePress instances sharing one origin. npm forgejo README
@ampernic/vitepress-plugin-export Export a documentation version to PDF, EPUB, and standalone HTML. npm forgejo README
@ampernic/vitepress-plugin-html-image markdown-it plugin: normalizes relative src in raw HTML img. npm forgejo README
@ampernic/vitepress-plugin-llms Emits /llms.txt and /llms-full.txt, per-page markdown mirror, text/markdown content-type for LLMs. npm forgejo README
@ampernic/vitepress-plugin-meta Auto-emits meta description, Open Graph, and Twitter Card from frontmatter and the first paragraph. npm forgejo README
@ampernic/vitepress-plugin-pagefind Static Pagefind search: configurable filters, zero bundle cost. npm forgejo README
@ampernic/vitepress-plugin-report-issue Ctrl+Enter opens a modal with a prefilled issue on Forgejo/Gitea (URL, page title, selected fragment). npm forgejo README
@ampernic/vitepress-plugin-single-page Build-time single.md generator per version: one page covering the whole document for Ctrl+F and pagefind. npm forgejo README
@ampernic/vitepress-theme-alt-docs Shared VitePress theme for ALT Linux documentation. npm forgejo README

Development

Requirements: Node.js LTS and pnpm@10.

# установить зависимости всего workspace
pnpm install

# режим разработки (сайт docs/)
pnpm dev

# сборка всех пакетов и сайта
pnpm build

# только пакеты
pnpm build:packages
pnpm stub:packages
pnpm dev:packages

# качественные ворота
pnpm test
pnpm test:watch
pnpm lint
pnpm typecheck

# всё сразу (typecheck + lint + test)
pnpm check

The test, lint, and typecheck scripts are aggregators: they run the same-named script in every package under ./packages/* where it is defined. Packages without such a script are silently skipped.

A package tsconfig may extend the root tsconfig.base.json (strict, moduleResolution: bundler, ES2022). The root eslint.config.js in ESLint 9 flat-config form sets the TS and JS baseline; a package may layer its own eslint.config.js on top.

Publishing

Publishing runs automatically on push of a git tag matching v*:

  • .forgejo/workflows/publish.yml publishes to public npmjs.org.
  • .forgejo/workflows/publish-forgejo.yml publishes to the private Forgejo npm registry at altlinux.space/api/packages/ampernic/npm/.

Both workflows iterate over packages/*/, skip already-published versions (npm returns 200 on a version GET; Forgejo is checked by tarball URL), and do not fail the whole run because a single package failed.

Before tagging:

  1. Bump version in the target package's package.json.
  2. Build and confirm that pnpm check is green.
  3. Commit and push.
  4. Tag: git tag v<YYYY.MM.DD>-<slug> or in the package's own style; the workflow triggers on any v* tag.

CI

.forgejo/workflows/ci.yml runs on every push and pull request (tag pushes are excluded; those go through the publish workflows) and sequentially runs pnpm test, pnpm lint, pnpm typecheck in the registry.altlinux.org/alt/node:latest container.

Contributing

Patches, bug reports, and proposals go through issues and pull requests at altlinux.space/ampernic/integrations.

Style:

  • Comments terse, non-obvious why only.
  • No em-dash, arrows, ellipsis, or curly quotes in prose and code.
  • Commit and PR text in English, no references to internal trackers or people's names.
  • Strict rules for package types and APIs (see TypeScript strict in the base config).

License: GPL-3.0.