chore: rename src/ -> docs/
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 812 B After Width: | Height: | Size: 812 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@ -3,10 +3,10 @@ import App, {Container} from 'next/app'
|
||||
import {MDXProvider} from '@mdx-js/tag'
|
||||
import Head from 'next/head'
|
||||
import {BaseStyles, BorderBox, Box, Flex, theme} from '@primer/components'
|
||||
import {Header, PackageHeader, SideNav} from '../src/components'
|
||||
import getComponents from '../src/markdown'
|
||||
import {config, requirePage, rootPage} from '../src/utils'
|
||||
import {CONTENT_MAX_WIDTH} from '../src/constants'
|
||||
import {Header, PackageHeader, SideNav} from '../docs/components'
|
||||
import getComponents from '../docs/markdown'
|
||||
import {config, requirePage, rootPage} from '../docs/utils'
|
||||
import {CONTENT_MAX_WIDTH} from '../docs/constants'
|
||||
|
||||
import 'primer/index.scss'
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import Document, {Head, Main, NextScript} from 'next/document'
|
||||
import {ServerStyleSheet} from 'styled-components'
|
||||
import {getAssetPath, CommonStyles, CommonScripts} from '../src/utils'
|
||||
import {getAssetPath, CommonStyles, CommonScripts} from '../docs/utils'
|
||||
|
||||
export default class MyDocument extends Document {
|
||||
static getInitialProps({renderPage}) {
|
||||
|
@ -7,7 +7,7 @@ symbols: [Box--overlay, Box-header, Box-overlay--narrow, Box-overlay--wide]
|
||||
keywords: [box, overlay]
|
||||
---
|
||||
|
||||
import DetailsDialog from '../../../src/DetailsDialog'
|
||||
import DetailsDialog from '../../../docs/DetailsDialog'
|
||||
|
||||
## Box overlays
|
||||
Use the `Box--overlay` with the `<details>` and [`<details-dialog>`](https://github.com/github/details-dialog), and add the `details-overlay-dark` utility if you wish to apply a dark transparent background.
|
||||
|
@ -5,8 +5,8 @@ import {
|
||||
PrimerPackageBox,
|
||||
PrimitivesOverview,
|
||||
StylesOverview
|
||||
} from '../../src/landing'
|
||||
import {CONTENT_MAX_WIDTH} from '../../src/constants'
|
||||
} from '../../docs/landing'
|
||||
import {CONTENT_MAX_WIDTH} from '../../docs/constants'
|
||||
import {name, version} from '../../package.json'
|
||||
import packages from './packages.json'
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: Status key
|
||||
---
|
||||
|
||||
import StatusLabel from '../../src/StatusLabel'
|
||||
import StatusLabel from '../../docs/StatusLabel'
|
||||
|
||||
Primer is constantly evolving and we have many styles to refactor and bring up to standard. The status of each package is shown with it's corresponding documentation so you can be confident which styles are safe to use.
|
||||
|
||||
|
@ -10,7 +10,7 @@ package:
|
||||
---
|
||||
|
||||
import {BorderBox, Box, Flex, Heading, Text} from '@primer/components'
|
||||
import {ColorPalette, ColorVariables} from '../../../src/color-system'
|
||||
import {ColorPalette, ColorVariables} from '../../../docs/color-system'
|
||||
|
||||
{:toc}
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
import redirect from '../src/redirect'
|
||||
import redirect from '../docs/redirect'
|
||||
export default redirect('/css')
|
||||
|