Analyzing Clojure/Script code means loading it, loading it means it may do anything it wants. So we need a sandbox. This only affects a very small portion of the code, most of that can be found in cljdoc.analysis
. There seem to be at least two options here:
With all of these options there will still be issues that need consideration
docker/
A setup for this can be found in the following places
/scripts/analysis.sh
- runs analysis on provided project, version, jarcljdoc-builder
- is a github repo which defines build steps using the analyze.sh
script/scripts/trigger-build.sh
- triggers a build on CircleCI using the CircleCI APIBesides this kind of process isolation there also is the problem of Classpath isolation. Right now we cannot build API docs for Codox or any of it's dependencies in different versions than what is already on the classpath. This could be solved by either anonymizing our or the dependencies' namespaces using something like mranderson. Both variants have their own tradeoffs. This is low priority but if it excites someone... :rocket:
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close