130 Commits

Author SHA1 Message Date
patrick.lafrance
eaa7d84b93 Only render anchor when in docs viewmode 2020-01-05 18:12:29 -05:00
patrick.lafrance
49b281f382 Meta component render an anchor 2020-01-05 17:50:11 -05:00
Michael Shilman
0efb742947 Addon-docs: Don't show stories heading when there are no stories 2019-12-31 02:22:12 +08:00
Michael Shilman
5934ee9a0a Fix ID generation heuristic for dynamic titles 2019-12-27 23:29:22 +08:00
Michael Shilman
544444f410 MDX: Make story name => ID generation handle dynamic titles 2019-12-26 11:45:18 +08:00
Michael Shilman
bd5e61303b DocsPage: Fix title with new path separator scheme 2019-12-20 16:05:51 +08:00
Michael Shilman
731477723b Addon-docs: Update MDX compiler to fix knobs 2019-12-10 23:34:47 +08:00
Michael Shilman
b436339376 Refactor router utils into CSF library 2019-12-09 12:16:01 +08:00
Michael Shilman
0152625d9e
Addon-docs: MDX Octicon anchors should not be tabbable (#9063)
Addon-docs: MDX Octicon anchors should not be tabbable
2019-12-05 14:58:43 +08:00
patrick.lafrance
87cde834de Added a tabindex of -1 to the mdx octicon anchors 2019-12-04 15:21:24 -05:00
atanasster
2f308613a4 enhanced Heading and Subheading with HeaderMax 2019-12-04 12:37:58 -05:00
patrick.lafrance
421f61e6d2 Code review corrections 2019-12-03 22:11:10 -05:00
patrick.lafrance
9d37fbacbf When an octicon link is clicked, scroll to the matching header 2019-12-03 21:33:20 -05:00
patrick.lafrance
4a986bc18a cleanup 2019-12-03 17:11:36 -05:00
patrick.lafrance
134cca2848 In page linking now updates url with the hash 2019-12-03 16:59:27 -05:00
patrick.lafrance
f0d1ee8a4b Fix TS errors 2019-12-03 16:41:41 -05:00
patrick.lafrance
c685fbb259 Fix scrolling on full page refresh 2019-12-03 16:33:43 -05:00
patrick.lafrance
cec7bc3a4c Added the Octolink when an header is hovered 2019-12-03 15:51:19 -05:00
patrick.lafrance
3b164dc84e Added a link to generate an anchor for an header 2019-12-03 00:12:50 -05:00
patrick.lafrance
c33cb80a85 Now handled in page anchor and link to other sb stories 2019-12-02 22:37:25 -05:00
patrick.lafrance
f26a37654a Updates 2019-12-02 18:07:28 -05:00
patrick.lafrance
38a034d683 Fix 2019-11-29 12:47:57 -05:00
patrick.lafrance
2451ddcf15 Updated Anchor component to use the html components with the escape hatches 2019-11-29 12:47:02 -05:00
patrick.lafrance
6c3ddcf89e Added anchor support for docs page 2019-11-29 12:35:30 -05:00
Norbert de Langen
8e8a4683af
Addon-docs: Added dark theme option to source component (#8732)
Addon-docs: Added dark theme option to source component
2019-11-27 13:48:56 +01:00
Michael Shilman
cab04a046c MDX: Don't modify the container so user can override it 2019-11-27 02:38:21 +08:00
Michael Shilman
778fdc33b5 Clarify extraction logic 2019-11-21 12:29:05 +08:00
Michael Shilman
23d04c7e6b Addon-docs: Fix props table for sectinos props 2019-11-21 12:16:32 +08:00
patrick.lafrance
16a51504bc Fix some issue for flow and rework the docgen utils 2019-11-19 22:57:11 -05:00
Michael Shilman
4ab9622dbb Fix merge conflicts 2019-11-19 16:36:56 +08:00
Michael Shilman
fee187460e
Merge branch 'next' into support-props-exclude 2019-11-19 15:47:54 +08:00
atanasster
3e3fd435f1 Merge branch 'docspage-blocks-refactor' of https://github.com/atanasster/storybook into docspage-blocks-refactor 2019-11-18 22:23:14 -08:00
atanasster
0b6e28ed50 Remove PrimaryProps and components/DocsPage 2019-11-18 20:30:54 -08:00
Michael Shilman
3fe71ad6fc DocsPage: components => subcomponents 2019-11-19 12:23:41 +08:00
atanasster
72d81e0524 export DocsPage 2019-11-18 19:46:32 -08:00
atanasster
0e9629b106 consolidate shared.ts with types.ts 2019-11-18 19:28:58 -08:00
atanasster
6dfcb4cf6b added components props to parameters and <Props /> 2019-11-18 15:11:36 -08:00
patrick.lafrance
17a8a180a9 Props component now support an exclude prop 2019-11-18 13:31:15 -05:00
atanasster
3a8c16725f fix DescriptionSlot 2019-11-17 15:30:49 -08:00
atanasster
75be1c55fa Added descriptionSlot and slot to Description 2019-11-17 14:55:00 -08:00
atanasster
6f8509ec29 extract duplicated getDocsStories into utils.ts 2019-11-17 14:32:44 -08:00
atanasster
d22d3f6c1c refactor DocsPage blocks 2019-11-17 11:03:26 -08:00
Michael Shilman
67b83f492d Merge branch 'next' into docs/refactor-prop-def 2019-11-14 16:48:26 +08:00
Michael Shilman
9e6d32e7bb Merge branch 'next' into docs/refactor-prop-def 2019-11-14 16:23:44 +08:00
Michael Shilman
45a9d462dc Merge branch 'next' into 8793-deprecate-hierarchy-separators 2019-11-14 15:23:09 +08:00
patrick.lafrance
0016449141 Renamed lib2 to lib 2019-11-13 11:19:32 -05:00
Michael Shilman
3e5ab46e02 DocsPage: Add tests for showRoots behavior 2019-11-13 18:49:07 +08:00
patrick.lafrance
1db7e4321d Merge thing to the new utils 2019-11-12 20:45:33 -05:00
Tom Coleman
e9e4ac195e Added migration notes and updated docs 2019-11-12 13:02:34 +11:00
Michael Shilman
3de9ab04a7 Remove displayName parameter 2019-11-11 22:02:32 +08:00