File tree Expand file tree Collapse file tree 6 files changed +15
-8
lines changed Expand file tree Collapse file tree 6 files changed +15
-8
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ title: 'Choose a Low Cardinality Partitioning Key'
5
5
description : ' Use a low cardinality partitioning key or avoid using any partitioning key for your table.'
6
6
---
7
7
8
- import Content from '@site/docs /best-practices/partionning_keys.md ';
8
+ import Content from '@site/docs /best-practices/partitioning_keys.mdx ';
9
9
10
10
<Content />
Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ const config = {
60
60
// url: process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : 'https://bookish-disco-5997zvo.pages.github.io',
61
61
baseUrl : "/docs/" ,
62
62
baseUrlIssueBanner : true ,
63
- onBrokenLinks : "warn " ,
63
+ onBrokenLinks : "throw " ,
64
64
onBrokenMarkdownLinks : "warn" ,
65
65
onDuplicateRoutes : "throw" ,
66
- onBrokenAnchors : "warn " ,
66
+ onBrokenAnchors : "throw " ,
67
67
favicon : "img/docs_favicon.ico" ,
68
68
organizationName : "ClickHouse" ,
69
69
trailingSlash : false ,
Original file line number Diff line number Diff line change @@ -37,8 +37,15 @@ const plugin = (options) => {
37
37
if ( attr . name === 'type' && typeof attr . value === 'string' ) {
38
38
type = attr . value ;
39
39
} else if ( attr . name === 'headerLevel' && typeof attr . value === 'string' ) {
40
- if ( attr . value === "h3" )
41
- headerLevel = 3
40
+ let set_level = attr . value
41
+ const regex = / h ( [ 2 - 5 ] ) / ;
42
+ const match = set_level . match ( regex ) ;
43
+ // If there's a match, convert the captured group to a number
44
+ if ( match ) {
45
+ headerLevel = Number ( match [ 1 ] ) ;
46
+ } else {
47
+ throw new Error ( "VerticalStepper supported only for h2-5" ) ;
48
+ }
42
49
}
43
50
}
44
51
} ) ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const sidebars = {
89
89
"best-practices/select_data_type" ,
90
90
"best-practices/use_materialized_views" ,
91
91
"best-practices/minimize_optimize_joins" ,
92
- "best-practices/partionning_keys " ,
92
+ "best-practices/partitioning_keys " ,
93
93
"best-practices/selecting_an_insert_strategy" ,
94
94
"best-practices/using_data_skipping_indices" ,
95
95
"best-practices/avoid_mutations" ,
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ const VStepper = ({
89
89
const isExpandedMode = expanded === 'true' ;
90
90
91
91
let hType = 'h2' ;
92
- if ( headerLevel == 3 ) {
93
- hType = 'h3'
92
+ if ( headerLevel > 2 ) {
93
+ hType = `h ${ headerLevel } `
94
94
}
95
95
96
96
// Get children and filter out non-elements
You can’t perform that action at this time.
0 commit comments