mingo-blox
(Mingo Blox)
August 19, 2024, 11:09am
1
I want to deploy project documentation generated using Doxygen and Mkdocs (uses mkdoxy as a plugin).
I am unsure how to set up deployment especially the build commands since the documentation generation depends heavily on Doxygen and Mkdocs.
I can install the dependencies for Mkdocs but not oxygen.
Any help will be greatly appreciated.
pawlean
(Pauline P. Narvas)
August 19, 2024, 3:00pm
2
Hi, @mingo-blox and welcome!
I’m not familiar with Doxygen and Mkdocs, but after some research, it seems like you can follow these rough steps:
Generate Doxygen documentation locally and integrate it into your MkDocs site.
Build the documentation site locally and deploy the generated site/
directory to Vercel.
Use Vercel’s configuration to specify the build command and output directory. See below:
Since Vercel automatically detects and deploys from the output
directory, you need to specify the build command and output directory.
In your project’s root, create or edit the vercel.json
file to specify the build command and output directory:
{
"builds": [
{
"src": "mkdocs.yml",
"use": "@vercel/static-build",
"config": {
"distDir": "site"
}
}
],
"scripts": {
"build": "mkdocs build"
}
}
Commit all your changes, including the pre-generated Doxygen documentation, and push them to your Git repository.
Vercel will automatically detect the configuration and deploy the MkDocs site.
Does this help?
nateland
(nateland)
August 21, 2024, 12:54am
3
Almost there - it seems scripts
isnt’ in the right place anymore:
Build Failed
The `vercel.json` schema validation failed with the following message: should NOT have additional property `scripts`
system
(system)
Closed
September 20, 2024, 12:55am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.