Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Experiment with Docz #254

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
174a019
Experiment with Docz
joshwcomeau Sep 17, 2018
d347a29
Udpate scripts
joshwcomeau Sep 17, 2018
2e885af
Convert more stories to docz
joshwcomeau Sep 26, 2018
f7add04
Add Logo story, remove unused things
joshwcomeau Sep 26, 2018
a00a5a5
More Docz work
joshwcomeau Sep 27, 2018
1050c73
Add a Netlify config file
j-f1 Oct 1, 2018
ef1e3a8
Update netlify.toml
j-f1 Oct 1, 2018
0aee4a4
Add SPA support
j-f1 Oct 2, 2018
c3433e6
'single quotes'
j-f1 Oct 2, 2018
9e2caae
update to docz v1 beta
superhawk610 Mar 27, 2019
9d3c2e3
Update to docz 1.1.0
melanieseltzer May 4, 2019
2120c24
Merge branch 'master' into docz
melanieseltzer May 4, 2019
5f968b5
Fix stuff from merge
melanieseltzer May 4, 2019
1d3b19a
Fix the colors section, split into semantic/raw/gradient
melanieseltzer May 4, 2019
3ec7580
Address PR comments
melanieseltzer May 4, 2019
fbb9c16
Update netlify.toml
AWolf81 May 8, 2019
2fc65a6
Convert lingering storybook components, create docz specific componen…
melanieseltzer May 9, 2019
655ad78
Cleanup
melanieseltzer May 9, 2019
511a18b
Add index route content to start off
melanieseltzer May 9, 2019
7385fe8
Flesh out index page and add logo
melanieseltzer May 9, 2019
00d7944
Center logo and add more dev info
melanieseltzer May 9, 2019
d8f8919
Pin versions & Update flow-bin version
AWolf81 May 9, 2019
e8f51e7
Remove empty include section - try to fix flow
AWolf81 May 9, 2019
4276c31
Add flow check
AWolf81 May 9, 2019
98ba8dc
Set server to max 1 worker
AWolf81 May 9, 2019
7fdaedc
Max 4 workers should also work & is faster - fix flow error
AWolf81 May 9, 2019
fd0d19c
assert that accumulator will never be undefined
superhawk610 May 9, 2019
846b896
Change selected icon for ProjectIconSelection
melanieseltzer May 11, 2019
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
3 changes: 3 additions & 0 deletions doczrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export default {
p, a, h1, h2, h3, h4, table {
line-height: 1.6;
}
.bXQPyO, .iCcihC {
Copy link
Collaborator

@melanieseltzer melanieseltzer May 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AWolf81 I'm not sure if it's too fragile to target SC classes, but I'm not sure if Docz has a setting for overriding logo styles 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think that's a bit fragile.

Maybe we can create a custom Page component and a Sidbar component to change the styling. Not sure how to do this but the following migration guide looks interesting.

But I think we can add a comment to that style and improve this later.

align-items: center;
}
`,
},
},
Expand Down
38 changes: 36 additions & 2 deletions src/style-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,40 @@ This documentation will help new developers see how Guppy components can be used

Happy contributing!

## Usage
## Development

In development, run `yarn docz:dev` to start the Docz development server.
Run `yarn docz:dev` to start the Docz development server.

Example .mdx structure:

```
---
name: ComponentName
menu: Reusable Components
---

import { Playground, Props } from 'docz';
import ComponentName from './ComponentName';

# ComponentName

<Props of={ComponentName} />

## Basic usage

### Default
<Playground>
<ComponentName />
</Playground>
```

The .mdx file should live right next to its component.

```
- Component
- Component.js
- Component.mdx
- index.js
```

Please see [getting started](https://www.docz.site/docs/getting-started) for more info!