diff --git a/.gitignore b/.gitignore index bee1bc30..f0e9bc6d 100644 --- a/.gitignore +++ b/.gitignore @@ -133,5 +133,8 @@ dist .docusaurus .parcel-cache build -docs +./docs/.docusaurus +./docs/.docz +./docs/vscode + diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..0c6c2c27 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,41 @@ +# Website + +This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. + +### Installation + +``` +$ yarn +``` + +### Local Development + +``` +$ yarn start +``` + +This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. + +### Build + +``` +$ yarn build +``` + +This command generates static content into the `build` directory and can be served using any static contents hosting service. + +### Deployment + +Using SSH: + +``` +$ USE_SSH=true yarn deploy +``` + +Not using SSH: + +``` +$ GIT_USER= yarn deploy +``` + +If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. diff --git a/docs/babel.config.js b/docs/babel.config.js new file mode 100644 index 00000000..e00595da --- /dev/null +++ b/docs/babel.config.js @@ -0,0 +1,3 @@ +module.exports = { + presets: [require.resolve('@docusaurus/core/lib/babel/preset')], +}; diff --git a/docs/docs/components/Radio.mdx b/docs/docs/components/Radio.mdx new file mode 100644 index 00000000..1a4b2e10 --- /dev/null +++ b/docs/docs/components/Radio.mdx @@ -0,0 +1,47 @@ +--- +--- + +import PropsTable from '../../src/components/props-table' +import { getPropsTableData} from '../../src/components/helpers' + +# Radio + +```jsx live + +``` + +## Props + + + +## More Example + +```jsx live + +``` + +```jsx live + +``` + diff --git a/docs/docs/components/_category_.json b/docs/docs/components/_category_.json new file mode 100644 index 00000000..492a000b --- /dev/null +++ b/docs/docs/components/_category_.json @@ -0,0 +1,9 @@ +{ + "label": "Components", + "position": 2, + "collapsed": false, + "link": { + "type": "generated-index", + "description": "View all spinner" + } +} diff --git a/docs/docs/components/audio.mdx b/docs/docs/components/audio.mdx new file mode 100644 index 00000000..7a54ec4d --- /dev/null +++ b/docs/docs/components/audio.mdx @@ -0,0 +1,23 @@ +--- +--- +import PropsTable from "../../src/components/props-table" +import { getPropsTableData} from '../../src/components/helpers' + +# Audio + +```jsx live +