fix(v2): do not create route for document that serve as docs home page (#2861)

This commit is contained in:
Alexey Pyltsyn 2020-06-03 10:56:57 +03:00 committed by GitHub
parent 6797af660f
commit e68b81bc33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 52 deletions

View file

@ -61,7 +61,7 @@ module.exports = {
};
```
Given the example above, now when you navigate to the path `/docs` you will see that the document content with id is `getting-started`. This functionality also works for docs with versioning enabled.
Given the example above, now when you navigate to the path `/docs` you will see that the document content with id is `getting-started`. This functionality also works for docs with versioning enabled. Importantly, with document serves as home docs page, it will not be available at its URL. Following the example above, this means that the `docs/getting-started` URL will be lead to a 404 error.
:::important