mirror of
https://github.com/apple/pkl.git
synced 2026-03-31 06:03:11 +02:00
Added support for an alternative current dir mode in pkldoc (#824)
Some systems have trouble with handling symlinks, which breaks the current directory links created by Pkldoc. In this PR, we add an alternative mode which creates a full copy of the latest published version contents in the current directory instead. Co-authored-by: Dan Chao <dan.chao@apple.com>
This commit is contained in:
@@ -232,10 +232,18 @@ Relative URIs are resolved against the working directory.
|
||||
[%collapsible]
|
||||
====
|
||||
Default: (none) +
|
||||
Example: `pkldoc`
|
||||
Example: `pkldoc` +
|
||||
The directory where generated documentation is placed.
|
||||
====
|
||||
|
||||
.--no-symlinks
|
||||
[%collapsible]
|
||||
====
|
||||
Create copies of files and directories instead of symbolic links.
|
||||
In particular, this affects how the "current" directories containing documentation content for the last generated version should be created.
|
||||
By default, a symbolic link is created pointing to the last generated version. If symlinks are disabled, a full copy of the last generated version is created.
|
||||
====
|
||||
|
||||
Common CLI options:
|
||||
|
||||
include::../../pkl-cli/partials/cli-common-options.adoc[]
|
||||
|
||||
@@ -534,6 +534,17 @@ Example: `outputDir = layout.projectDirectory.dir("pkl-docs")` +
|
||||
The directory where generated documentation is placed.
|
||||
====
|
||||
|
||||
.noSymlinks: Property<Boolean>
|
||||
[%collapsible]
|
||||
====
|
||||
Default: `false` +
|
||||
Example: `noSymlinks = true` +
|
||||
Create copies of files and directories instead of symbolic links.
|
||||
In particular, this affects how the "current" directories containing documentation content for the last generated version should be created.
|
||||
By default, a symbolic link is created pointing to the last generated version.
|
||||
If symlinks are disabled, a full copy of the last generated version is created.
|
||||
====
|
||||
|
||||
Common properties:
|
||||
|
||||
include::../partials/gradle-modules-properties.adoc[]
|
||||
|
||||
Reference in New Issue
Block a user