White Label Documentation Using Cloudflare Workers
Cloudflare Workers allow you to serve your Docstar documentation from a custom endpoint path.
Example:
https://yourdomain.com/help
When to Use This Method
Use this method when you want your documentation to open from a path instead of a subdomain.
Example:
yourdomain.com/helpyourdomain.com/docs
Step 1: Add Domain in Docstar
Go to:
settings → Domain
Add your custom domain and endpoint.
Example:
yourdomain.com/help

Step 2: Get the Worker Code
Get the Worker code from the View Code option

Step 3: Open Worker Routes in Cloudflare
Inside Cloudflare:
Workers & Pages → Worker Routes
Create a new route.
Example:
yourdomain.com/help/*

Step 4: Create a Worker
Go to:
Workers & Pages → Create Application
Create a new Worker.

Step 5: Create Application

Step 6: Open Quick Edit
After creating the Worker:
Open the Worker
Click
Quick Edit

Step 6: Paste the code
Replace the default Worker code with the generated code from Docstar

Variable Reference
Variable | Description |
|---|---|
| Your endpoint path |
| Your Docstar collection ID |
| Your custom domain |
Final Result
After setup:
Your documentation will open from your custom endpoint path.
Users will not see the default Docstar URL.
You can fully white label your documentation experience.