Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/borekb/mkdocs-vercel-demo

Demo of how to deploy MkDocs docs site to Vercel (ZEIT Now)
https://github.com/borekb/mkdocs-vercel-demo

Last synced: 9 days ago
JSON representation

Demo of how to deploy MkDocs docs site to Vercel (ZEIT Now)

Awesome Lists containing this project

README

        

# MkDocs on Vercel

Screenshot 2020-05-13 at 10 27 14

Demo of how to deploy MkDocs site to Vercel (formerly ZEIT Now).

## How to deploy

Just run `now` in this folder. (Tested as of `now@19`.)

## Details

Note that for local development (`yarn dev`), Docker container is used so that it's not necessary to have Python and all the right extensions locally.

For cloud deployment, the two key parts are:

- The `requirements.txt` file – Vercel will see it and treat the deployment as a Python project.
- The `build` script in `package.json` – Vercel runs it on deployments. Note that this is _not_ dockerized.

The awesome [MkDocs Material](https://squidfunk.github.io/mkdocs-material/) theme is used, with a couple of customizations.