Blog

Adding SEO#

Dokz in the end is just a nextjs plugin, this means that it work with the nextjs existing plugin ecosystem.

To add Seo capabilities you can use the next-seo package

sh
1
npm i next-seo

Here is an example of an mdx page with the title meta tag

md
1
import { NextSeo } from 'next-seo'
2
3
<NextSeo
4
title='Simple Usage Example'
5
description='A short description goes here.'
6
/>
7
8
# Heading
9
10
Proident ea esse elit proident et ea aute dolor.
Previous
Adding a table of contents
Next
Deploying your docs
Adding SEO