Skip to content

Commit ab958ee

Browse files
committed
more
1 parent 22d3dae commit ab958ee

File tree

15 files changed

+23
-68
lines changed

15 files changed

+23
-68
lines changed

website/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const env = {
2323
}
2424

2525
const withNextra = nextra({
26-
theme: '@graphprotocol/nextra-theme',
26+
theme: './src/nextra-theme/index.tsx',
2727
search: false,
2828
codeHighlight: false,
2929
defaultShowCopyCode: false,

website/pages/[locale]/[...404].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LinkInline } from '@graphprotocol/nextra-theme'
1+
import { Link } from '@edgeandnode/gds'
22
import type { GetStaticPaths, GetStaticProps, NextPage } from 'next'
33

44
import { NotFound, Spacing } from '@edgeandnode/gds'
@@ -26,7 +26,7 @@ const Page: NextPage = () => {
2626
<NotFound
2727
title={t('global.notFoundTitle')}
2828
subtitle={t('global.notFoundSubtitle')}
29-
link={<LinkInline href="/">{t('global.goHome')}</LinkInline>}
29+
link={<Link.Inline href="/">{t('global.goHome')}</Link.Inline>}
3030
/>
3131
</div>
3232
)

website/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DocSearch } from '@graphprotocol/nextra-theme'
1+
import { DocSearch } from '@/src/nextra-theme/components'
22
import mixpanel from 'mixpanel-browser'
33
import type { AppProps } from 'next/app'
44
import NextLink from 'next/link'

website/pages/en/developing/graph-ts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ For examples of `graph-ts` in use take a look at one of the following subgraphs:
7373

7474
Copyright &copy; 2018 Graph Protocol, Inc. and contributors.
7575

76-
The Graph TypeScript library is dual-licensed under the [MIT license](LICENSE-MIT) and the
77-
[Apache License, Version 2.0](LICENSE-APACHE).
76+
The Graph TypeScript library is dual-licensed under the [MIT license](../../LICENSE-MIT) and the
77+
[Apache License, Version 2.0](../../LICENSE-APACHE).
7878

7979
Unless required by applicable law or agreed to in writing, software distributed under the License is
8080
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or

website/src/IndexPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Image, LinkInline } from '@graphprotocol/nextra-theme'
1+
import { Image } from '@/src/nextra-theme/components'
22
import { useData } from 'nextra/hooks'
33

44
import { BorderRadius, buildBorder, buildTransition, Flex, Link, Spacing, Text } from '@edgeandnode/gds'
@@ -139,7 +139,7 @@ export function NetworkRoles() {
139139
</Text>
140140
</div>
141141
<Text as="div" weight="SEMIBOLD" size="16px" sx={{ mt: 'auto' }}>
142-
<LinkInline href={role.href}>{t('index.readMore')}</LinkInline>
142+
<Link.Inline href={role.href}>{t('index.readMore')}</Link.Inline>
143143
</Text>
144144
</Flex.Column>
145145
))}
@@ -187,7 +187,7 @@ export function Products() {
187187
</Text>
188188
</div>
189189
<Text as="div" weight="SEMIBOLD" size="16px" sx={{ mt: 'auto' }}>
190-
<LinkInline href={product.href}>{t('index.readMore')}</LinkInline>
190+
<Link.Inline href={product.href}>{t('index.readMore')}</Link.Inline>
191191
</Text>
192192
</Flex.Column>
193193
))}

website/src/contracts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ContractAddresses from '@graphprotocol/contracts/addresses.json'
2-
import { Table } from '@graphprotocol/nextra-theme'
2+
import { Table } from '@/src/nextra-theme/components'
33

44
import { getAddressLink } from '@edgeandnode/common'
55
import { Link } from '@edgeandnode/gds'

website/src/nextra-theme/components/EditPageLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { type HTMLAttributes, useContext } from 'react'
22

33
import { Icon, Link, useI18n } from '@edgeandnode/gds'
44

5-
import { NavContext } from '@/layout/NavContext'
5+
import { NavContext } from '../layout/NavContext'
66

77
export type EditPageLinkProps = {
88
mobile?: boolean

website/src/nextra-theme/components/Heading.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import { type ElementType, useContext } from 'react'
33
import { useInView } from 'react-intersection-observer'
44
import { useDebounce } from 'react-use'
55

6-
import { buildTransition, Opacity, Spacing, Text, type TextProps, useI18n } from '@edgeandnode/gds'
6+
import { buildTransition, Opacity, Spacing, Text, type TextProps, useI18n, Link } from '@edgeandnode/gds'
77

8-
import { LinkInline } from './Link'
98
import { DocumentContext } from '../layout'
109

1110
export type HeadingProps = TextProps & {
@@ -47,10 +46,10 @@ const BaseHeading = ({ level, id, children, ...props }: HeadingProps) => {
4746
>
4847
{/* Zero-width non-breaking space, to prevent a line break between the `#` and the previous word */}
4948
&#8288;
50-
<LinkInline href={`#${id}`}>
49+
<Link.Inline href={`#${id}`}>
5150
<span aria-hidden="true">#</span>
5251
<VisuallyHidden.Root>{t('global.linkToThisSection')}</VisuallyHidden.Root>
53-
</LinkInline>
52+
</Link.Inline>
5453
</span>
5554
) : null}
5655
</Text>

website/src/nextra-theme/components/Link.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

website/src/nextra-theme/components/List.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,3 @@ export const ListUnordered = (props: HTMLAttributes<HTMLUListElement>) => {
2929
/>
3030
)
3131
}
32-
33-
export const ListItem = (props: HTMLAttributes<HTMLLIElement>) => {
34-
return <List.Item {...props} />
35-
}

0 commit comments

Comments
 (0)