Red Hat Bugzilla – Full Text Bug Listing
|Summary:||RFE: scripts directory in brand|
|Product:||[Community] Publican||Reporter:||Joshua Wulf <jwulf>|
|Component:||publican||Assignee:||Jeff Fearn <jfearn>|
|Status:||CLOSED CURRENTRELEASE||QA Contact:||tools-bugs <tools-bugs>|
|Version:||2.3||CC:||kpalko, lcarlon, rglasz, rlandman, xma|
|Fixed In Version:||3.1.0||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2013-02-05 22:40:53 EST||Type:||Bug|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Joshua Wulf 2012-07-13 06:46:47 EDT
Comment 1 Joshua Wulf 2012-09-06 08:32:59 EDT
.woff web fonts are another resource that I'm bundling in my brand
Comment 2 Joshua Wulf 2012-11-01 22:45:00 EDT
This will also need support for the relative pathing for desktop and web output - in my Brand xsl customization i'm injecting the <script> tag. The relative path for the scripts will be different depending on whether the book is being built for the centralised web version of the brand, or the decentralised desktop version of the brand.
Comment 4 Joshua Wulf 2012-12-19 01:29:00 EST
This worked in Publican 2, but stopped working in Publican 3. I need this to get the Portal issue https://bugzilla.redhat.com/show_bug.cgi?id=845806 addressed, and I also need it for the MRG 2.3 release in February 2013.
Comment 5 Joshua Wulf 2012-12-19 01:30:13 EST
Comment 9 Jeff Fearn 2013-01-08 00:46:36 EST
This fix has been committed to the devel branch for inclusion in Publican 3.1. Sample output assuming JS files are moved to en-US/scripts $ rpm -qilp tmp/rpm/noarch/publican-redha* | grep -E 'scripts|css' /usr/share/publican/Common_Content/redhat-video/en-US/css /usr/share/publican/Common_Content/redhat-video/en-US/css/lang.css /usr/share/publican/Common_Content/redhat-video/en-US/css/menu.css /usr/share/publican/Common_Content/redhat-video/en-US/css/overrides.css /usr/share/publican/Common_Content/redhat-video/en-US/scripts /usr/share/publican/Common_Content/redhat-video/en-US/scripts/code-lang-switcher.js /usr/share/publican/Common_Content/redhat-video/en-US/scripts/jquery-1.4.2.min.js /usr/share/publican/Common_Content/redhat-video/en-US/scripts/modernizr.js /usr/share/publican/Common_Content/redhat-video/en-US/scripts/skynet-book.js /var/www/html/docs/redhat-video/en-US/css /var/www/html/docs/redhat-video/en-US/css/lang.css /var/www/html/docs/redhat-video/en-US/css/menu.css /var/www/html/docs/redhat-video/en-US/css/overrides.css /var/www/html/docs/redhat-video/en-US/scripts /var/www/html/docs/redhat-video/en-US/scripts/code-lang-switcher.js /var/www/html/docs/redhat-video/en-US/scripts/jquery-1.4.2.min.js /var/www/html/docs/redhat-video/en-US/scripts/modernizr.js /var/www/html/docs/redhat-video/en-US/scripts/skynet-book.js FYI the regression of non CSS files being dropped is also fixed, so if the JS files are left in the CSS directory they will be installed in to /var/www/html/docs/redhat-video/en-US/css/
Comment 10 Joshua Wulf 2013-01-08 01:41:00 EST
Comment 11 Jeff Fearn 2013-01-08 02:08:34 EST
Comment 12 xuezhi ma 2013-01-31 01:49:49 EST
Verify version: publican-3.1.0-0.el6eng.noarch ->PASS Verify steps: 1. $publican create_brand --name=test --lang=en-US 2. $ cd publican-test/en-US 3. $ mkdir scripts, then copy test1.js and test1.css to this directory. 4. copy test2.js and test2.css to en-US/css/ directory. 5. $publican package --binary --lang=en-US 6. rpm -qilp tmp/rpm/noarch/publican-test* | grep -E 'scripts|css' Actual results: 1. js files and css files in css directory still in that directory. 2. js files and css files in scripts directory still in that directory.