From 48680e10b66c432efab4bda3af64565fa3d53da8 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Wed, 20 Nov 2024 10:21:20 +0530 Subject: [PATCH] Watch for changes to the generated file during documentation serve (#14476) ## Summary Similar to https://github.com/astral-sh/uv/pull/9244, but we need to use the `mkdocs.generated.yml` file because the `scripts/generate_mkdocs.py` uses the `mkdocs.template.yml` to generate the final config. --- mkdocs.insiders.yml | 2 ++ mkdocs.public.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mkdocs.insiders.yml b/mkdocs.insiders.yml index 1842e9ead2..701443809a 100644 --- a/mkdocs.insiders.yml +++ b/mkdocs.insiders.yml @@ -1 +1,3 @@ INHERIT: mkdocs.generated.yml +watch: + - mkdocs.generated.yml diff --git a/mkdocs.public.yml b/mkdocs.public.yml index 45b0689071..b6d7ae6eca 100644 --- a/mkdocs.public.yml +++ b/mkdocs.public.yml @@ -2,3 +2,5 @@ INHERIT: mkdocs.generated.yml # Omit the `typeset` plugin which is only available in the Insiders version. plugins: - search +watch: + - mkdocs.generated.yml