You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/configuration/create-config.md
+27-28Lines changed: 27 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -2,31 +2,34 @@
2
2
3
3
## createConfig
4
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].
5
+
You need to import `createConfig` into your styleguidist configuration file (generally `styleguide.config.js`).
6
+
All options are optional, and can be autoconfigured by installing a [layout package][1].
7
7
8
8
### Parameters
9
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 [options.wrapperPath=lib/Wrapper] - 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.styleGuideDirPath`**[string][5]** options.styleGuideDirPath - Location of the styleguide configuration directory within your project (optional, default `styleguide`)
17
-
-`options.extensionFile`**[string][5]** options.extensionFile - Name of the styleguide configuration extension within your project (optional, default `styleguide.ext.json`)
18
-
-`options.setupFile`**[string][5]** options.setupFile - Name of the setup file within your project (optional, default `setup.js`)
19
-
-`options.licensePath`**[string][5]** options.licensePath - Location of the license within your project (optional, default `LICENSE.md`)
20
-
-`options.locale`**[string][5]** options.locale - Locale used for the documentation (optional, default `en`)
21
-
-`options.loader`**[string][5]** options.loader - Loader to be used for the documentation (optional, default `wave`)
22
-
-`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 >'}`)
23
-
-`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`)
-`options.head`**[string][5]** options.head - This will be injected at the end of <head /> tag (optional, default `null`)
10
+
-`config`**[Object][2]** for react-styleguidist user configuration, it will be used to override our default styleguide configuration. (optional, default `{}`)
11
+
-`options`**[Object][2]** for $PACKAGE_NAME features (optional, default `{}`)
12
+
-`options.layout`**[string][3]** options.layout - Name of the layout package (optional, default `null`)
13
+
-`options.layoutPath`**[string][3]** options.layoutPath - Location of the Layout component within the layout package (optional, default `lib/Layout`)
14
+
-`options.wrapperPath`**[string][3]** options.wrapperPath - Location of the Wrapper component within the layout package (optional, default `lib/Wrapper`)
15
+
-`options.styleguideConfigPath`**[string][3]** options.styleguideConfigPath - Location of the styleguide.config.js within the layout package (optional, default `lib/styleguide.config.js`)
16
+
-`options.loadersConfigPath`**[string][3]** options.loadersConfigPath - Location of the loaders within the layout package (optional, default `lib/loaders`)
17
+
-`options.styleGuideDirPath`**[string][3]** options.styleGuideDirPath - Location of the styleguide configuration directory within your project (optional, default `styleguide`)
18
+
-`options.extensionFile`**[string][3]** options.extensionFile - Name of the styleguide configuration extension within your project (optional, default `styleguide.ext.json`)
19
+
-`options.setupFile`**[string][3]** options.setupFile - Name of the setup file within your project (optional, default `setup.js`)
20
+
-`options.licensePath`**[string][3]** options.licensePath - Location of the license within your project (optional, default `LICENSE.md`)
21
+
-`options.locale`**[string][3]** options.locale - Locale used for the documentation (optional, default `en`)
22
+
-`options.loader`**[string][3]** options.loader - Loader to be used for the documentation (optional, default `wave`)
23
+
-`options.loaders`**[Object][2]** 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][4]** 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][3]** options.favicon - favicon name (optional, default `null`)
26
+
-`options.favicons`**[string][3]** options.favicons - Object with favicon name and href value for favicon (optional, default `{}`)
27
+
-`options.head`**[string][3]** options.head - This will be injected at the end of <head /> tag (optional, default `null`)
28
+
-`options.disableAutoConf`**[boolean][4]** option.disableAutoConf - Disable auto configuration of layout package (optional, default `false`)
26
29
27
30
### Examples
28
31
29
-
```js static
32
+
```javascript
30
33
// Choose manually a layout package and expand example by default
Copy file name to clipboardExpand all lines: docs/layout-package/layout-package-create.md
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,3 +67,60 @@ export default makeTheme;
67
67
If you don't know what is a `makeTheme` or a `theme`, you should read [Bootstrap Styled documentation](https://bootstrap-styled.github.com/bootstrap-styled).
68
68
69
69
If you don't know how theme work, please read the [theme](#layout-theme) section of this documentation.
70
+
71
+
Generally, if all you want is updating the theme, you will need to create a `Layout` in your layout package as follow:
0 commit comments