spring-io / spring-asciidoctor-extensions

Asciidoctor Extensions developed by the Spring team
46 stars 18 forks source link

Make the location of zepto.min.js configurable #49

Closed nickavv closed 3 years ago

nickavv commented 4 years ago

We are using Spring RESTDoc in a strict security environment, and our content policy disallows pulling resources from CDNs. There's currently no way to point to a local copy of the Zepto library which is used to enable the block switch toggles. The CDN location is hard-coded in a script tag in BlockSwitchDocinfo.java

It would be ideal if this were configurable in any way at all.

wilkinsona commented 4 years ago

Thanks for the suggestion, @nickavv. It seems reasonable to me to allow the location of Zepto to be configured via an attribute, defaulting to the current CDN location when the attribute is not specified.

wilkinsona commented 3 years ago

I don't think we actually need to be using Zepto at all so, rather than making its location configurable, I've opened #63 to remove its usage entirely.