mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 20:16:36 +00:00
website: Remove h4 heading component and update document navigation
This commit is contained in:
parent
c05e2de963
commit
5bf1c0ffdd
2 changed files with 1 additions and 8 deletions
|
|
@ -16,7 +16,7 @@ export const DocumentNav: FC<Props> = ({ content }) => {
|
||||||
.filter(item => item.startsWith('##'))
|
.filter(item => item.startsWith('##'))
|
||||||
.filter(item => !item.startsWith('####'))
|
.filter(item => !item.startsWith('####'))
|
||||||
.map(item => parseHeadingId([item]))
|
.map(item => parseHeadingId([item]))
|
||||||
.filter(item => item);
|
.filter(item => item)
|
||||||
|
|
||||||
const activeHash = useActiveHash(parsedHeadings.map(heading => heading!.headingId));
|
const activeHash = useActiveHash(parsedHeadings.map(heading => heading!.headingId));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,13 +91,6 @@ const MDComponents = {
|
||||||
</Heading>
|
</Heading>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
h4: ({ children }: any) => {
|
|
||||||
return (
|
|
||||||
<Heading as='h4' mb='2.5 !important' {...h4} id={children}>
|
|
||||||
{children}
|
|
||||||
</Heading>
|
|
||||||
);
|
|
||||||
},
|
|
||||||
// tables
|
// tables
|
||||||
table: ({ children }: any) => (
|
table: ({ children }: any) => (
|
||||||
<Flex overflowX='auto'>
|
<Flex overflowX='auto'>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue