Skip to content

Commit

Permalink
feat: added ui/pages packages with pre-built page templates
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 23, 2020
1 parent 2504568 commit 71b3b80
Show file tree
Hide file tree
Showing 32 changed files with 309 additions and 35,725 deletions.
56 changes: 36 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
- [@component-controls/webpack-configs](#component-controlswebpack-configs)
- [@component-controls/store](#component-controlsstore)
- [UI packages](#ui-packages)
- [@component-controls/pages](#component-controlspages)
- [@component-controls/blocks](#component-controlsblocks)
- [@component-controls/components](#component-controlscomponents)
- [@component-controls/editors](#component-controlseditors)
- [@component-controls/blocks](#component-controlsblocks)
- [Props info](#props-info)
- [@component-controls/react-docgen-info](#component-controlsreact-docgen-info)
- [@component-controls/react-docgen-typescript-info](#component-controlsreact-docgen-typescript-info)
Expand Down Expand Up @@ -196,6 +197,40 @@ Utility class to abstract loading the stories store from the webpack loader and

The UI libraries are built around [theme-ui](https://theme-ui.com) and are designed to abstract the user interface level of components.

<package-section file="./ui/pages/README.md" section="overview" />

<!-- START-PACKAGE-SECTION -->

## [@component-controls/pages](https://github.com/ccontrols/component-controls/blob/master/ui/pages)

Component controls pre-built documentation page templates.

A collection of pre-built documentation page templates.

- The only requirement is that the pages are wrapped in a `<BlockContext />` react context.
- The templates can be used in any environment (storybook, standalone, gatsby)

<!-- END-PACKAGE-SECTION -->

<package-section file="./ui/blocks/README.md" section="overview" />

<!-- START-PACKAGE-SECTION -->

## [@component-controls/blocks](https://github.com/ccontrols/component-controls/blob/master/ui/blocks)

Component controls core documentation blocks.

Some of the guiding design goals for this library:

- Most components should have a 'plain' and a 'block' version, where the block version adds a collapsible Box with a title.
- There are two main categories of components:
- that display story data (i.e. story source, story render)
- that display component(s) data (i.e. prop tables, component sources)
- Components accept a list of custom ActionItems to be extended.
- Compnents that deal with source code (story or component source) display actions to browse their respective repositories.

<!-- END-PACKAGE-SECTION -->

<package-section file="./ui/components/README.md" section="overview" />

<!-- START-PACKAGE-SECTION -->
Expand Down Expand Up @@ -239,25 +274,6 @@ Some of the guiding design goals for this library:

<!-- END-PACKAGE-SECTION -->

<package-section file="./ui/blocks/README.md" section="overview" />

<!-- START-PACKAGE-SECTION -->

## [@component-controls/blocks](https://github.com/ccontrols/component-controls/blob/master/ui/blocks)

Component controls core documentation blocks.

Some of the guiding design goals for this library:

- Most components should have a 'plain' and a 'block' version, where the block version adds a collapsible Box with a title.
- There are two main categories of components:
- that display story data (i.e. story source, story render)
- that display component(s) data (i.e. prop tables, component sources)
- Components accept a list of custom ActionItems to be extended.
- Compnents that deal with source code (story or component source) display actions to browse their respective repositories.

<!-- END-PACKAGE-SECTION -->

# Props info

The props-info packages are designed to solidify prop tables extraction for components. Every props-info package must export a props extractor factory that is initialized with the options for the specific library and returns a function that can parse a file and extract prop tables.
Expand Down
3 changes: 1 addition & 2 deletions examples/storybook-6-no-docs/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ module.exports = {
addons: [{
name: '@component-controls/storybook',
options: {
webpack: [
'instrument','react-docgen-typescript'],
webpack: ['instrument','react-docgen-typescript'],
}
}],
stories: [
Expand Down
Binary file removed examples/storybook-6/docs/favicon.ico
Binary file not shown.
19 changes: 0 additions & 19 deletions examples/storybook-6/docs/index.html

This file was deleted.

3 changes: 0 additions & 3 deletions examples/storybook-6/docs/main.960b291f16add2c8672b.bundle.js

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 71b3b80

Please sign in to comment.