Skip to content

Commit

Permalink
move themeConfig type to theme folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rezrah committed Nov 30, 2023
1 parent cf992c7 commit 6eaa8ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function TableOfContents({headings}: TableOfContentsProps) {

return (
<aside className={styles.wrapper}>
<Text as="p" size="100" variant="muted" font-weight="normal" className={styles.heading}>
<Text as="p" size="100" variant="muted" weight="normal" className={styles.heading}>
On this page
</Text>
<NavList>
Expand Down
11 changes: 10 additions & 1 deletion @primer-nextocat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Head from 'next/head'
import type {MdxFile, NextraThemeLayoutProps} from 'nextra'
import {useFSRoute} from 'nextra/hooks'
import React, {useMemo} from 'react'

import type {Icon} from '@primer/octicons-react'
import {PencilIcon} from '@primer/octicons-react'
import {BaseStyles, Breadcrumbs, PageLayout, ThemeProvider} from '@primer/react'
import {
Expand Down Expand Up @@ -190,3 +190,12 @@ export default function Layout({children, pageOpts}: NextraThemeLayoutProps) {
</BrandThemeProvider>
)
}

export type ThemeConfig = {
docsRepositoryBase: string
sidebarLinks: {
title: string
href: string
leadingIcon?: Icon
}[]
}
12 changes: 2 additions & 10 deletions theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import React from 'react'
import {Icon, OrganizationIcon, RepoIcon} from '@primer/octicons-react'

export type ThemeConfig = {
docsRepositoryBase: string
sidebarLinks: {
title: string
href: string
leadingIcon?: Icon
}[]
}
import {OrganizationIcon, RepoIcon} from '@primer/octicons-react'
import type {ThemeConfig} from './@primer-nextocat'

const config: ThemeConfig = {
docsRepositoryBase: 'https://github.com/primer/nextocat',
Expand Down

0 comments on commit 6eaa8ca

Please sign in to comment.