| Summary: | RFE: Make the build and assemble command follow the current workflow. | ||
|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | Lee Newson <lnewson> |
| Component: | CSProcessor | Assignee: | Lee Newson <lnewson> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 1.x | CC: | dlesage, jwulf, misty |
| 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: | 2013-05-29 02:10:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Lee Newson
2012-03-14 04:07:17 UTC
The new command represents an intermediate processing step in transforming a Content Specification into built HTML output. It takes a Content Specification on the server and transforms it into (currently) a publican book on the local filesystem, for building by publican. The csprocessor:build command will use this intermediate step to build HTML output from a Content Spec in the following manner: csprocessor:build Content Spec ---> publican book on local filesystem --[publican:build]--> HTML output The new command accomplishes the following portion of this: csprocessor:??? Content Spec --[csprocessor:???]--> publican book on local filesystem Bear in mind that the intermediate step currently outputs a publican book, but in the future could be extended to output other useful formats for further processing, so the term should be sufficiently generic. Unzipping is an unnecessary step from my perspective. It would be great to have the command: Create a directory and output the .xml files into that directory and also automatically build the book (by calling on publican) to output in either PDF or HTML-Single as specified by the user. Atm you can do that with the assemble command (as of version 0.22.2 anyways). The format that is used is specified by the csprocessor.ini config file. The only real reason I can see to have it only create the .zip file is if you wanted to email it or check it into svn, etc... Though maybe that isn't needed and we could remove that command (or hide it) entirely. Another part that would be handy based on David's answer is a command line parameter that you could use to specify the publican build output. ie. csprocessor assemble --format pdf This would be good because not all books may have the same desired output. I've set my previous comment to private because it contains potentially confusing misinformation. I've looked into more, and I was wrong. * csprocessor assemble does everything through to putting a publican-compatible book in the assembly directory. e.g: csprocessor assemble ..... Content Specification successfully assembled at /home/jwulf/public_html/Messaging_Installation_and_Configuration_Guide/assembly/publican * csprocessor preview does everything through to publican build (plus opening the HTML preview in a browser). * csprocessor build currently (as of cspclient-0.23.2-1) builds a zip file and puts it into the assembly directory. e.g: csprocessor build ... Output saved to: /home/jwulf/public_html/Messaging_Installation_and_Configuration_Guide/assembly/Messaging_Installation_and_Configuration_Guide-publican.zip So for building a content spec to HTML or PDF - configurable in the csprocessor.ini file - "csprocessor preview" is the command to use. For assembling the material needed to publish to stage, "csprocessor assemble" is the command to use. I've documented it so that I can RTFM next time: https://engineering.redhat.com/docs/en-US/Engineering_Content_Services/1/html-single/Content_Spec_Processor_Guide/index.html#Publish_a_Content_Spec_based_book_to_the_Stage I would expect the assemble command to act like the publish command, and leave me with a n assembled Publican book in assembly/publican. From there my build.sh script will take it all the way to built html. I would expect the csprocessor build command to take me all the way to built html. I think this works as expected now. Please reopen if not. |