mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
docs(v2): correct the documentation for doc-only mode (#3040)
This commit is contained in:
parent
04fc4190f9
commit
11751c20b0
3 changed files with 22 additions and 22 deletions
|
@ -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!
|
||||
|
||||
:::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue