diff --git a/website/docs/cli.md b/website/docs/cli.md index c28defb8d81f..549cbf8a3e4c 100644 --- a/website/docs/cli.md +++ b/website/docs/cli.md @@ -3,7 +3,7 @@ id: cli title: CLI --- -Docusaurus provides a set of scripts to help you generate, serve, and deploy your website. +Docusaurus provides a set of scripts to help you generate, serve, and deploy your website. Once your website is generated, your website package will contain the Docusaurus scripts that you may invoke with your package manager: @@ -43,12 +43,12 @@ Builds and serves the static site with [Webpack Dev Server](https://webpack.js.o **options** -|Options|Default|Description| -|-|-|-| -|`--port`|`3000`|Specifies the port of the dev server| -|`--host`|`localhost`|Specify a host to use. E.g., if you want your server to be accessible externally, you can use `--host 0.0.0.0`| -|`--hot-only`|`false`|Enables Hot Module Replacement without page refresh as fallback in case of build failures. More information [here](https://webpack.js.org/configuration/dev-server/#devserverhotonly).| -|`--no-open`|`false`|Do not open automatically the page in the browser.| +| Options | Default | Description | +| --- | --- | --- | +| `--port` | `3000` | Specifies the port of the dev server | +| `--host` | `localhost` | Specify a host to use. E.g., if you want your server to be accessible externally, you can use `--host 0.0.0.0` | +| `--hot-only` | `false` | Enables Hot Module Replacement without page refresh as fallback in case of build failures. More information [here](https://webpack.js.org/configuration/dev-server/#devserverhotonly). | +| `--no-open` | `false` | Do not open automatically the page in the browser. | ### `docusaurus build` @@ -56,13 +56,14 @@ Compiles your site for production. **options** -|Options|Default|Description| -|-|-|-| -|`--bundle-analyzer`||Analyze your bundle with [bundle analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)| - +| Options | Default | Description | +| --- | --- | --- | +| `--bundle-analyzer` | | Analyze your bundle with [bundle analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer) | ### `docusaurus swizzle` +> ⚠️ We would like to discourage swizzling of components until we've minimally reached a Beta stage. The components APIs have been changing rapidly and are likely to keep changing until we reach Beta. Stick with the default appearance for now if possible to save yourself some potential pain in future. + Swizzle any Docusaurus Theme components with your own component with `docusaurus swizzle`. ```shell @@ -79,6 +80,7 @@ Running the above command will copy the relevant theme files to your site folder To unswizzle a component, simply delete the files of the swizzled component. + To learn more about swizzling, check [here](#). ### `docusaurus deploy` diff --git a/website/docs/design-principles.md b/website/docs/design-principles.md index c04a3ed0f2f8..05d13d38b727 100644 --- a/website/docs/design-principles.md +++ b/website/docs/design-principles.md @@ -3,7 +3,7 @@ id: design-principles title: Design Principles --- -_This section is a work in progress._ +> :warning: _This section is a work in progress._ - **Little to learn** - Docusaurus should be easy to learn and use as the API is quite small. Most things will still be achievable by users, even if it takes them more code and more time to write. Not having abstractions is better than having the wrong abstractions, and we don't want users to have to hack around the wrong abstractions. Mandatory talk - [Minimal API Surface Area](https://www.youtube.com/watch?v=4anAwXYqLG8). - **Intuitive** - Users will not feel overwhelmed when looking at the project directory of a Docusaurus project or adding new features. It should look intuitive and easy to build on top of, using approaches they are familiar with. @@ -17,8 +17,6 @@ _This section is a work in progress._ We believe that as developers, knowing how a library works is helpful in allowing us to become better at using it. Hence we're dedicating effort into explaining the architecture and various components of Docusaurus with the hope that users reading it will gain a deeper understanding of the tool and be even more proficient in using it. -_This section is a work in progress._ -