Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2/4 move @graphprotocol/nextra-theme to @graphprotocol/docs #732

Merged
merged 4 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions packages/nextra-theme/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/nextra-theme/src/components/Link.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions packages/nextra-theme/tsconfig.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/nextra-theme/tsup.config.ts

This file was deleted.

130 changes: 21 additions & 109 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const env = {
}

const withNextra = nextra({
theme: '@graphprotocol/nextra-theme',
theme: './src/nextra-theme/index.tsx',
search: false,
codeHighlight: false,
defaultShowCopyCode: false,
Expand Down
8 changes: 7 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@docsearch/react": "^3.6.1",
"@radix-ui/react-collapsible": "^1.1.0",
"@radix-ui/react-visually-hidden": "^1.1.0",
"lodash": "^4.17.21",
"react-intersection-observer": "^9.13.0",
"react-use": "^17.5.0",
"@edgeandnode/common": "^6.13.0",
"@edgeandnode/gds": "^5.23.0",
"@edgeandnode/go": "^6.33.0",
"@emotion/react": "^11.12.0",
"@graphprotocol/contracts": "6.2.1",
"@graphprotocol/nextra-theme": "workspace:*",
"@phosphor-icons/react": "^2.1.7",
"mixpanel-browser": "^2.53.0",
"next": "^14.2.5",
Expand All @@ -31,6 +36,7 @@
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@types/lodash": "^4.17.7",
"@graphprotocol/client-cli": "3.0.3",
"@types/mdast": "^4.0.4",
"@types/mixpanel-browser": "^2.49.1",
Expand Down
4 changes: 2 additions & 2 deletions website/pages/[locale]/[...404].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LinkInline } from '@graphprotocol/nextra-theme'
import type { GetStaticPaths, GetStaticProps, NextPage } from 'next'

import { Link } from '@edgeandnode/gds'
import { NotFound, Spacing } from '@edgeandnode/gds'

import { supportedLocales, useI18n } from '@/i18n'
Expand All @@ -26,7 +26,7 @@ const Page: NextPage = () => {
<NotFound
title={t('global.notFoundTitle')}
subtitle={t('global.notFoundSubtitle')}
link={<LinkInline href="/">{t('global.goHome')}</LinkInline>}
link={<Link.Inline href="/">{t('global.goHome')}</Link.Inline>}
/>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion website/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { DocSearch } from '@graphprotocol/nextra-theme'
import mixpanel from 'mixpanel-browser'
import type { AppProps } from 'next/app'
import NextLink from 'next/link'
Expand All @@ -18,6 +17,7 @@ import {
import { CookieBanner, GlobalFooter, GlobalHeader } from '@edgeandnode/go'

import { supportedLocales, translations, useI18n } from '@/i18n'
import { DocSearch } from '@/src/nextra-theme/components'

import '@edgeandnode/gds/style.css'
import '@docsearch/css'
Expand Down
4 changes: 2 additions & 2 deletions website/pages/en/developing/graph-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ For examples of `graph-ts` in use take a look at one of the following subgraphs:

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

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

Unless required by applicable law or agreed to in writing, software distributed under the License is
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
Expand Down
6 changes: 3 additions & 3 deletions website/src/IndexPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Image, LinkInline } from '@graphprotocol/nextra-theme'
import { useData } from 'nextra/hooks'

import { BorderRadius, buildBorder, buildTransition, Flex, Link, Spacing, Text } from '@edgeandnode/gds'
import { NetworkIcon } from '@edgeandnode/go'

import { useI18n } from '@/i18n'
import { Image } from '@/src/nextra-theme/components'

import { getSupportedNetworks } from './supportedNetworks'

Expand Down Expand Up @@ -139,7 +139,7 @@ export function NetworkRoles() {
</Text>
</div>
<Text as="div" weight="SEMIBOLD" size="16px" sx={{ mt: 'auto' }}>
<LinkInline href={role.href}>{t('index.readMore')}</LinkInline>
<Link.Inline href={role.href}>{t('index.readMore')}</Link.Inline>
</Text>
</Flex.Column>
))}
Expand Down Expand Up @@ -187,7 +187,7 @@ export function Products() {
</Text>
</div>
<Text as="div" weight="SEMIBOLD" size="16px" sx={{ mt: 'auto' }}>
<LinkInline href={product.href}>{t('index.readMore')}</LinkInline>
<Link.Inline href={product.href}>{t('index.readMore')}</Link.Inline>
</Text>
</Flex.Column>
))}
Expand Down
3 changes: 2 additions & 1 deletion website/src/contracts.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import ContractAddresses from '@graphprotocol/contracts/addresses.json'
import { Table } from '@graphprotocol/nextra-theme'

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

import { Table } from '@/src/nextra-theme/components'

type ValueOf<T> = T[keyof T]
const contractsByNetworkId = ContractAddresses as Record<string, ValueOf<typeof ContractAddresses>>

Expand Down
Loading
Loading