Skip to content
Snippets Groups Projects
  1. Aug 05, 2020
    • Martyn Welch's avatar
      Convert image paths · 876f30c7
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      The PDF generator can't find the images as the paths are relate to
      where Hugo will place them on the website. Tweak the path to to point
      to the images. We need to convert the SVG files into something the next
      step can handle. Don't leave them in the static directory in case this
      results in them being exported to the website.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      876f30c7
  2. Jul 02, 2020
    • Martyn Welch's avatar
      Add functionality to generate simplified HTML for PDF generation · c753100f
      Martyn Welch authored
      
      Apertis currently has a large number of concept documents on
      designs.apertis.org. To improve branding, searchability and reduce
      maintenance, it would be better to have all these documents under the
      main website. One feature that the website is currently missing that is
      provided on designs.a.o is PDF generation, which is used when reviewing
      concepts with Bosch.
      
      Carry over the PDF generation functionality from designs.a.o and
      implement a mechanism for generating PDFs from the Hugo site on
      www.apertis.org so that we can move documents over from designs.a.o
      without loosing needed functionality.
      
      To do this we will generate simplfied HTML documents, with the
      extension `.pdf-in` when documents require this to be generated in
      their frontmatter, for example to generate html and the simplified HTML
      add:
      
          outputs = ["html", "pdf-in"]
      
      The create-pdf script will be run for each of these via the CI pipeline
      which will use a lightly modified version of the tooling used for
      designs.a.o to create the PDF and place it back into the site.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      c753100f
Loading