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
Allows components to be grouped into sections with a title and optional overview content. Sections can also be content only, with no associated components (for example, a textual introduction). A section definition consists of:
name - the title of the section.
content (optional) - location of a Markdown file containing the overview content.
components (optional) - a string or function providing a list of components. The same rules apply as for the root components option.
Configuring a guide with a textual introduction section, then a UI section would look like:
The 2 path options (content and components) handle path inconsistently. With components (as well as other config options, e.g. styleguideDir) the path is relative to the config file. The content path is relative to the webpack context (project root in this case). Often it means the same, but not when the config is not in the project root.
From
README
:The 2 path options (
content
andcomponents
) handle path inconsistently. Withcomponents
(as well as other config options, e.g.styleguideDir
) the path is relative to the config file. Thecontent
path is relative to the webpack context (project root in this case). Often it means the same, but not when the config is not in the project root.Related source line: https://github.com/sapegin/react-styleguidist/blob/a12accff15e8f42fc779f8e9faa277fbea4bc0d3/loaders/styleguide.loader.js#L62
CC @paulj
The text was updated successfully, but these errors were encountered: