- TypeScript 89.7%
- Vue 7.9%
- Python 0.9%
- JavaScript 0.8%
- CSS 0.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| docs | ||
| packages | ||
| .gitignore | ||
| .npmrc | ||
| eslint.config.js | ||
| integrations | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| README.ru.md | ||
| tsconfig.base.json | ||
| vue-shim.d.ts | ||
integrations
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.ymlpublishes to publicnpmjs.org..forgejo/workflows/publish-forgejo.ymlpublishes to the private Forgejo npm registry ataltlinux.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:
- Bump
versionin the target package'spackage.json. - Build and confirm that
pnpm checkis green. - Commit and push.
- Tag:
git tag v<YYYY.MM.DD>-<slug>or in the package's own style; the workflow triggers on anyv*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.