|
2 | 2 | "name": "techdocs", |
3 | 3 | "version": "0.0.0", |
4 | 4 | "description": "Resources provided by the CNCF Technical Documentation team.", |
| 5 | + "type": "module", |
5 | 6 | "scripts": { |
6 | | - "_build": "npm run docus:build", |
| 7 | + "_build": "npm run astro:build -- --force", |
7 | 8 | "_check:format:any": "npx prettier --check --ignore-path ''", |
8 | 9 | "_check:format:delta": "npm run _check:format:any -- $(npm run -s _list:git:delta)", |
9 | 10 | "_check:format": "npx prettier --check .", |
|
18 | 19 | "_list:check:md": "find . -name '*.md' -not -path '*/node_modules/*' -a -not -path '*/.?*' | grep -Eve '/000|/0010'", |
19 | 20 | "_list:fix:*": "npm run --loglevel=warn | grep -Ee '^\\s*fix:[^:]+$' | grep -v 'fix:all'", |
20 | 21 | "_list:git:delta": "git diff --name-only --diff-filter=ACMR | grep -E '\\.(js|md|scss|yml|yaml)$'", |
| 22 | + "add-frontmatter": "node scripts/add-frontmatter.mjs", |
| 23 | + "astro:build": "astro build", |
| 24 | + "astro:postbuild": "find dist -name \"*.html\" -exec perl -i -pe 's|<link rel=\"canonical\"\\s*/>||g' {} +", |
| 25 | + "astro:dev": "astro dev", |
| 26 | + "astro:preview": "astro preview", |
| 27 | + "astro": "astro", |
21 | 28 | "build:preview": "npm run _build", |
22 | 29 | "build:production": "npm run _build", |
23 | 30 | "build": "BUILD_ENV=dev npm run _build", |
|
26 | 33 | "check:markdown": "npm run _check:markdown:all", |
27 | 34 | "check:spelling": "npx cspell --no-progress -c .cspell.yml analyses docs *.md", |
28 | 35 | "check": "npm run seq -- $(npm run -s _list:check:*)", |
| 36 | + "postastro:build": "find dist -name \"*.html\" -exec perl -i -pe 's|<link rel=\"canonical\"\\s*/>||g' {} +", |
29 | 37 | "docus:build": "docusaurus build", |
30 | 38 | "docus:clear": "docusaurus clear", |
31 | 39 | "docus:deploy": "docusaurus deploy", |
|
47 | 55 | "author": "CNCF", |
48 | 56 | "license": "CC-BY-4.0", |
49 | 57 | "dependencies": { |
| 58 | + "@astrojs/starlight": "^0.34.4", |
50 | 59 | "@docusaurus/core": "3.8.1", |
51 | 60 | "@docusaurus/preset-classic": "3.8.1", |
52 | 61 | "@mdx-js/react": "^3.1.0", |
| 62 | + "astro": "^5.6.1", |
53 | 63 | "clsx": "^2.1.1", |
54 | 64 | "prism-react-renderer": "^2.4.1", |
55 | 65 | "react-dom": "^19.1.0", |
56 | | - "react": "^19.1.0" |
| 66 | + "react": "^19.1.0", |
| 67 | + "sharp": "^0.32.5", |
| 68 | + "unist-util-visit": "^5.0.0" |
57 | 69 | }, |
58 | 70 | "devDependencies": { |
59 | 71 | "@docusaurus/module-type-aliases": "3.8.1", |
60 | 72 | "@docusaurus/tsconfig": "3.8.1", |
61 | 73 | "@docusaurus/types": "3.8.1", |
62 | 74 | "cspell": "^9.1.1", |
| 75 | + "glob": "^10.3.10", |
63 | 76 | "markdown-link-check": "3.13.7", |
64 | 77 | "markdownlint-cli": "^0.45.0", |
65 | 78 | "markdownlint": "^0.38.0", |
66 | 79 | "npm-check-updates": "^18.0.1", |
67 | 80 | "prettier": "^3.5.3", |
68 | | - "typescript": "~5.8.3" |
| 81 | + "typescript": "~5.8.3", |
| 82 | + "yaml": "^2.4.0" |
69 | 83 | }, |
70 | 84 | "private": true, |
71 | | - "spelling": "cSpell:ignore ACMR docus HTMLTEST loglevel pkgs -", |
| 85 | + "spelling": "cSpell:ignore ACMR docus frontmatter HTMLTEST loglevel pkgs postbuild -", |
72 | 86 | "prettier": { |
73 | 87 | "proseWrap": "always", |
74 | 88 | "singleQuote": true |
|
0 commit comments