From 4927f764e5251e6d35bbc8796a8e8221a3ac72ee Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Wed, 4 Dec 2019 00:55:52 -0800 Subject: [PATCH] misc(v2): nitpicky formatting --- .../templates/classic/README.md | 4 +-- .../templates/classic/gitignore | 10 +++---- website/docs/contributing.md | 10 +++---- website/docs/creating-pages.md | 2 +- website/docs/lifecycle-apis.md | 20 +++++++------- website/docs/search.md | 2 +- website/docs/styling-layout.md | 2 +- website/docs/theme-classic.md | 27 ++++++++++++++----- 8 files changed, 45 insertions(+), 32 deletions(-) diff --git a/packages/docusaurus-init/templates/classic/README.md b/packages/docusaurus-init/templates/classic/README.md index 71505291a8..ee0ccc9d18 100644 --- a/packages/docusaurus-init/templates/classic/README.md +++ b/packages/docusaurus-init/templates/classic/README.md @@ -1,6 +1,6 @@ # Website -This website is built using Docusaurus 2, a modern static website generator. +This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator. ### Installation @@ -27,7 +27,7 @@ This command generates static content into the `build` directory and can be serv ### Deployment ``` -$ GIT_USER= USE_SSH=1 yarn deploy +$ GIT_USER= USE_SSH=true 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/packages/docusaurus-init/templates/classic/gitignore b/packages/docusaurus-init/templates/classic/gitignore index 1b34df5127..b2d6de3062 100644 --- a/packages/docusaurus-init/templates/classic/gitignore +++ b/packages/docusaurus-init/templates/classic/gitignore @@ -1,14 +1,14 @@ -# dependencies +# Dependencies /node_modules -# production +# Production /build -# generated files +# Generated files .docusaurus .cache-loader -# misc +# Misc .DS_Store .env.local .env.development.local @@ -17,4 +17,4 @@ npm-debug.log* yarn-debug.log* -yarn-error.log* \ No newline at end of file +yarn-error.log* diff --git a/website/docs/contributing.md b/website/docs/contributing.md index 978a2015d4..4099d63be7 100644 --- a/website/docs/contributing.md +++ b/website/docs/contributing.md @@ -137,11 +137,11 @@ Small pull requests are much easier to review and more likely to get merged. Mak Please make sure the following is done when submitting a pull request: 1. Fork [the repository](https://github.com/facebook/docusaurus) and create your branch from `master`. -2. Add the copyright notice to the top of any code new files you've added. -3. Describe your [test plan](#test-plan) in your pull request description. Make sure to [test your changes](https://github.com/facebook/docusaurus/blob/master/admin/testing-changes-on-Docusaurus-itself.md)! -4. Make sure your code lints (`yarn prettier && yarn lint`). -5. Make sure your Jest tests pass (`yarn test`). -6. If you haven't already, [sign the CLA](https://code.facebook.com/cla). +1. Add the copyright notice to the top of any code new files you've added. +1. Describe your [test plan](#test-plan) in your pull request description. Make sure to [test your changes](https://github.com/facebook/docusaurus/blob/master/admin/testing-changes-on-Docusaurus-itself.md)! +1. Make sure your code lints (`yarn prettier && yarn lint`). +1. Make sure your Jest tests pass (`yarn test`). +1. If you haven't already, [sign the CLA](https://code.facebook.com/cla). All pull requests should be opened against the `master` branch. diff --git a/website/docs/creating-pages.md b/website/docs/creating-pages.md index 20f16f46b7..0afcfdb9c5 100644 --- a/website/docs/creating-pages.md +++ b/website/docs/creating-pages.md @@ -71,7 +71,7 @@ my-website ## Using React -React is used as the UI library to create pages. Every page component should export a React component and you can leverage on the expressibility of React to build rich and interactive content. +React is used as the UI library to create pages. Every page component should export a React component and you can leverage on the expressiveness of React to build rich and interactive content.