Overview
Getting Started
Add htmldocs to any React/TypeScript project in minutes.
Automatic Setup
The easiest way to setup htmldocs is to use our automatic setup script.
- Run the following command in your terminal:
This will prompt you for your project name and create a new folder in your current directory.
- After switching to the folder, install the dependencies by running:
- Once the setup is complete, you can start the development server by running:
This will start a live preview of your documents in your browser.
Manual Setup
If you prefer to set up htmldocs manually, follow these steps:
- Install htmldocs in your project:
- Add the following script to your
package.json
:
- Create document template
Create a new folder called documents
in your project. Then, create a new file called index.tsx
in the documents
folder and include the following code:
- Run the development server by running:
This will start a live preview of your documents in your browser.