Getting started

Set up your new docs site from this template.

Docs thing is a template for documentation sites, powered by Next.js and Content Collections. It's designed to be fairly simple but easily extensible, though it does include some nice features out of the box.

Set up the project

Clone the Docs Thing repo

Start by cloning the repo for this template:

git clone https://github.com/TheOmer77/docs-thing.git
cd docs-thing

Alternatively, you can create a new repo on GitHub from this template.

Install dependencies

Use your favorite package manager to install the project's dependencies:

npm install

Run the development server

Use the dev script to run this project in development mode:

npm run dev

Start editing docs

You're now ready to go! Start creating docs in the project's content directory, and write content using markdown and MDX.

Next, you can learn how to add metadata to your pages, organize them or use MDX components.

Build for production

Once you're done writing content, you can make a production build of your site and host it wherever you want.

Optional: Choose build output

Update the project's next.config.mjs file, adding an output with the value for your desired build output format:

  • 'export': A static build in the out directory, including just HTML/CSS/JS files.
  • 'standalone': A standalone build in the .next/standalone directory, useful if you want to host your site in a Docker container.

Build your site

Finally, run the build script to build your docs site:

npm run build
Next
Page metadata