Feature #2415

PDF Documentation

Added by Sebastian Kurfuerst over 6 years ago. Updated over 3 years ago.

Status:New Start date:2009-01-06
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:Server Administration
Target version:-

Description

We want a rendered PDF documentation of our docbook.
See attached file for some draft how it could work.

pdf-documentation-example.zip - DocBook -> PDF example (Including share font) (132.4 kB) Sebastian Kurfuerst, 2009-01-06 14:28

FLOW3_documentation.pdf (444.3 kB) Peter Beernink, 2009-01-09 13:52

FLOW3_Documentation.pdf - Updated PDF of the reference (703.2 kB) Peter Beernink, 2009-01-29 22:32

imagedata.diff Magnifier - SVN diff against r1822 (3.1 kB) Peter Beernink, 2009-01-29 22:32

FLOW3_Documentation.pdf (732.3 kB) Peter Beernink, 2009-02-10 21:08

FLOW3_Documentation.tgz - Files needed for DocBook to PDF conversion. (103.5 kB) Peter Beernink, 2009-02-13 09:01

FLOW3-proposed-documentation-structure.zip (923 kB) Karsten Dambekalns, 2009-02-19 13:10

FLOW3_Documentation_v2.zip - Updated rendering setup (2.6 MB) Karsten Dambekalns, 2009-02-22 23:16

FLOW3_Documentation.pdf - Result of updated setup (1001.9 kB) Karsten Dambekalns, 2009-02-22 23:16

FLOW3_Documentation_v3.zip - Now with some more fonts tweaking (3.8 MB) Karsten Dambekalns, 2009-02-23 14:29

FLOW3_Documentation.pdf - Result of this with changed XML input (1 MB) Karsten Dambekalns, 2009-02-23 14:29

History

#1 Updated by Peter Beernink over 6 years ago

Using the script of Sebastian I've created a first PDF version of the FLOW3 documentation (based on r1700).
I'm not happy with the way the code examples are currently rendered, so that will be getting some extra attention.

#2 Updated by Sebastian Kurfuerst over 6 years ago

Hey Peter,

nice work so far! I think there are icons for "Note", "Warning", ..., which are still missing. Proboably it does not find these images.

Greets,
Sebastian

#3 Updated by Peter Beernink over 6 years ago

Added an updated version of the PDF (based on r1822).
In order to have the images being rendered correctly, I've added some additional attributes to the imagedata tags. See attached diff for the modifications, however, I do not know if they have any effect to the way the HTML is rendered on the flow3.typo3.org site.

The 'admon' images used are from the ubuntu-serverguide package.

#4 Updated by Peter Beernink over 6 years ago

Updated version of the PDF. The documentation now is based on r1890.

#5 Updated by Peter Beernink over 6 years ago

Attached all files used to render the last PDF.
The tarball contains the following files:
  • XSLT file to generate the .fo file
  • COnfiguration files
  • jar file for syntax highlighting functions
  • Shellscripts to generate the PDF file
  • SVG version of the FLOW3 logo

The last one is not used in the PDF files posted so far.

For more info on how to use it, please have a look at the README file.

#6 Updated by Karsten Dambekalns over 6 years ago

Currently index.xml is a book containing an info section and the sections (within a chapter grouping them). To be able to render a book and a part from the same documentation:

  • index.xml would be like it is now (defining a book). The sections in the current documentation would become chapters. An example of a "new" FLOW3 documentation is attached to this issue now.
  • when rendering a book containing multiple packages Part.xml from a package's documentation would be used. An example for such a file is included in the attached archive, this could/should(?) be generated automatically when rendering.

#7 Updated by Karsten Dambekalns over 6 years ago

Based on Peters work I invested some hours and pimped the documentation generation process:

  • no longer needed to adjust any paths
  • contains everything except fop, xsltproc, xmllint
  • using DocBook XSL-NS stylesheets (namespace-aware)
  • updated PHP highlighting, added YAML highlighting
  • syntax highlighting now with colors
  • some small changes to the render scripts
  • updated the README

Great results by now, I tested it with the updated documentation structure suggested in my earlier comment (which I will commit to SVN the next days).

#8 Updated by Karsten Dambekalns over 6 years ago

I tweaked a little more, now using the FreeMono font for code, as it has a glyph for the ↩ character I used for wrapping too long lines in code listings. I also added Share Bold, so that headings now use the font they should (previously there was a warning and the bold was substituted with the regular variant).

There is something flaky with the font handling, as sometimes Preview on the Mac display the headings wrong (a box per character), this disappears after reopening a few times and works fine in Adobe Reader. Using fop 0.95 seems to help...

For the attached PDF I used locally tuned XML in which I mostly fixed language attributes for the listings (quite some YAML was declared as PHP) and wrapped too long lines in code listings. Doing this manually is the best method for now, as it a) works and b) gives most control.

#9 Updated by Karsten Dambekalns about 6 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns

#10 Updated by Karsten Dambekalns over 5 years ago

  • % Done changed from 0 to 80

We have that for ages by now :)

It needs some more flexibility and has to be automated a little more, but we're on track.

#11 Updated by Karsten Dambekalns over 3 years ago

  • Status changed from Accepted to New
  • Assigned To deleted (Karsten Dambekalns)
  • % Done changed from 80 to 0

So, we are back at square one with reStructuredText. :)

Also available in: Atom PDF