Documentation

Installation

Install this template by running the following command:

Copy
pnpm dlx giget@latest gh:teygeta/nuxt-doc <project-name>

Then, navigate to the project directory and install the dependencies:

Copy
cd <project-name>
pnpm install

After that, you can start the development server:

Copy
pnpm dev

That's it! You can now start writing your documentation.

Custom components

Some custom components are used in this documentation. You can find them in the components/content directory.

Here's an example of ProsePre component:

Copy
import { Lucia } from 'lucia'

const adapter = new BetterSQLite3Adapter(db) // your adapter

export const lucia = new Lucia(adapter, {
  sessionCookie: {
    attributes: {
      // set to `true` when using HTTPS
      secure: process.env.NODE_ENV === 'production'
    }
  }
})

// IMPORTANT!
declare module 'lucia' {
  interface Register {
    Lucia: typeof lucia
  }
}