User story #1812
closedinstall python-pygments and source-highlight on ci
Description
The source-highlight plugin for source code colorization has a far better output than the code plugin used now.
To use [source,xhtml] and [source, shell] instead of [code] in the code listing of etc files, some packages are missing on the ci platform.
You should also install pygments (sudo apt-get install python-pygments) and source-highlight (sudo apt-get install source-highlight).
This procedure is described here : https://github.com/gpr/redmine_asciidoc_formatter
After installing this packages, you should document these prerequisites in the README of the documentation, and replace occurences of [code] by accurate [source,xhtml], [source, shell], etc.
Note that the link provided here is also a link to a redmine plugin allowing to write in asciidoc format in redmine wiki ;)
Updated by François ARMAND about 13 years ago
- Target version changed from 10 to 24
Updated by Jonathan CLARKE over 12 years ago
- Target version changed from 24 to 18
Updated by Jonathan CLARKE about 12 years ago
- Status changed from New to Discussion
- Assignee set to Fabrice FLORE-THÉBAULT
- Target version changed from 18 to Ideas (not version specific)
I installed these packages, but using "source" instead of "code" is pretty in HTML but causes the PDF output to break:
/home/jclarke/COMMUNAUTES/Rudder/rudder-doc/bin/asciidoc/asciidoc.py --doctype=book -a docinfo1 --backend docbook rudder-doc.txt dblatex -tpdf rudder-doc.xml Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.3.3-2) =================================================== Build rudder-doc.pdf pdflatex failed rudder-doc.tex:3748: Package Listings Error: Couldn't load requested language. rudder-doc.tex:3748: leading text: ...tlisting}[language=shell,firstnumber=1,] rudder-doc.tex:3748: Package Listings Error: language shell undefined. rudder-doc.tex:3748: leading text: ...tlisting}[language=shell,firstnumber=1,] Unexpected error occured Error: pdflatex compilation failed make: *** [html/rudder-doc.pdf] Error 1
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 30 to Rudder
- Category set to Documentation
Updated by Benoît PECCATTE over 9 years ago
- Status changed from Discussion to Rejected
This is not needed anymore.