Bug 1257749

Summary: Please provide sources for highlight.js
Product: [Community] Publican Reporter: Raphaël Hertzog <raphael>
Component: publicanAssignee: Nobody <nobody>
Status: NEW --- QA Contact: Ruediger Landmann <rlandman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2CC: cbredesen, rlandman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Raphaël Hertzog 2015-08-27 20:30:05 UTC
Same issue as reported in #1062109 except this time for highlight.js.

Publican ships datadir/Common_Content/common-db5/en-US/scripts/highlight.js/highlight.pack.js which is a minified javascript file. Those are not "source files" since they are the result of minifier against source files.

I'd like you to provide the non-minified files next to the minified files because:
* one of the Publican license is the the GPL, and the GPL requires you to offer the corresponding source code and the easiest way to achieve this is to ensure you have the source code in the release tarball
* the Debian Free Software Guidelines impose the same requirement of providing the source code whatever free software license is in use and it would avoid me some trouble if this requirement was met in the upstream release tarball

Thank you!

Comment 1 Jeff Fearn 🐞 2015-08-27 22:28:57 UTC
Hi Raphaël, does Debian have a system supplied library for this like js-highlight-styles & js-highlight in fedora? If so I might see if we can just use that.

Comment 2 Raphaël Hertzog 2015-08-27 22:43:57 UTC
Yes we have:

$ apt-file show libjs-highlight.js
[...]
libjs-highlight.js: /usr/share/javascript/highlight
libjs-highlight.js: /usr/share/javascript/highlight.js/highlight.js
libjs-highlight.js: /usr/share/javascript/highlight.js/highlight.min.js
libjs-highlight.js: /usr/share/javascript/highlight.js/styles/arta.css
[...]