├── .prettierignore ├── .babelrc ├── public ├── images │ ├── favicon.png │ ├── pattern.png │ ├── dark-pattern1.png │ ├── dark-pattern2.png │ ├── builtin-components.png │ ├── icons │ │ ├── magic-wand.svg │ │ ├── mdx.svg │ │ ├── typescript.svg │ │ ├── plug.svg │ │ ├── rocket.svg │ │ └── settings.svg │ └── logo.svg └── fonts │ ├── FaktSoftPro-Blond.woff2 │ ├── FaktSoftPro-Medium.woff2 │ └── FaktSoftPro-Normal.woff2 ├── netlify.toml ├── src ├── theme │ ├── components │ │ ├── shared │ │ │ ├── index.ts │ │ │ ├── Main │ │ │ │ └── index.tsx │ │ │ ├── Sidebar │ │ │ │ ├── ads.ts │ │ │ │ ├── Hamburguer.tsx │ │ │ │ └── index.tsx │ │ │ └── Topbar │ │ │ │ └── index.tsx │ │ └── ui │ │ │ ├── H4.tsx │ │ │ ├── H5.tsx │ │ │ ├── H6.tsx │ │ │ ├── List.tsx │ │ │ ├── Container.tsx │ │ │ ├── Hr.tsx │ │ │ ├── Box.tsx │ │ │ ├── H3.tsx │ │ │ ├── Code.tsx │ │ │ ├── Logo.tsx │ │ │ ├── H1.tsx │ │ │ ├── Blockquote.tsx │ │ │ ├── ButtonLink.tsx │ │ │ ├── index.ts │ │ │ ├── H2.tsx │ │ │ ├── Pre.tsx │ │ │ ├── Image.tsx │ │ │ ├── Button.tsx │ │ │ ├── Page.tsx │ │ │ └── Loading.tsx │ ├── config.ts │ ├── styles │ │ ├── responsive.ts │ │ ├── colors.ts │ │ ├── index.ts │ │ ├── base.ts │ │ ├── prism-theme.ts │ │ └── github-button.ts │ └── index.tsx ├── index.html └── types.d.ts ├── .editorconfig ├── docs ├── plugins │ ├── index.mdx │ └── components │ │ ├── Card.tsx │ │ └── Cards.tsx ├── themes │ ├── index.mdx │ └── components │ │ ├── Cards.tsx │ │ └── Card.tsx ├── home │ ├── index.mdx │ └── components │ │ ├── Footer.tsx │ │ ├── Sections.tsx │ │ ├── HowTo.tsx │ │ ├── Hero.tsx │ │ └── Features.tsx ├── documentation │ ├── index.mdx │ └── pages │ │ ├── creating-plugins │ │ └── index.mdx │ │ ├── components-api │ │ └── index.mdx │ │ ├── project-configuration │ │ └── index.mdx │ │ └── creating-themes │ │ └── index.mdx └── introduction │ ├── index.mdx │ └── pages │ ├── getting-started │ └── index.mdx │ ├── deploying-your-docs │ └── index.mdx │ ├── writing-mdx │ └── index.mdx │ ├── documenting-your-things │ └── index.mdx │ └── customizing │ └── index.mdx ├── .prettierrc ├── README.md ├── .gitignore ├── tslint.json ├── doczrc.js ├── tsconfig.json └── package.json /.prettierignore: -------------------------------------------------------------------------------- 1 | *.mdx 2 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["emotion"] 3 | } 4 | -------------------------------------------------------------------------------- /public/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/images/favicon.png -------------------------------------------------------------------------------- /public/images/pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/images/pattern.png -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [[redirects]] 2 | from = "/*" 3 | to = "/index.html" 4 | status = 200 5 | force = false 6 | -------------------------------------------------------------------------------- /public/images/dark-pattern1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/images/dark-pattern1.png -------------------------------------------------------------------------------- /public/images/dark-pattern2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/images/dark-pattern2.png -------------------------------------------------------------------------------- /public/fonts/FaktSoftPro-Blond.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/fonts/FaktSoftPro-Blond.woff2 -------------------------------------------------------------------------------- /public/fonts/FaktSoftPro-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/fonts/FaktSoftPro-Medium.woff2 -------------------------------------------------------------------------------- /public/fonts/FaktSoftPro-Normal.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/fonts/FaktSoftPro-Normal.woff2 -------------------------------------------------------------------------------- /public/images/builtin-components.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojombo/docz-website/master/public/images/builtin-components.png -------------------------------------------------------------------------------- /src/theme/components/shared/index.ts: -------------------------------------------------------------------------------- 1 | export { Main } from './Main' 2 | export { Topbar } from './Topbar' 3 | export { Sidebar } from './Sidebar' 4 | -------------------------------------------------------------------------------- /src/theme/components/ui/H4.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const H4 = styled('h4')` 4 | ${p => p.theme.styles.h4}; 5 | ` 6 | -------------------------------------------------------------------------------- /src/theme/components/ui/H5.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const H5 = styled('h5')` 4 | ${p => p.theme.styles.h5}; 5 | ` 6 | -------------------------------------------------------------------------------- /src/theme/components/ui/H6.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const H6 = styled('h6')` 4 | ${p => p.theme.styles.h6}; 5 | ` 6 | -------------------------------------------------------------------------------- /src/theme/components/ui/List.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const List = styled('ul')` 4 | ${p => p.theme.styles.list}; 5 | ` 6 | -------------------------------------------------------------------------------- /src/theme/config.ts: -------------------------------------------------------------------------------- 1 | import * as colors from './styles/colors' 2 | import { styles } from './styles' 3 | 4 | export const config = { 5 | colors, 6 | styles, 7 | } 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true -------------------------------------------------------------------------------- /src/theme/components/ui/Container.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const Container = styled('div')` 4 | max-width: 1064px; 5 | width: 100%; 6 | margin: 0 auto; 7 | ` 8 | -------------------------------------------------------------------------------- /docs/plugins/index.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | name: Plugins 3 | route: /plugins 4 | order: 2 5 | noflex: true 6 | --- 7 | 8 | import { Cards } from './components/Cards.tsx' 9 | 10 | # Plugins 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/themes/index.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | name: Themes 3 | route: /themes 4 | order: 2 5 | noflex: true 6 | --- 7 | 8 | import { Cards } from './components/Cards.tsx' 9 | 10 | # Themes 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/theme/components/ui/Hr.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const Hr = styled('hr')` 4 | border: none; 5 | border-top: 2px dashed ${p => p.theme.colors.gray}; 6 | margin: 55px 0 50px 0; 7 | height: 1px; 8 | ` 9 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "requirePragma": false, 3 | "printWidth": 80, 4 | "tabWidth": 2, 5 | "useTabs": false, 6 | "semi": false, 7 | "singleQuote": true, 8 | "trailingComma": "es5", 9 | "bracketSpacing": true, 10 | "jsxBracketSameLine": false 11 | } 12 | -------------------------------------------------------------------------------- /src/theme/components/ui/Box.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const Box = styled('div')` 4 | display: flex; 5 | flex-direction: column; 6 | background: white; 7 | border: 1px solid ${p => p.theme.colors.gray}; 8 | border-radius: 5px; 9 | ` 10 | -------------------------------------------------------------------------------- /src/theme/components/ui/H3.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const H3 = styled('h3')` 4 | ${p => p.theme.styles.h3}; 5 | 6 | code { 7 | font-size: 22px; 8 | color: ${p => p.theme.colors.grayDark}; 9 | padding: 5px 10px; 10 | } 11 | ` 12 | -------------------------------------------------------------------------------- /src/theme/components/ui/Code.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const Code = styled('code')` 4 | margin: 0 3px; 5 | padding: 3px 5px; 6 | border-radius: 3px; 7 | background: ${p => p.theme.colors.grayExtraLight}; 8 | font-size: 16px; 9 | color: ${p => p.theme.colors.orange}; 10 | ` 11 | -------------------------------------------------------------------------------- /src/theme/components/ui/Logo.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import { SFC } from 'react' 3 | 4 | import logo from '@images/logo.svg' 5 | 6 | export interface LogoProps { 7 | width?: number 8 | height?: number 9 | } 10 | 11 | export const Logo: SFC = props => 12 | -------------------------------------------------------------------------------- /src/theme/components/shared/Main/index.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import { SFC } from 'react' 3 | import styled from 'react-emotion' 4 | 5 | const Wrapper = styled('div')` 6 | display: flex; 7 | flex-direction: column; 8 | height: 100vh; 9 | ` 10 | 11 | export const Main: SFC = ({ children }) => {children} 12 | -------------------------------------------------------------------------------- /src/theme/styles/responsive.ts: -------------------------------------------------------------------------------- 1 | import facepaint from 'facepaint' 2 | 3 | export const breakpoints = { 4 | mobile: 500, 5 | tablet: 920, 6 | desktop: 1120, 7 | } 8 | 9 | export const mq = facepaint([ 10 | `@media(min-width: ${breakpoints.mobile}px)`, 11 | `@media(min-width: ${breakpoints.tablet}px)`, 12 | `@media(min-width: ${breakpoints.desktop}px)`, 13 | ]) 14 | -------------------------------------------------------------------------------- /src/theme/components/ui/H1.tsx: -------------------------------------------------------------------------------- 1 | import styled from 'react-emotion' 2 | 3 | export const H1 = styled('h1')` 4 | position: relative; 5 | display: table; 6 | ${p => p.theme.styles.h1}; 7 | 8 | &:before { 9 | position: absolute; 10 | content: ''; 11 | bottom: 5%; 12 | left: 0; 13 | width: 30%; 14 | height: 3px; 15 | background: ${p => p.theme.colors.primary}; 16 | } 17 | ` 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # docz-website 2 | 3 | Docz theme build for [docz site](http://docz.site)! 4 | 5 | ## Installation and usage 6 | 7 | Just install the dependencies, then run docz devserver to make changes! 8 | 9 | ```bash 10 | yarn install 11 | yarn dev 12 | ``` 13 | 14 | The website will be available at [http://localhost:3000](http://localhost:3000). 15 | 16 | After you make your changes, please send me a pull request! 17 | 18 | 🤓 19 | -------------------------------------------------------------------------------- /docs/home/index.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | name: Home 3 | route: / 4 | order: -1 5 | fullpage: true 6 | --- 7 | 8 | import { Hero } from './components/Hero.tsx' 9 | import { Features } from './components/Features.tsx' 10 | import { Sections } from './components/Sections.tsx' 11 | import { HowTo } from './components/HowTo.tsx' 12 | import { Footer } from './components/Footer.tsx' 13 | 14 | 15 | 16 | 17 | 18 |