Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(react-docgen-typescript-loader): add proof-of-concept Axis doc page #681

Merged
merged 107 commits into from
May 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
917c03a
internal(demo): docs.js => Docs.tsx, add groupings, remove .html links
williaster May 7, 2020
1c99d3b
deps: remove lint-staged, bump react-docgen to ^5.3
williaster May 7, 2020
3f1fe91
docs: update static => /static for nested pages
williaster May 7, 2020
2dc3c2b
types(vx-demo): add VxPackage type
williaster May 8, 2020
9ed9067
docs(vx-axis): remove vx-axis/docs/*.md and vx-demo/static/docs/vx-ax…
williaster May 8, 2020
30ba845
docs(vx-demo): add PackageList component
williaster May 8, 2020
77c89c6
docs(vx-demo): add DocPage component
williaster May 8, 2020
f273506
docs(vx-axis): remove api + props sections from vx-axis readme
williaster May 8, 2020
a1ff069
internal(vx-axis): remove docs script
williaster May 8, 2020
6ebd742
deps(vx-demo): add react-docgen-typescript-loader, markdown-loader, r…
williaster May 8, 2020
12098a1
docs(vx-demo): add react-docgen-typescript-loader to next webpack loader
williaster May 8, 2020
6c47d41
docs(vx-demo): add ApiTable component
williaster May 8, 2020
5bad703
docs(vx-demo): add new docs/Axis
williaster May 8, 2020
c578b4a
docs(vx-demo): use PackageList in pages/Docs
williaster May 8, 2020
e12040d
docs(vx-demo/PackageList): update to static html links for non-axis p…
williaster May 8, 2020
3b1df93
fix(vx-demo): fix webpack config loader concatenation
williaster May 8, 2020
9aba677
docs: update ApiTable styles, clean up docs/Axis
williaster May 12, 2020
365a3a4
deps: update yarn.lock
williaster May 12, 2020
d32a3a4
lint: add docs/.eslintrc
williaster May 12, 2020
c545626
fix(vx-demo/docs/PackageList): fix className type
williaster May 12, 2020
ef99c99
style(vx-demo/DocPage): fix doc nav width, add code styles
williaster May 13, 2020
ed53365
style(vx-demo/PackageList): remove unneeded style
williaster May 13, 2020
8f9082e
docs(PackageList): update emphasize style and improve hierarchy
williaster May 13, 2020
38a4a3a
docs: move more boilerplate into DocPage
williaster May 13, 2020
2b4d040
next: add tsconfig path to react-docgen-typescript-loader, filter non…
williaster May 13, 2020
5c64b70
docs(vx-chord): update to docgen
williaster May 13, 2020
c0a3880
docs(vx-chord): add prop type annotations
williaster May 13, 2020
f122d05
docs(vx-chord): add more prop type annotations
williaster May 13, 2020
f73bc61
docs(vx-annotation): update to docgen
williaster May 12, 2020
1aa2396
docs: remove static/docs/vx-annotation.html
williaster May 13, 2020
dfdde9a
docs(vx-annotation): update Annotation with new DocPage
williaster May 13, 2020
495791a
fix(vx-demo): make DocPage components optional
williaster May 13, 2020
a1ee66c
docs(vx-bounds): update to docgen
williaster May 13, 2020
e423ef0
docs(vx-bounds): update to new DocPage
williaster May 13, 2020
04a42db
docs(vx-brush): update to docgen
williaster May 13, 2020
f1094a3
docs(vx-brush): update to new DocPage
williaster May 13, 2020
08e6018
docs(vx-clip-path): update to docgen
williaster May 13, 2020
f195939
docs(vx-curve): update to docgen
williaster May 13, 2020
2e23ab6
docs(vx-drag): update to docgen
williaster May 13, 2020
d335964
internal(vx-drag): remove docs script
williaster May 13, 2020
638500c
docs(PackageList): add @vx/events
williaster May 13, 2020
34a7734
fix(vx-demo): add event to VxPackage type, abc order
williaster May 13, 2020
a759cd2
docs(vx-event): convert to docgen
williaster May 13, 2020
419e680
docs(vx-geo): convert to docgen
williaster May 13, 2020
cebdf42
docs(vx-glyph): update to codegen
williaster May 13, 2020
7a8e746
docs(vx-glyph): fix component sort order
williaster May 13, 2020
b3323f9
docs(vx-gradient): update to docgen
williaster May 14, 2020
0ed4935
docs(vx-grid): update to docgen
williaster May 14, 2020
9a93dd7
docs(vx-group): update to docgen
williaster May 14, 2020
591ed90
docs(vx-point): update to docgen
williaster May 14, 2020
a96dc8a
docs(vx-heatmap): convert to docgen
williaster May 14, 2020
37be5b5
docs(vx-heatmap/HeatmapRect): fix circle => rect in prop type annotat…
williaster May 14, 2020
3986ce2
docs(vx-hierarchy): convert to docgen
williaster May 14, 2020
e07cff0
docs(vx-scale): update to docgen
williaster May 14, 2020
d9f24da
docs(vx-legend): update to docgen
williaster May 14, 2020
d8ef604
docs(vx-marker): update to docgen
williaster May 14, 2020
4e659a4
docs(DocPage): set max image width/height
williaster May 14, 2020
0585203
docs(vx-network): update to docgen
williaster May 14, 2020
41a15ec
docs(DocPage): fix table styles
williaster May 15, 2020
f6ceea9
docs(vx-mock-data): update to docgen
williaster May 15, 2020
483dd83
docs(vx-mock-data): convert tables to json, add missing datasets
williaster May 15, 2020
800e673
docs(DocPage): make required red to stand out
williaster May 15, 2020
9b06aa0
docs(vx-pattern): convert to docgen
williaster May 15, 2020
5504e0e
docs(vx-responsive): update to docgen
williaster May 15, 2020
88184c8
docs(ApiTable): handle non-components
williaster May 15, 2020
814a2a1
docs(vx-shape): convert to docgen
williaster May 15, 2020
142ab7d
docs(DocPage): handle non-components
williaster May 15, 2020
f91b5ec
docs(vx-stats): convert to docgen
williaster May 15, 2020
f18b364
docs(vx-text) convert to docgen
williaster May 15, 2020
dab48ff
docs(vx-tooltip): convert to docgen
williaster May 15, 2020
03e05eb
docs(vx-threshold): convert to docgen
williaster May 15, 2020
fb4eb3e
docs(vx-threshold): update readme
williaster May 15, 2020
5ab555f
docs(vx-voronoi): convert to docgen
williaster May 15, 2020
27f2f4a
docs(vx-zoom): convert to docgen
williaster May 15, 2020
bc8104d
docs(vx-vx): convert to docgen
williaster May 15, 2020
80cdd5d
fix(ApiTable,DocPage): fix type issues
williaster May 22, 2020
5d0e933
Merge pull request #696 from hshoff/chris--docgen-annotation
williaster May 22, 2020
1fcd39e
Merge pull request #697 from hshoff/chris--docgen-bounds
williaster May 22, 2020
32c820c
Merge pull request #698 from hshoff/chris--docgen-brush
williaster May 22, 2020
87aa318
Merge pull request #699 from hshoff/chris--docgen-chord
williaster May 22, 2020
838f710
Merge pull request #700 from hshoff/chris--docgen-clip-path
williaster May 22, 2020
d21406f
Merge pull request #701 from hshoff/chris--docgen-curve
williaster May 22, 2020
06ae9cc
Merge pull request #702 from hshoff/chris--docgen-drag
williaster May 22, 2020
d5ca33a
Merge pull request #703 from hshoff/chris--docgen-event
williaster May 22, 2020
203fc2e
Merge pull request #704 from hshoff/chris--docgen-geo
williaster May 22, 2020
7d61041
Merge pull request #705 from hshoff/chris--docgen-glyph
williaster May 22, 2020
1a4cb41
Merge pull request #706 from hshoff/chris--docgen-gradient
williaster May 22, 2020
2f83a98
Merge pull request #707 from hshoff/chris--docgen-grid
williaster May 22, 2020
ae075cd
Merge pull request #708 from hshoff/chris--docgen-group-point
williaster May 22, 2020
15706ea
Merge pull request #709 from hshoff/chris--docgen-heatmap
williaster May 22, 2020
d754f97
Merge pull request #710 from hshoff/chris--docgen-hierarchy-scale
williaster May 22, 2020
70e1155
Merge pull request #711 from hshoff/chris--docgen-legend
williaster May 22, 2020
428380d
Merge pull request #712 from hshoff/chris--docgen-marker-network
williaster May 22, 2020
e74118e
Merge pull request #713 from hshoff/chris--docgen-mockdata
williaster May 22, 2020
d5f8c66
Merge pull request #714 from hshoff/chris--docgen-pattern-responsive
williaster May 22, 2020
db12dea
Merge pull request #715 from hshoff/chris--docgen-shape
williaster May 22, 2020
14ba400
Merge pull request #717 from hshoff/chris--docgen-text-tooltip
williaster May 22, 2020
8319cb6
Merge pull request #718 from hshoff/chris--docgen-threshold
williaster May 22, 2020
8201846
Merge pull request #719 from hshoff/chris--docgen-voronoi
williaster May 22, 2020
450d1be
Merge pull request #720 from hshoff/chris--docgen-vx-zoom
williaster May 22, 2020
534c27b
Merge branch 'chris--fix-docgen' into chris--docgen-stats
williaster May 22, 2020
27f3432
Merge pull request #716 from hshoff/chris--docgen-stats
williaster May 22, 2020
051a519
fix(vx-demo): fix Glyph and Gradient doc types
williaster May 22, 2020
d83bb2d
fix(vx-vx): update test to .ts
williaster May 22, 2020
4d1f1ce
deps: update yarn.lock
williaster May 23, 2020
f2f8733
fix(vx-heatmap): part 1 README => _Readme
williaster May 23, 2020
e8efc19
fix(vx-heatmap): part 2 _Readme => Readme
williaster May 23, 2020
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
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"lint": "nimbus eslint",
"lint:fix": "yarn run lint --fix",
"prettier": "nimbus prettier",
"precommit": "lint-staged",
"setup": "yarn run build",
"test": "yarn run jest",
"type:dts": "nimbus typescript --build --reference-workspaces",
Expand All @@ -38,12 +37,6 @@
"prepare-release": "git checkout master && git pull --rebase origin master && yarn run docs && lerna updated",
"release": "yarn run prepare-release && lerna publish --exact"
},
"lint-staged": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was becoming annoying/very slow 🐌

"*.{js,jsx,ts,tsx}": [
"yarn run format",
"git add"
]
},
"devDependencies": {
"@airbnb/config-babel": "^2.1.3",
"@airbnb/config-eslint": "^2.1.3",
Expand All @@ -62,11 +55,10 @@
"fs-jetpack": "^1.3.0",
"husky": "^3.0.0",
"lerna": "^3.15.0",
"lint-staged": "^9.2.5",
"marked": "^0.7.0",
"raf": "^3.4.0",
"react": "^15.0.0-0 || ^16.0.0-0",
"react-docgen": "^2.21.0",
"react-docgen": "^5.3.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we can remove this once all packages are converted

"react-dom": "^15.0.0-0 || ^16.0.0-0",
"react-test-renderer": "^16.8.6",
"regenerator-runtime": "^0.10.5"
Expand Down
80 changes: 3 additions & 77 deletions packages/vx-annotation/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,86 +8,12 @@

**Status**

We recommend using [react-annotation](http://react-annotation.susielu.com/) by @susielu. This package is a work in progress. In the future we may make some helpers built on top of react-annotation.

We recommend using [react-annotation](http://react-annotation.susielu.com/) by @susielu. This
package is a work in progress. In the future we may make some helpers built on top of
react-annotation.

## Installation

```
npm install --save @vx/annotation
```


## Components



- [LinePathAnnotation](#linepathannotation-)

## API



<h3 id="linepathannotation-">&lt;LinePathAnnotation /&gt;</h3>



<a id="#LinePathAnnotation__className" name="LinePathAnnotation__className" href="#LinePathAnnotation__className">#</a> *LinePathAnnotation*.**className**&lt;string&gt;

Add a class name to the line path.

<a id="#LinePathAnnotation__label" name="LinePathAnnotation__label" href="#LinePathAnnotation__label">#</a> *LinePathAnnotation*.**label**&lt;string&gt;

The text for your label.

<a id="#LinePathAnnotation__labelAnchor" name="LinePathAnnotation__labelAnchor" href="#LinePathAnnotation__labelAnchor">#</a> *LinePathAnnotation*.**labelAnchor**&lt;enum('start'|'middle'|'end')&gt;

The label's textAnchor. <table><tr><td><strong>Default</strong></td><td>'middle'</td></td></table>

<a id="#LinePathAnnotation__labelDx" name="LinePathAnnotation__labelDx" href="#LinePathAnnotation__labelDx">#</a> *LinePathAnnotation*.**labelDx**&lt;number&gt;

The x-coordinate shift to the label. <table><tr><td><strong>Default</strong></td><td>0</td></td></table>

<a id="#LinePathAnnotation__labelDy" name="LinePathAnnotation__labelDy" href="#LinePathAnnotation__labelDy">#</a> *LinePathAnnotation*.**labelDy**&lt;number&gt;

The y-coordinate shift to the label <table><tr><td><strong>Default</strong></td><td>0</td></td></table>

<a id="#LinePathAnnotation__labelFill" name="LinePathAnnotation__labelFill" href="#LinePathAnnotation__labelFill">#</a> *LinePathAnnotation*.**labelFill**&lt;string&gt;

The color of label. Defaults to *props*.**stroke**.

<a id="#LinePathAnnotation__labelFontSize" name="LinePathAnnotation__labelFontSize" href="#LinePathAnnotation__labelFontSize">#</a> *LinePathAnnotation*.**labelFontSize**&lt;number&gt;

The font size of the label text. <table><tr><td><strong>Default</strong></td><td>10</td></td></table>

<a id="#LinePathAnnotation__labelPaintOrder" name="LinePathAnnotation__labelPaintOrder" href="#LinePathAnnotation__labelPaintOrder">#</a> *LinePathAnnotation*.**labelPaintOrder**&lt;string&gt;

The label's SVG [paint-order](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/paint-order). <table><tr><td><strong>Default</strong></td><td>'stroke'</td></td></table>

<a id="#LinePathAnnotation__labelStroke" name="LinePathAnnotation__labelStroke" href="#LinePathAnnotation__labelStroke">#</a> *LinePathAnnotation*.**labelStroke**&lt;string&gt;

The color of the label. <table><tr><td><strong>Default</strong></td><td>'white'</td></td></table>

<a id="#LinePathAnnotation__labelStrokeWidth" name="LinePathAnnotation__labelStrokeWidth" href="#LinePathAnnotation__labelStrokeWidth">#</a> *LinePathAnnotation*.**labelStrokeWidth**&lt;number&gt;

The stroke width of the label text. <table><tr><td><strong>Default</strong></td><td>3</td></td></table>

<a id="#LinePathAnnotation__left" name="LinePathAnnotation__left" href="#LinePathAnnotation__left">#</a> *LinePathAnnotation*.**left**&lt;number&gt;

A left pixel offset applied to the entire bar group. <table><tr><td><strong>Default</strong></td><td>0</td></td></table>

<a id="#LinePathAnnotation__points" name="LinePathAnnotation__points" href="#LinePathAnnotation__points">#</a> *LinePathAnnotation*.**points**&lt;array&gt;

An array of points describing the line path. <table><tr><td><strong>Default</strong></td><td>[]</td></td></table>

<a id="#LinePathAnnotation__stroke" name="LinePathAnnotation__stroke" href="#LinePathAnnotation__stroke">#</a> *LinePathAnnotation*.**stroke**&lt;string&gt;

The color of the line. <table><tr><td><strong>Default</strong></td><td>'black'</td></td></table>

<a id="#LinePathAnnotation__strokeWidth" name="LinePathAnnotation__strokeWidth" href="#LinePathAnnotation__strokeWidth">#</a> *LinePathAnnotation*.**strokeWidth**&lt;number&gt;

The pixel width of the line. <table><tr><td><strong>Default</strong></td><td>1</td></td></table>

<a id="#LinePathAnnotation__top" name="LinePathAnnotation__top" href="#LinePathAnnotation__top">#</a> *LinePathAnnotation*.**top**&lt;number&gt;

A top pixel offset applied to the entire bar group. <table><tr><td><strong>Default</strong></td><td>0</td></td></table>
63 changes: 0 additions & 63 deletions packages/vx-annotation/docs/api.md

This file was deleted.

11 changes: 0 additions & 11 deletions packages/vx-annotation/docs/description.md

This file was deleted.

93 changes: 0 additions & 93 deletions packages/vx-annotation/docs/docs.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/vx-annotation/docs/install.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/vx-annotation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"lib",
"esm"
],
"scripts": {
"docs": "cd ./docs && ../../../node_modules/.bin/react-docgen ../src/annotations/ | ../../../scripts/buildDocs.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hshoff/vx.git"
Expand Down
Loading