You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make DocumenterVitepress.deploydocs more robust + various other fixes (#257)
- Fix error when trying to read nonexistent `.vitepress/config.mts`.
- Pass `deploydocs` keyword arguments through correctly
- Respect the `dirname` keyword to deploydocs
- Compute the root directory in `DV.deploydocs` and pass it down to Documenter, so that relative `target` paths work.
- Add the correct path to the Github Actions post status JSON that Documenter pushes, by invoking it ourselves after all deployments.
- Log info statements, not warnings, when filling in missing Vitepress config files.
- Fix a bug where the `@ansi` block errored when in draft mode.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,16 @@
1
1
# Changelog
2
2
3
+
## v0.2.1 - 2025-05-15
4
+
Bug fix release after v0.2.0 - now, namespacing deploydocs as `DocumenterVitepress.deploydocs` should "just work".
5
+
6
+
- Fix error when trying to read nonexistent `.vitepress/config.mts`.
7
+
- Pass `deploydocs` keyword arguments through correctly
8
+
- Respect the `dirname` keyword to deploydocs
9
+
- Compute the root directory in `DV.deploydocs` and pass it down to Documenter, so that relative `target` paths work.
10
+
- Add the correct path to the Github Actions post status JSON that Documenter pushes, by invoking it ourselves after all deployments.
11
+
- Log info statements, not warnings, when filling in missing Vitepress config files.
12
+
- Fix a bug where the `@ansi` block errored when in draft mode.
13
+
3
14
## v0.2.0 - 2025-05-14
4
15
5
16
-**Breaking**: `makedocs` now renders a separate build for each `base` needed by vitepress, for example `v1.2.3`, `v1.2`, `v1` and `stable`. This fixes problems stemming from the non-relocatability of vitepress sites (the base they have been rendered for must be the same as where it is deployed). Because the structure of the `build` folder changes and now contains subfolders which must be deployed separately, `Documenter.deploydocs` cannot be used anymore. Instead, use the function of similar name `DocumenterVitepress.deploydocs` which wraps Documenter's function in a way that handles the multi-folder setup correctly [#246](https://github.com/LuxDL/DocumenterVitepress.jl/pull/246). You will also have to delete every symlink on the `gh-pages` branch which Documenter has written and which you want to deploy to using DocumenterVitepress, for example `stable` will be a symlink but needs to be removed before DocumenterVitepress can render to an actual directory there. For more information check the README.
vitepress_config_file =joinpath(sourcedir, ".vitepress", "config.mts") # We check the source dir here because `clean=false` will persist the old, non-generated file in the build dir, and we need to overwrite it.
36
+
37
+
# Make the theme directory
38
+
mkpath(joinpath(build_vitepress_dir, "theme"))
39
+
40
+
# Check for the config file
41
+
vitepress_config_file =joinpath(source_vitepress_dir, "config.mts") # We check the source dir here because `clean=false` will persist the old, non-generated file in the build dir, and we need to overwrite it.
38
42
if!isfile(vitepress_config_file)
39
43
mkpath(splitdir(vitepress_config_file)[1])
40
-
@warn"DocumenterVitepress: Did not detect `docs/src/.vitepress/config.mts` file. Substituting in the default file."
44
+
@info"DocumenterVitepress: Did not detect `docs/src/.vitepress/config.mts` file. Substituting in the default file."
41
45
# We use `write` instead of `cp` here, because `cp`'ed files inherit the permissions of the source file,
42
46
# which may not be writable. However, `write` creates a new file for which Julia must have write permissions.
vitepress_config_file_template =joinpath(source_vitepress_dir, "config.mts") # We check the source dir here because `clean=false` will persist the old, non-generated file in the build dir, and we need to overwrite it.
61
-
vitepress_config_file =joinpath(build_vitepress_dir, "config.mts") # We check the source dir here because `clean=false` will persist the old, non-generated file in the build dir, and we need to overwrite it.
0 commit comments