Skip to content
Snippets Groups Projects
  1. Jul 29, 2020
    • Martyn Welch's avatar
      Unbreak page because of spurious code block deliminator · 35d4de00
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      35d4de00
    • Martyn Welch's avatar
      Convert hotdoc code blocks · 1495ab3f
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Hotdoc allows "---" to be used for a code block, this is not supported
      by Hugo, it needs to use "```". Convert uses of the former with:
      
        sed 's/^---$/```/' -i *
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      1495ab3f
    • Martyn Welch's avatar
      Convert hotdoc metadata to Hugo frontmatter · 6858b920
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Convert the existing metadata stored at the front of each file to
      frontmatter formatted for Hugo:
      
       - Remove authors as we don't have an equivalent for that in Hugo
       - Add in fields that the existing metadata doesn't have
       - Include aliases to allow us to point to the new pages from a
         redirect on designs.apertis.org
       - Ensure we have a title (based on filename if one not present)
      
      All frontmatter created in toml format to stay consistent with existing
      documents.
      
      Converted using the following python script:
      ```
      
      import os
      import re
      import sys
      import toml
      import yaml
      
      for filename in os.listdir(sys.argv[1]):
          print("%s: " % filename)
          with open(filename, 'r+') as file:
              contents = file.read()
              if contents[0:3] == "+++":
                  # We have toml
                  data = toml.loads(contents.split("+++")[1])
                  doc = "+++".join(contents.split("+++")[2:])
              elif contents[0:3] == "---":
                  # We have yaml
                  data = yaml.load(contents.split("---")[1])
                  doc = "---".join(contents.split("---")[2:])
              else:
                  # No frontmatter
                  data = {}
                  doc = contents
      
              if not "title" in data.keys():
                  data["title"] = filename.split(".")[0].replace('_', ' ').capitalize()
      
              data["weight"] = 100
              data["aliases"] = ["/old-designs/latest/%s" % filename.replace(".md", ".html")]
      
              data["outputs"] = ["html", "pdf-in"]
      
              if "authors" in data.keys():
                  del data["authors"]
      
              file.seek(0)
              file.truncate()
      
              file.write("+++\n")
              file.write(toml.dumps(data))
              file.write("+++")
              file.write(doc)
      ```
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      6858b920
    • Martyn Welch's avatar
      Manual tweaks to add titles · 04408e7f
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Some of the pages lack titles, others are just menu items we don't
      need. Tweak the pages with initial pass to give them all titles and
      remove stuff we don't need (we will be sorting the designs anyway).
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      04408e7f
    • Martyn Welch's avatar
      Add media from designs.apertis.org · 13f39020
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Copy all the media files from the designs.apertis.org website under
      "images" where we currently have all the website media.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      13f39020
    • Martyn Welch's avatar
      Add designs from designs.a.o · c21b22f9
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Add the designs from designs.a.o with the minimum changes to get the
      site to build. This essentially required to trailing marker for the
      metadata to be changed from "..." to "---".
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      c21b22f9
  2. Jul 27, 2020
  3. Jul 24, 2020
  4. Jul 19, 2020
  5. Jul 15, 2020
  6. Jul 14, 2020
  7. Jul 13, 2020
  8. Jul 11, 2020
  9. Jul 02, 2020
    • Martyn Welch's avatar
      Update the README.md · 0c2bbecd
      Martyn Welch authored
      
      The README.md is currently the stock one added by the gitlab Hugo
      template. Make the README.md more relevant for the Apertis website and
      provide some information on how to cause PDFs to be generated.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      0c2bbecd
    • Martyn Welch's avatar
      Tag existing concept documents for PDF generation · 78025790
      Martyn Welch authored
      
      We currently have no PDFs being generated. Add the required frontmatter
      to the existing concept documents to cause them to have PDFs generated.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      78025790
    • 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
  10. Jul 01, 2020
Loading