Back to Docz

Docz Styled Components Example

examples/styled-components/README.md

2.4.0799 B
Original Source

Docz Styled Components Example

Using create-docz-app

sh
npx create-docz-app docz-app-styled-docz --example styled-components
# or
yarn create docz-app docz-app-styled-docz --example styled-components

Download manually

sh
curl https://codeload.github.com/doczjs/docz/tar.gz/main | tar -xz --strip=2 docz-main/examples/styled-components
mv styled-components docz-example-styled-docz

Setup

sh
yarn # npm i

Run

sh
yarn dev # npm run dev

Build

sh
yarn build # npm run build

Serve built app

sh
yarn serve # npm run serve

Deploy

sh
yarn deploy

Note that by default docz generates the output site in .docz/public to change that add a dest field to your doczrc.js with the path you want to generate the code in.