This is a ready-to-use MkDocs template designed for quick deployment using Cloudflare Pages or Cloudflare Workers, with built-in support for Dependabot and Dev Containers.
- Click Use this template on the repository page
- Create a new repository from the template
- Give it a name and click Create repository
You can run and develop this project inside a fully configured Dev Container using Visual Studio Code and Docker.
- Docker installed and running
- Visual Studio Code
- Dev Containers extension installed in VS Code
- Open this repository in VS Code
- Then follow the instructions for your OS:
• macOS: Press Command + Shift + P → type Dev Containers: Reopen in Container → press Enter
• Windows: Press Ctrl + Shift + P → type Dev Containers: Reopen in Container → press Enter - VS Code will build the container and install all dependencies automatically
Once inside the container, you can serve the site locally:
mkdocs serve -a 0.0.0.0:8000
Then open http://localhost:8000
in your browser to preview.
Let’s build and deploy the site via Cloudflare Pages:
- Open your Cloudflare Dashboard
- Go to Compute → Workers & Pages → click Pages
- Click Create a project
- Connect your GitHub account if prompted
- Select the newly created repository
- In Build Settings, choose MkDocs as the framework
- Leave the rest as default and click Save and Deploy
Alternatively, deploy your site via Cloudflare Workers for more flexibility:
- Open your Cloudflare Dashboard
- Go to Compute → Workers & Pages
- Click Get Started under Import a Repository
- Connect your GitHub account (if not already)
- Select your repository and begin setup
- Enter a project name
- Leave other settings as default and click Create and Deploy
- You can customize
wrangler.jsonc
to your own liking.
Feel free to customize the site content, theme, or CI workflow to match your project needs!