forked from Uniswap/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stylize breadcrumb sidenav prev next links and rebase
- Loading branch information
Showing
20 changed files
with
241 additions
and
224 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 |
---|---|---|
|
@@ -5,4 +5,4 @@ module.exports = { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; | ||
} |
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 |
---|---|---|
|
@@ -102,3 +102,7 @@ select { | |
scroll-behavior: auto !important; | ||
} | ||
} | ||
|
||
.navbar { | ||
all: initial; | ||
} |
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 |
---|---|---|
@@ -1,16 +1,10 @@ | ||
import OriginalDocBreadcrumbs from '@theme-original/DocBreadcrumbs' | ||
import { DocsSentimentSection } from '@uniswap/analytics-events' | ||
import React from 'react' | ||
|
||
import SentimentTracking from '../components/SentimentTracking' | ||
|
||
export default function DocBreadcrumbs(props) { | ||
Check warning on line 4 in src/theme/DocBreadcrumbs.tsx GitHub Actions / Check uniswap Benchmarks
|
||
return ( | ||
<div> | ||
<OriginalDocBreadcrumbs /> | ||
<div> | ||
<SentimentTracking analyticsSection={DocsSentimentSection.TOP_SECTION} /> | ||
</div> | ||
</div> | ||
) | ||
} |
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react'; | ||
import {PageMetadata} from '@docusaurus/theme-common'; | ||
import {useDoc} from '@docusaurus/theme-common/internal'; | ||
import React from 'react' | ||
import { PageMetadata } from '@docusaurus/theme-common' | ||
import { useDoc } from '@docusaurus/theme-common/internal' | ||
export default function DocItemMetadata() { | ||
const {metadata, frontMatter, assets} = useDoc(); | ||
const { metadata, frontMatter, assets } = useDoc() | ||
return ( | ||
<PageMetadata | ||
title={metadata.title} | ||
description={metadata.description} | ||
keywords={frontMatter.keywords} | ||
image={assets.image ?? frontMatter.image} | ||
/> | ||
); | ||
) | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import React from 'react'; | ||
import {useDoc} from '@docusaurus/theme-common/internal'; | ||
import DocPaginator from '@theme/DocPaginator'; | ||
import React from 'react' | ||
import { useDoc } from '@docusaurus/theme-common/internal' | ||
import DocPaginator from '@theme/DocPaginator' | ||
/** | ||
* This extra component is needed, because <DocPaginator> should remain generic. | ||
* DocPaginator is used in non-docs contexts too: generated-index pages... | ||
*/ | ||
export default function DocItemPaginator() { | ||
const {metadata} = useDoc(); | ||
return <DocPaginator previous={metadata.previous} next={metadata.next} />; | ||
const { metadata } = useDoc() | ||
return <DocPaginator previous={metadata.previous} next={metadata.next} /> | ||
} |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import React from 'react'; | ||
import {ThemeClassNames} from '@docusaurus/theme-common'; | ||
import {useDoc} from '@docusaurus/theme-common/internal'; | ||
import TOC from '@theme/TOC'; | ||
import React from 'react' | ||
import { ThemeClassNames } from '@docusaurus/theme-common' | ||
import { useDoc } from '@docusaurus/theme-common/internal' | ||
import TOC from '@theme/TOC' | ||
export default function DocItemTOCDesktop() { | ||
const {toc, frontMatter} = useDoc(); | ||
const { toc, frontMatter } = useDoc() | ||
return ( | ||
<TOC | ||
toc={toc} | ||
minHeadingLevel={frontMatter.toc_min_heading_level} | ||
maxHeadingLevel={frontMatter.toc_max_heading_level} | ||
className={ThemeClassNames.docs.docTocDesktop} | ||
/> | ||
); | ||
) | ||
} |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import {ThemeClassNames} from '@docusaurus/theme-common'; | ||
import {useDoc} from '@docusaurus/theme-common/internal'; | ||
import TOCCollapsible from '@theme/TOCCollapsible'; | ||
import styles from './styles.module.css'; | ||
import React from 'react' | ||
import clsx from 'clsx' | ||
import { ThemeClassNames } from '@docusaurus/theme-common' | ||
import { useDoc } from '@docusaurus/theme-common/internal' | ||
import TOCCollapsible from '@theme/TOCCollapsible' | ||
import styles from './styles.module.css' | ||
export default function DocItemTOCMobile() { | ||
const {toc, frontMatter} = useDoc(); | ||
const { toc, frontMatter } = useDoc() | ||
return ( | ||
<TOCCollapsible | ||
toc={toc} | ||
minHeadingLevel={frontMatter.toc_min_heading_level} | ||
maxHeadingLevel={frontMatter.toc_max_heading_level} | ||
className={clsx(ThemeClassNames.docs.docTocMobile, styles.tocMobile)} | ||
/> | ||
); | ||
) | ||
} |
Oops, something went wrong.