Overview
WhatDoc provides flexible deployment options for hosting your documentation. Every project gets a default URL, and you can upgrade to custom subdomains or bring your own domain.Default Deployment
Every project is automatically deployed at:your-slug is the URL slug you set during project configuration.
Characteristics:
- Publicly accessible by default (
isPublic: true) - Instant deployment (no DNS configuration needed)
- SEO-friendly URLs
- Free for all tiers
Custom Subdomain
Upgrade your documentation URL to a branded subdomain:Setting Up a Subdomain
Navigate to Settings
Go to your project settings at
/settings/:projectId or edit your project at /editor/:projectId.Enter Subdomain
In the Domains tab (Settings page) or Settings drawer (Editor), enter your desired subdomain.Requirements:
- Lowercase letters, numbers, and hyphens only
- Must be unique across all WhatDoc projects
- Minimum 2 characters
Save Subdomain
Click Save Subdomain or Save & Deploy.If the subdomain is already taken, you’ll see:
Subdomain is taken.Otherwise, your documentation is instantly available at:Subdomain changes are instant—no DNS propagation required. WhatDoc handles routing automatically.
Custom Domain (Beta)
Connect your own domain to host documentation on your infrastructure:Setting Up a Custom Domain
Enter Custom Domain
In the Custom Domain section, enter your domain:The field accepts:
- Subdomains (e.g.,
docs.example.com,help.example.com) - Apex domains (e.g.,
example.com) - Lowercase letters, numbers, dots, and hyphens
Click Connect
Click Connect to save the custom domain.If the domain is already in use by another project, you’ll see an error:
Custom domain update failed. It may be in use.Configure DNS
You’ll see DNS configuration instructions:Steps:
- Log in to your domain registrar or DNS provider (e.g., Cloudflare, Namecheap, GoDaddy)
- Add a new CNAME record:
- Name/Host: Your subdomain (e.g.,
docs) - Value/Target:
cname.whatdoc.xyz - TTL: Automatic or 3600 seconds
- Name/Host: Your subdomain (e.g.,
- Save the record
Wait for Propagation
DNS propagation typically takes:
- 5-15 minutes: For most providers
- Up to 24 hours: In rare cases or with slower DNS providers
DNS Configuration Example
For domaindocs.startup.com, add this CNAME record:
| Type | Name | Target | TTL |
|---|---|---|---|
| CNAME | docs | cname.whatdoc.xyz | Auto |
startup.com (not recommended):
| Type | Name | Target | TTL |
|---|---|---|---|
| CNAME | @ | cname.whatdoc.xyz | Auto |
Some DNS providers (like Cloudflare) support CNAME flattening for apex domains. Check your provider’s documentation.
URL Priority
When multiple URLs are configured, WhatDoc prioritizes them as follows:- Custom Domain (if set):
https://docs.example.com - Subdomain (if set):
https://my-project.whatdoc.xyz - Default Slug:
https://whatdoc.xyz/p/my-project
Live URL Display
Your current live URL is shown in multiple places:- Dashboard: On the project card
- Settings: In the General tab (with copy button)
- Editor: In the subdomain field
Deployment Pipeline
When you save changes via the editor or settings:Removing Custom Domains
To remove a custom domain:- Go to
/settings/:projectId> Domains tab - Clear the Custom Domain field
- Click Connect (saves as
null) - Optionally, remove the CNAME record from your DNS provider
Security & SSL
- Automatic SSL: All URLs (default, subdomain, custom domain) are served over HTTPS
- Certificate Management: Handled automatically by Cloudflare
- HSTS: Enabled for enhanced security
- No Configuration Needed: SSL works out of the box
All WhatDoc documentation is served securely over HTTPS with automatic SSL certificate provisioning.
Troubleshooting
Subdomain Issues
| Issue | Cause | Solution |
|---|---|---|
| ”Subdomain is taken” | Another project uses this subdomain | Choose a different subdomain |
| Subdomain not loading | Recent change, cache delay | Clear browser cache, wait 1-2 minutes |
| Invalid subdomain error | Contains special characters | Use only letters, numbers, hyphens |
Custom Domain Issues
| Issue | Cause | Solution |
|---|---|---|
| ”Domain may be in use” | Another project uses this domain | Use a different domain or contact support |
| DNS not resolving | CNAME record not set or propagating | Wait 15 minutes, check DNS with dig |
| SSL certificate error | Certificate provisioning in progress | Wait up to 24 hours, check Cloudflare status |
| 404 on custom domain | DNS points elsewhere | Verify CNAME target is cname.whatdoc.xyz |
Checking DNS Propagation
Linux/Mac:Best Practices
Do:
- Use subdomains like
docs.,help., orapi.for documentation - Keep subdomain names short and memorable
- Test DNS changes with
digbefore reporting issues - Wait at least 15 minutes after DNS changes
What’s Next?
Customizing Docs
Add your logo, branding, and navigation
BYOK
Use your own API key for unlimited generation
