analogdevicesinc/doctools

Add fallback to npm-less installs

gastmaier opened this issue · 2 comments

Most of the times, we don't care about the CSS and JavaScript. Then, during CI, write the "compiled" files to the release, and fetch it if npm is unavailable.
Log this info during author-mode initialization.

7ed1732 implements this behaviour.

When launching author-mode, if the minified scripts are not found and the user does not have the npm modules installed, the tool now propose to fetch from the latest release and patch the repo with the minified scripts:

docs$ adoc author-mode -d .
Couldn't find the 'compiled' web files and the npm tools are not installed.
Do you want to fetch from the release? [y/N]: 

On main as 7ed1732