paradox
paradox copied to clipboard
Linking to dynamically generated files
Is there a way to link to dynamically generated files generated by a task?
After looking at the plugin code, I was able to get this working by adding the dynamically generated files' output directory to the source directories with sourceDirectories in (Paradox, paradox) += outputDirectory.value
and making the paradox task depend on the generation task: paradox in Paradox <<= (paradox in Paradox).dependsOn(generateFiles)
.
Not sure if this is the best way to go about it, but I'll try it until I run into issues.
That sounds good. I did a similar thing where I created a custom config which allows to generate paradox output that links to locally generated API docs (instead of the ones hosted already). I did not have to touch sourceDirectories
as the linking was setup through paradoxProperties
.