@purview-dev/astroc4 1.0.0-prerelease.2 → 1.0.0-prerelease.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -139,7 +139,7 @@ with the integration options, so its own languages and the plugin's coexist.
139
139
 
140
140
  ### Translating
141
141
 
142
- Add any key from `src/translations.mjs` to the site's
142
+ Add any key from `src/translations.ts` to the site's
143
143
  `src/content/i18n/<lang>.json`. Placeholders are `{name}` — single braces,
144
144
  because some are filled in by the browser, not by i18next.
145
145
 
@@ -161,7 +161,7 @@ bun run test:site # pack the tarball and build a real Starlight site from i
161
161
  bun run check # astro check over playground/ and src/
162
162
  bun run grammar:check # fail if the committed grammar snapshot is stale
163
163
  bun run build && bun run preview
164
- bun scripts/smoke.mjs http://localhost:4321 # headless: hydration, icons, highlighting, i18n
164
+ bun scripts/smoke.ts http://localhost:4321 # headless: hydration, icons, highlighting, i18n
165
165
  ```
166
166
 
167
167
  `Justfile` wraps each of those (`just verify` runs what the PR workflow runs).
@@ -0,0 +1,14 @@
1
+ import type { LanguageRegistration } from 'shiki';
2
+ import { type GrammarSourceOptions } from './grammar/source.js';
3
+ /** Shiki registration for LikeC4, under `likec4` with a `c4` alias. */
4
+ export declare const likec4Language: LanguageRegistration & {
5
+ aliases: string[];
6
+ };
7
+ /**
8
+ * Resolve the grammar from likec4/likec4 at the ref you ask for and return it
9
+ * as a Shiki language registration.
10
+ */
11
+ export declare function loadLikeC4Language(options?: GrammarSourceOptions): Promise<LanguageRegistration & {
12
+ aliases: string[];
13
+ }>;
14
+ export default likec4Language;