vtex / andromedocs Goto Github PK
View Code? Open in Web Editor NEWandromedocs provides simple yet flexible tools for documenting Design Systems.
License: MIT License
andromedocs provides simple yet flexible tools for documenting Design Systems.
License: MIT License
Is your feature request related to a problem? Please describe.
There needs to be a footer on the documentation theme
Describe the solution you'd like
Add a footer to the theme and show it on the pages created with MDX
Something like this
Is your feature request related to a problem? Please describe.
It's necessary to have a Sidebar to be able to navigate in the documentation of the ttheme
Describe the solution you'd like
Add a Sidebar to browse the pages created in mdx
Is your feature request related to a problem? Please describe.
With the Gatsby theme created, I want to use it
Describe the solution you'd like
add andromedocs-theme as a plugin in /Docs and be able to render the mdx files created there
The Guidelines component describes how a component is expected to be used (Dos) or not (Don'ts).
import { Guidelines } from '@vtex/andromedocs'
const BasicExample = () => (
<Guidelines>
<Guidelines.Dos icon={<IconDo />} title="Dos">
<li>Do this!</li>
<li>Do that!</li>
</Guidelines.Dos>
<Guidelines.Donts icon={<IconDont />} title="Dont's">
<li>NEVER do this!</li>
<li>NEVER do that!</li>
</Guidelines.Donts>
</Guidelines>
)
Name | Description | Type | Default value | Required? |
---|---|---|---|---|
title | title of the section | String | 'Dos' |
NO |
icon | icon of the section | ReactNode | ✔️ | NO |
Name | Description | Type | Default value | Required? |
---|---|---|---|---|
title | title of the section | String | 'Don'ts' |
NO |
icon | icon of the section | ReactNode | ❌ | NO |
Illustrate how a component can be used.
Display ways the component should be used in a code context when it's implemented.
Provide a table describing the props supported by the component.
If the component has composites, you should document the props for each one of them.
Example:
Name | Description | Type | Default value | Required? |
---|---|---|---|---|
title | title of the component | String | - | YES |
... | ... | ... | ... | ... |
Is your feature request related to a problem? Please describe.
The andromedocs will have some components to help document their design systems. So we need a package that contains these components.
Describe the solution you'd like
...
Describe alternatives you've considered
Describe the solution you'd like
Setup configuration to release app to npm and update changelog.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
There needs to be a header on the documentation theme
Describe the solution you'd like
Add the header to the theme and show it on the pages created with MDX
Something like this
Also include:
A badge that displays the current status of the component. We can use Theme UI's Badge as the base for this component! Figma
<StatusTag variant="stable">Stable</StatusTag>
Name | Description | Type | Default value | Required? |
---|---|---|---|---|
children | content of the component | String | - | YES |
variant | variant of the component | StatusTagVariant |
- | YES |
StatusTagVariant = 'stable' | 'experimental' | 'deprecated'
Is your feature request related to a problem? Please describe.
The andromedocs will be a gatsby theme that the user can install and use.
Describe the solution you'd like
Something like this
Also include:
Allow editing with changes in real-time.
import StatusTag from '...';
const Example = () => (
<LiveCode scope={{ StatusTag }} code={`<StatusTag variant="stable" />`} />
);
We can use react-live to create this component 🥺
Example:
Name | Description | Type | Default value | Required? |
---|---|---|---|---|
scope | Custom globals that the code can use | object | {} | NO |
code | Initial code to be rendered | string | - | YES |
Check the react-live docs for more details!
Is your feature request related to a problem? Please describe.
Our code style quality isn't being ensured when sending commits.
Describe the solution you'd like
We can add a configuration of lint-staged
+ husky
to create Git to help enforce the code style.
Describe alternatives you've considered
yarn add -D husky lint-staged
);"format": "prettier --write \"**/*.{ts,js,json,tsx}\""
); "husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js,tsx,jsx}": [
"eslint --fix",
"prettier --write"
],
"*.json": [
"prettier --write"
]
}
A table with descriptions of each prop accepted by a component.
Display ways the component should be used in a code context when it's implemented.
Provide a table describing the props supported by the component.
If the component has composites, you should document the props for each one of them.
Example:
Name | Description | Type | Default value | Required? |
---|---|---|---|---|
title | title of the component | String | - | YES |
... | ... | ... | ... | ... |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.