docs(v2): correct the documentation for doc-only mode (#3040)

This commit is contained in:
Teik Jun 2020-07-09 23:15:23 +08:00 committed by GitHub
parent 04fc4190f9
commit 11751c20b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 22 deletions

View file

@ -140,12 +140,6 @@ https://{your-domain}/blog/atom.xml
You can run your Docusaurus 2 site without a landing page and instead have your blog's post list page as the index page. Set the `routeBasePath` to be `'/'` to indicate it's the root path.
:::caution
Don't forget to delete the existing homepage at `./src/pages/index.js`
:::
```js {9} title="docusaurus.config.js"
module.exports = {
// ...
@ -163,9 +157,9 @@ module.exports = {
};
```
:::note
:::caution
Make sure there's no `index.js` page in `src/pages` or else there will be two files mapping to the same route!
Don't forget to delete the existing homepage at `./src/pages/index.js` or else there will be two files mapping to the same route!
:::