-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into scottcazan/rnd-5393-track-page-view-with-sit…
…espaceid-in-api
- Loading branch information
Showing
23 changed files
with
372 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@gitbook/react-openapi': patch | ||
--- | ||
|
||
Fixed scalar api client routing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@gitbook/react-openapi': patch | ||
--- | ||
|
||
Bumped scalar api client pacakge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'gitbook': minor | ||
--- | ||
|
||
Fix an issue where the space dropdown was shown under the site sections in Safari. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'gitbook': minor | ||
--- | ||
|
||
Fix an issue where the space dropdown could appear behind the header. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'gitbook': minor | ||
--- | ||
|
||
Fix the styling of site section tabs on smaller screens. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { | ||
DocumentBlockListOrdered, | ||
DocumentBlockListTasks, | ||
DocumentBlockListUnordered, | ||
} from '@gitbook/api'; | ||
import assertNever from 'assert-never'; | ||
|
||
import { BlockProps } from './Block'; | ||
import { Blocks } from './Blocks'; | ||
|
||
export function List( | ||
props: BlockProps< | ||
DocumentBlockListUnordered | DocumentBlockListOrdered | DocumentBlockListTasks | ||
>, | ||
) { | ||
const { block, style, ancestorBlocks, ...contextProps } = props; | ||
|
||
return ( | ||
<Blocks | ||
{...contextProps} | ||
tag={getListTag(block.type)} | ||
nodes={block.nodes} | ||
ancestorBlocks={[...ancestorBlocks, block]} | ||
style={['space-y-2', style]} | ||
/> | ||
); | ||
} | ||
|
||
function getListTag( | ||
type: | ||
| DocumentBlockListUnordered['type'] | ||
| DocumentBlockListOrdered['type'] | ||
| DocumentBlockListTasks['type'], | ||
) { | ||
switch (type) { | ||
case 'list-ordered': | ||
return 'ol'; | ||
case 'list-unordered': | ||
case 'list-tasks': | ||
return 'ul'; | ||
default: | ||
assertNever(type); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
packages/gitbook/src/components/DocumentView/ListItem.module.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.