Remove Homepage
https://stackoverflow.com/questions/61999271/how-to-set-docs-as-the-main-page
Remove Homepage and land on Docs directly
- Delete or archive your
src/pages/index.js
file. - Add the
routeBasePath
attribute indocusaurus.config.js
file.
docusaurus.config.js
module.exports = {
// ...
presets: [
[
'classic',
{
docs: { routeBasePath: '/', sidebarPath: './sidebars.ts' },
// ...
},
],
],
// ...
};
- Go to the md file that you want to be the landing page (e.g. docs/intro.md) and add this at the top.
docs/intro.md
---
title: Introduction
slug: /
sidebar_position: 1
---
Explore more by clicking here