Vercel is a shared hosting platform for websites like the ones created by MkDocs and other Static Site Generators.
Prerequisites
Host MkDocs Documentation in Vercel
Follow the steps below to publish your MkDocs project with Vercel:
- Create an MkDocs project.
- In the root directory of your project, create a file
requirements.txt. - In the
requirements.txtfile, add the names of any plugins used in the project (and the Material theme if needed). Example:mkdocs-material mkdocs-macros-plugin mkdocs-awesome-pages-plugin - Create a git repository for the project on gitHub.
- Push your content to gitHub.
- Create a new project in Vercel.
- Import your git repository.
- In the project settings, set: ```
Framework Preset: Other Build Command: python3 -m mkdocs build Output Directory: site Install Command: pip3 install -r requirements.txt - Deploy the Vercel project.
