Skip to content

Live reload does not trigger automatically unless '--livereload' is explicitly passed #4055

Open

Description

@soroush-zendedel

When running mkdocs serve, changes in the documentation files are not automatically reloaded in the browser unless the --livereload flag is explicitly passed.

In previous versions, or as documented, mkdocs serve should enable livereload by default.
Currently, it only works if I run:
mkdocs serve --livereload
Without that flag, the local server runs correctly but does not detect or reload changes automatically.

Steps to reproduce:
Run mkdocs serve in a standard MkDocs project.
Modify any .md file in the docs/ folder.
Observe that the browser does not refresh.

Run the same command with:
mkdocs serve --livereload
Now live reload works as expected.

Expected behavior:
mkdocs serve should enable live reload by default (without requiring the --livereload argument), or documentation should clarify if this default behavior has changed intentionally.

Impact on tests:
This issue also causes automated tests and CI pipelines that rely on the default livereload behavior to fail or hang, because the reload server is not triggered unless the flag is explicitly provided.
This leads to inconsistent test behavior across environments that expect the default live-reload to be active

Activity

  1. soroush-zendedel commented on Oct 30, 2025

    @soroush-zendedel
    Author

    The problem doesn't exist in python3.9

  2. DetachHead commented on Nov 3, 2025

    @DetachHead

    duplicate of #4032

  3. added a commit that references this issue on Nov 26, 2025
    6312cb8
  4. Wcowin commented on Dec 9, 2025

    @Wcowin

    MkDocs Hot Update Failure Issue

    Problem Description

    After running mkdocs serve, when modifying a Markdown file and saving it, the terminal does not display Detected file changes, and the browser will not refresh automatically.

    Reason

    Bug in click 8.3.x version causes MkDocs' livereload file monitoring feature to fail.

    Related Issue: MkDocs use_directory_urls: true bug with click==8.2.2 #4014

    Solution

    Downgrade click to version 8.2.1:

    pip install click==8.2.1
  5. bluebyt commented on Jan 12, 2026

    @bluebyt

    I experience the same behavior since Python has been update to 3.14.2-2 on Archlinux.

    The previous was working 3.13.11-1 perfectly.

  6. Mythical-Github commented on Jan 13, 2026

    @Mythical-Github

    I get this problem on Python 3.12.12 currently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions