Works with Lovable
Docs for your
Lovable app
Lovable keeps the code of your app in sync with a GitHub repository. Add a docs folder to that repository, and Revdoku publishes it as a docs site on each push. Your users get search and Ask AI, and AI agents read the docs through MCP.
- Publishes from GitHub on every push
- Works with Mintlify repositories
- API console from your OpenAPI file
- MCP server and llms.txt for AI agents
- Ask AI and support tickets
- Analytics for people and AI agents
Publish the docs from the Lovable repository
Lovable syncs a project with GitHub in both directions. Revdoku reads the same repository and publishes one folder of it as a docs site.
In Lovable:
- Open Project settings → Git → GitHub.
- If no GitHub connection shows, a workspace owner or admin selects Add connection → Add account. In the GitHub window, they click Install & Authorize.
- Click Connect next to the GitHub connection. Lovable creates a private repository and starts the sync.
- Add a
docs/folder with Markdown pages and adocs.jsonnavigation file. Use the prompt in the next section, or edit the files on GitHub.
In Revdoku:
- Create a Revdoku account. In the setup steps, select Connect a GitHub repository.
- Select Connect GitHub and give the Revdoku GitHub App access to the repository.
- Select Existing GitHub repository. Then select the repository and the branch that Lovable syncs.
- In Folder, type
docs. Click Import and sync. - Click Publish. The docs go live at
https://<name>.revdoku.siteor on your own domain.
Each later push to the branch publishes the docs again, also a change that comes from Lovable. While the site is live, a push to another branch gets a 24-hour preview. Lovable syncs one branch at a time, by default the default branch of the repository.
Prompt: Lovable writes the docs
Paste this prompt into the Lovable chat. It asks Lovable to write the pages from the code of the app. The sync then sends them to GitHub.
Write user docs for this app in a docs/ folder.
Revdoku will publish the folder as a docs site.
Do not change the app.
- docs/index.md: what the app does and who uses it.
- One Markdown page for each main screen or task,
with numbered steps. Start each page with front
matter: title and description.
- docs/docs.json in the Mintlify format: a "name" and
a "navigation" with "groups". Each group has a
"group" name and its "pages", without ".md".
- If the app has Edge Functions that other programs
call, describe them in docs/openapi.json.
- Describe only what the code does. Put no keys,
passwords or customer data in the docs.With an OpenAPI file, the docs site gets one reference page for each tag and an API console, where people send real requests.
Link the docs and support from your app
Ask Lovable for a Help menu in the app with two links:
- Docs: the address of your docs site. There, people search the pages and use Ask AI.
- Contact support: a
mailto:link to the support address of your docs.
An email to the support address opens a ticket in Revdoku. The built-in support agent drafts a reply from your docs, and a person sends it. On the docs site, a reader who still needs help can leave a message, which arrives as a ticket too. The support tickets page shows the details.
If the app calls the Revdoku API, keep the key in Lovable secrets
The docs need no API key. The app needs one only if it calls the Revdoku API. For example, an admin page can show the state of the docs site and the number of open support tickets. In Revdoku, a bucket holds the files, the site and the support tickets of one docs site.
- In Revdoku, open Account → Access and select Create API key….
- Set Bucket access to Selected buckets only and select the bucket of your docs. Set Permission to Read only.
- In Lovable, open More → Settings → Secrets and click Add secret.
- Enter the name
REVDOKU_API_KEYand paste the key.
Secrets reach only Edge Functions and other server code, never the browser. Lovable refuses names that start with VITE_, because those values go into the browser code. A remix copies only the names of your secrets, so enter the value again in the copy.
Lovable GitHub sync · Lovable secrets · Docs for AI agents · Support tickets · Revdoku API