Skip to main content

Automatic Setup

The easiest way to setup htmldocs is to use our automatic setup script.
  1. Run the following command in your terminal:
This will prompt you for your project name and create a new folder in your current directory.
  1. After switching to the folder, you can start the development server by running:
This will start a live preview of your documents in your browser. Dev server preview

Manual Setup

If you prefer to set up htmldocs manually, follow these steps:
  1. Install htmldocs in your project:
  1. Add the following script to your package.json:
  1. Create document template
Create a new folder called documents in your project. Then, create a new file called Book.tsx in the documents folder and include the following code:
  1. Run the development server by running:
This will start a live preview of your documents in your browser.