@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 +2 -2
- package/dist/expressive-code.d.ts +14 -0
- package/dist/expressive-code.js +1171 -0
- package/dist/expressive-code.js.map +13 -0
- package/dist/fences.d.ts +32 -0
- package/dist/grammar/langium.d.ts +42 -0
- package/dist/grammar/source.d.ts +90 -0
- package/dist/grammar/textmate.d.ts +51 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +1125 -0
- package/dist/index.js.map +15 -0
- package/{src/grammar → dist}/likec4.tmLanguage.json +3 -3
- package/dist/translations.d.ts +21 -0
- package/package.json +23 -14
- package/src/components/labels.ts +5 -1
- package/src/expressive-code.d.mts +0 -28
- package/src/expressive-code.mjs +0 -46
- package/src/fences.mjs +0 -288
- package/src/grammar/langium.mjs +0 -559
- package/src/grammar/source.mjs +0 -410
- package/src/grammar/textmate.mjs +0 -439
- package/src/index.d.mts +0 -64
- package/src/index.mjs +0 -228
- package/src/types.d.ts +0 -12
- /package/{src/grammar → dist}/like-c4.langium +0 -0
- /package/src/{translations.mjs → translations.ts} +0 -0
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.
|
|
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.
|
|
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;
|