-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OUTLINE-165: Creating ready to develop placeholders for upcoming components #414
Conversation
|
✅ Deploy Preview for outlinejs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
… in component directories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following Is what updates the system to look for .mdx
file inside any Outline component in the packages directory.
Due to the nature of some of the components, we should adopt a policy to utilize a docs
folder PER component to make the glob for looking for the MDX files much easier.
Description
outline-core-image
.outline-core-card
.outline-core-icon
.outline-core-container
.outline-core-alert
.outline-core-form
.outline-core-text
(styled text).outline-core-accordion
.outline-core-youtube
.outline-core-breadcrumb
.outline-core-list
outline-core-modal
.Patterns
outline-core-*.ts
Component file:Basic folder structure:
component-name
- Top level component directorydocs
- Folder for documentationcomponent-name.mdx
- MDX formatted documentationsrc
config.ts
- Shared configuration for this and other componentscomponent-name.ts
- The component file, declaring the Class and component itselfcomponent-name.css
- The CSS styling for the componentindex.ts
- The default exported file, with any component exports, variable, exports, etc.package.json
- The required NPM configuration, scripts and dependenciestsconfig.build.json
- TypeScript configuration that extends the base one