Skip to content

Commit

Permalink
fix weird failure in starlight
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Dec 5, 2024
1 parent 1a36ded commit 9a49fa8
Show file tree
Hide file tree
Showing 7 changed files with 389 additions and 149 deletions.
8 changes: 3 additions & 5 deletions codegen/src/lintdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ fn generate_and_write_rule_pages(rule_category: RuleCategory, rules: Rules) -> R
};
let index_page = root.join("index.mdx");
let reference_groups = match rule_category {
RuleCategory::Lint => project_root().join("src/components/generated/linter/Groups.astro"),
RuleCategory::Lint => project_root().join("src/components/generated/Groups.astro"),
RuleCategory::Action => project_root().join("src/components/generated/assist/Groups.astro"),
_ => unimplemented!(""),
};
Expand All @@ -211,9 +211,7 @@ fn generate_and_write_rule_pages(rule_category: RuleCategory, rules: Rules) -> R
_ => unimplemented!(""),
};
let reference_number_of_rules = match rule_category {
RuleCategory::Lint => {
project_root().join("src/components/generated/linter/NumberOfRules.astro")
}
RuleCategory::Lint => project_root().join("src/components/generated/NumberOfRules.astro"),
RuleCategory::Action => {
project_root().join("src/components/generated/assist/NumberOfRules.astro")
}
Expand All @@ -222,7 +220,7 @@ fn generate_and_write_rule_pages(rule_category: RuleCategory, rules: Rules) -> R

let reference_recommended_rules = match rule_category {
RuleCategory::Lint => {
project_root().join("src/components/generated/linter/RecommendedRules.astro")
project_root().join("src/components/generated/RecommendedRules.astro")
}
RuleCategory::Action => {
project_root().join("src/components/generated/assist/RecommendedRules.astro")
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@astrojs/prism": "3.1.0",
"@astrojs/react": "3.6.3",
"@astrojs/rss": "4.0.9",
"@astrojs/starlight": "0.26.1",
"@astrojs/starlight": "0.29.2",
"@biomejs/biome": "1.8.3",
"@biomejs/wasm-web": "https://pkg.pr.new/biomejs/biome/@biomejs/wasm-web@66458a1",
"@codemirror/lang-css": "6.3.1",
Expand All @@ -41,7 +41,7 @@
"@types/react-dom": "18.3.1",
"@uiw/react-codemirror": "4.23.6",
"@vitejs/plugin-react": "4.3.3",
"astro": "4.16.15",
"astro": "4.16.16",
"astro-og-canvas": "0.5.4",
"autoprefixer": "10.4.20",
"canvaskit-wasm": "0.39.1",
Expand Down
320 changes: 180 additions & 140 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/components/generated/Groups.astro

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/components/generated/NumberOfRules.astro

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

191 changes: 191 additions & 0 deletions src/components/generated/RecommendedRules.astro

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a49fa8

Please sign in to comment.