Skip to content

Commit 34e0171

Browse files
author
Dimitri Kopriwa
committed
feat(documentation): new documentation. this package replace @yeutech-lab/rollup-umd-documentation
1 parent 3390139 commit 34e0171

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1766
-237
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ babel.ext.json
1616
/coverage
1717
/src
1818
/docs
19+
/jsdoc.md
1920
/public
2021
/bundle-stats.html
2122
/CODE_OF_CONDUCT.md
File renamed without changes.

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ members of the project's leadership.
6868
## Attribution
6969

7070
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at [http://contributor-covenant.org/version/1/4][version]
71+
available at http://contributor-covenant.org/version/1/4
7272

7373
[homepage]: http://contributor-covenant.org
7474
[version]: http://contributor-covenant.org/version/1/4/

LICENSE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
(c) Copyright 2018 Yeutech Company Limited, all rights reserved.
1+
Copyright 2018 Yeutech Company Limited
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = merge({
66
'src',
77
'styleguide',
88
],
9+
comments: false,
910
presets: [
1011
[
1112
'@babel/preset-env',

declination.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/commands.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,6 @@ Build the `/lib` directory:
2222
$ npm run build:lib
2323
```
2424

25-
Build the `/dist` directory:
26-
27-
```bash
28-
$ npm run build:dist
29-
```
30-
31-
Build the `/dist` directory "uncompressed":
32-
33-
```bash
34-
$ npm run build:dist:dev
35-
```
36-
37-
Watch the `/dist` directory:
38-
39-
```bash
40-
$ npm run build:dist:watch
41-
```
42-
4325
Watch the `/lib` directory:
4426

4527
```bash
@@ -57,3 +39,9 @@ Build documentation in `/public` directory:
5739
```bash
5840
$ npm run styleguide:build
5941
```
42+
43+
Build the jsdom documentation:
44+
45+
```bash
46+
$ npm run jsdom
47+
```

docs/configuration.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/configuration/create-config.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
2+
3+
## createConfig
4+
5+
You need to import `createConfig` into your [react-styleguidist][1] configuration file (generally `styleguide.config.js`).
6+
All options are optional, and can be autoconfigured by installing a [layout package][2].
7+
8+
### Parameters
9+
10+
- `config` **[Object][3]** for react-styleguidist user configuration, it will be used to override our default styleguide configuration. See [https://react-styleguidist.js.org/docs/configuration.html][4] (optional, default `{}`)
11+
- `options` **[Object][3]** for $PACKAGE_NAME features (optional, default `{}`)
12+
- `options.layout` **[string][5]** options.layout - Name of the layout package (optional, default `''`)
13+
- `options.layoutPath` **[string][5]** options.layoutPath - Location of the Layout component within the layout package (optional, default `lib/Layout`)
14+
- `options.wrapperPath` **[string][5]** options.wrapperPath - Location of the Wrapper component within the layout package (optional, default `lib/Wrapper`)
15+
- `options.selectionConfigPath` **[string][5]** options.selectionConfigPath - Location of the styleguide.config.js within the layout package (optional, default `lib/styleguide.config.js`)
16+
- `options.loadersConfigPath` **[string][5]** options.loadersConfigPath - Location of the loaders within the layout package (optional, default `lib/loaders`)
17+
- `options.styleGuideDirPath` **[string][5]** options.styleGuideDirPath - Location of the styleguide configuration directory within your project (optional, default `styleguide`)
18+
- `options.extensionFile` **[string][5]** options.extensionFile - Name of the styleguide configuration extension within your project (optional, default `styleguide.ext.json`)
19+
- `options.setupFile` **[string][5]** options.setupFile - Name of the setup file within your project (optional, default `setup.js`)
20+
- `options.licensePath` **[string][5]** options.licensePath - Location of the license within your project (optional, default `LICENSE.md`)
21+
- `options.locale` **[string][5]** options.locale - Locale used for the documentation (optional, default `en`)
22+
- `options.loader` **[string][5]** options.loader - Loader to be used for the documentation (optional, default `wave`)
23+
- `options.loaders` **[Object][3]** options.loaders - object available for use (if layout package is installed, they will be automatically added during autoconfiguration) (optional, default `{wave:'<!-- content of wave loader >'}`)
24+
- `options.loaderInnerApp` **[boolean][6]** options.loaderInnerApp - If set to false, the loader will be injected in the main html outside of the react application context (optional, default `true`)
25+
- `options.favicon` **[string][5]** options.favicon - Favicon href url (optional, default `null`)
26+
- `options.head` **[string][5]** options.head - This will be injected at the end of <head /> tag (optional, default `null`)
27+
- `options.disableAutoConf` **[boolean][6]** option.disableAutoConf - Disable auto configuration of layout package (optional, default `false`)
28+
29+
### Examples
30+
31+
```js static
32+
// Choose manually a layout package and expand example by default
33+
const { createConfig } = require('$PACKAGE_NAME');
34+
const styleguideConfig = { exampleMode: 'expand' };
35+
const options = { layout: '@bootstrap-styled/documentation' };
36+
const config = createConfig(styleguideConfig, options);
37+
// this is a working and compatible react-styleguidist configuration
38+
module.exports = config;
39+
```
40+
41+
Returns **[Object][3]** react-styleguidist [configuration][4] configuration object
42+
43+
[1]: https://react-styleguidist.js.org
44+
45+
[2]: #layout-package-create
46+
47+
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
48+
49+
[4]: https://react-styleguidist.js.org/docs/configuration.html
50+
51+
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
52+
53+
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean

docs/ecosystem.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This is an incomplete list of awesome things built for $PACKAGE_NAME.
2+
3+
If you have something to share, please add it to the $PACKAGE_NAME repo on GitHub and it will automatically show up here!
4+
5+
## Built for $PACKAGE_NAME
6+
7+
- [@bootstrap-styled/rsg-components](https://bootstrap-styled.github.io/rsg-components/): Reusable react components for creating layouts
8+
- [@rollup-umd/documentation-cli](https://rollup-umd.github.io/documentation-cli/): CLI utils for $PACKAGE_NAME

0 commit comments

Comments
 (0)