Getting Started
Rise4fun leverages Docusaurus along with a few custom plugins.
In this page, we'll show you how to create your first Docusaurus web site and enable the rise4fun plugins in it.
Docusaurus
Docusaurus is a framework to build optimized documentation web sites. It has an extensive documentation which we recommend taking a peek later on. For simplicity, the installation tutorial is repeated here:
Install Node.js 18+, open a terminal on your project root and create a new Docusaurus site:
npx create-docusaurus@latest website classic --typescript
Try it out! Go to website and start docusaurus.
cd website
yarn start
If you are using yarn workspaces, add website
to your workspace list and run yarn install
again.
Rise4fun configuration
Let's work on the docusaurus website folder.
cd website
Install the rise4fun plugin
yarn add @rise4fun/docusaurus-plugin-rise4fun
Open ./docusaurus.config.js
and update it as follows.
const { configure } = require("@rise4fun/docusaurus-plugin-rise4fun");
...
const config = configure(
{
...
}
// rise4fun configuration
, {
})
Cleanup time!
The default Docusaurus template comes with a lot of content. Make sure to give a pass through docusaurus.config.js
:
- review the names, url, project name and so forth
- if you don't need a blog, set
blog: false
and delete theblog
folder - if you're already familiar with Docusaurus, delete the repopulated content of
docs
Microsoft projects: make sure that organizationName
is set to microsoft
, to enable automatic legal footer injection
const { configure } = require("@rise4fun/docusaurus-plugin-rise4fun");
...
const config = configure(
{
...
organizationName: "microsoft",
}
...
Start authoring!
Start the site
yarn start
Open http://localhost:3000 and you'll see your web site running, yay!
You can learn about the Markdown features available to create your documentation site.