Skip to content

Build and Publish

MkLume helps you prepare your documentation for publishing, but the final hosting choice is still yours. That is intentional. Your docs should not depend on a private token hidden inside the app.

Build requirements

For the normal Windows installer, MkLume includes an app-managed MkDocs runtime for build, export, and local serve actions. You do not need to install Python, MkDocs, or Material for MkDocs manually just to use the app.

Manual command-line builds are still useful for developers, advanced troubleshooting, CI, or hosting providers that build from a Git repository. In those cases, install the project requirements from the folder that contains mkdocs.yml:

pip install -r requirements.txt

If the project has no requirements.txt, install the basic MkDocs tools manually:

pip install mkdocs mkdocs-material

Then test the project:

mkdocs serve

Build the final site:

mkdocs build

The output is normally created in a folder called site/.

Build and export inside MkLume

MkLume build panel

A good build workflow is:

  1. Save all open pages.
  2. Run Project Health.
  3. Fix broken links or missing images.
  4. Run a local preview.
  5. Build the site.
  6. Export the output as a folder, zip, or both.

Folder or zip?

Use a folder when your hosting provider expects direct upload. Use a zip when you want to archive the build, send it to someone, or upload it through a dashboard that accepts zip files.

Local preview

Use local preview when you want to check the complete site before uploading.

mkdocs serve

Then open the local address shown in the terminal. It is usually:

http://127.0.0.1:8000/

Cloudflare Pages workflow

Cloudflare Pages is a good fit for MkDocs because MkDocs builds a static website.

Option A: Upload the built site manually

  1. Build the project:

    mkdocs build
    
  2. Open the generated site/ folder.

  3. Upload the contents to Cloudflare Pages using your existing upload workflow.
  4. Check the live page.

Option B: Connect a Git repository

  1. Push the documentation project to GitHub.
  2. Create or open the Cloudflare Pages project.
  3. Connect the repository.
  4. Use this build command:

    pip install -r requirements.txt && mkdocs build
    

    If the project has no requirements.txt, use:

    pip install mkdocs mkdocs-material && mkdocs build
    
  5. Set the output directory to:

    site
    

Confirm your current workflow

This site already appears to be built with MkDocs Material and deployed to Cloudflare. If your Cloudflare project uses a custom build command, keep that command and only adjust it when needed.

GitHub Pages deploy assistant

MkLume can help create a GitHub Actions workflow file for GitHub Pages.

MkLume Git Sync

The idea is simple:

  1. MkLume creates the workflow file.
  2. You review it.
  3. You commit and push it.
  4. GitHub builds and publishes the docs.

A common workflow file lives here:

.github/workflows/docs.yml

Git Sync

Git Sync is meant for normal documentation changes:

  1. Review changed files.
  2. Write a short commit message.
  3. Commit.
  4. Pull if needed.
  5. Push.

Git is powerful

Git Sync should make common actions easier, but it does not remove the need to understand what you are committing. Review your changes before pushing public documentation.

Before publishing a documentation update:

  • [ ] Run Project Health.
  • [ ] Preview important pages.
  • [ ] Check mobile navigation.
  • [ ] Build the site without errors.
  • [ ] Confirm images load from the final site.
  • [ ] Check external links.
  • [ ] Keep a copy or commit of the working version.

After deployment

Open the live site and check:

  • The homepage loads.
  • Navigation opens correctly.
  • MkLume pages appear in the correct section.
  • Screenshots load.
  • Search finds important pages.
  • No private local file paths are visible.