From 3c8fbcb8c054b76c6aca5d6d4a648eeaee6d683d Mon Sep 17 00:00:00 2001 From: Lazaro Alonso Date: Fri, 10 Jan 2025 23:31:54 +0100 Subject: [PATCH] stop vitepress before generating new files --- docs/make.jl | 3 ++- docs/src/documenter_to_vitepress_docs_example.md | 4 ++++ docs/src/getting_started.md | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/make.jl b/docs/make.jl index bbdf2ff1..c7f8586c 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -23,7 +23,8 @@ bib = CitationBibliography( joinpath(@__DIR__, "src", "refs.bib"); style=:numeric # default ) - +# dev local +try run(`pkill -f vitepress`) catch end # [!code error] makedocs(; sitename = "DocumenterVitepress", diff --git a/docs/src/documenter_to_vitepress_docs_example.md b/docs/src/documenter_to_vitepress_docs_example.md index dac3e51a..8b147f79 100644 --- a/docs/src/documenter_to_vitepress_docs_example.md +++ b/docs/src/documenter_to_vitepress_docs_example.md @@ -55,6 +55,10 @@ Then the very first step here is to update the `make.jl` file to follow the Docu DocMeta.setdocmeta!(Example, :DocTestSetup, :(using Example); recursive=true) + # you might need to stop the Vitepress server if it's running before + # updating or creating new files + try run(`pkill -f vitepress`) catch end # [!code error] + makedocs(; modules = [Example], repo = Remotes.GitHub("ExampleOrg", "Example.jl"), diff --git a/docs/src/getting_started.md b/docs/src/getting_started.md index 9ab23d29..8e79f869 100644 --- a/docs/src/getting_started.md +++ b/docs/src/getting_started.md @@ -4,6 +4,10 @@ You can simply add `using DocumenterVitepress` to your `make.jl` file, and replace `format = HTML(...)` in `makedocs` with: ```julia +# you might need to stop the Vitepress server if it's running before +# updating or creating new files +try run(`pkill -f vitepress`) catch end # [!code error] + makedocs(..., format = MarkdownVitepress( repo = "",