Skip to content
Snippets Groups Projects
  1. Feb 20, 2021
  2. Dec 16, 2020
  3. Oct 22, 2020
  4. Oct 19, 2020
  5. Oct 13, 2020
  6. Oct 11, 2020
  7. Sep 30, 2020
  8. Sep 25, 2020
  9. Sep 21, 2020
    • Martyn Welch's avatar
      Don't add anchors to page titles · 932647cf
      Martyn Welch authored
      
      We are currently adding anchor links to all headings. This includes the
      page titles, which is the one heading to which we really don't need a
      link. The page title is also centered and the addition of the anchor
      causes the normally visible part of the title to be nudged to rendered off
      center. This is visually unappealing, so stop adding anchors to the page
      titles.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      932647cf
    • Martyn Welch's avatar
      Add AnchorJS to aid with linking to page fragments · 0b9c716d
      Martyn Welch authored
      
      After trying to manually create a link to a page section for the nth time,
      I finally scratched that itch and added AnchorJS to provide the links for
      us. This greatly simplifies the process for linking to sections of pages,
      especially useful for those not versed in digging around in the page
      source.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      0b9c716d
  10. Jul 24, 2020
    • Martyn Welch's avatar
      Ensure link anchors aren't obscured by the nav bar when used · 334c0498
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Hugo automatically generates IDs for each title when the HTML pages are
      generated. These IDs can be used as anchors in the document, so that we
      can provide URLs that jump to the specific title when the link is
      followed. Browsers will place the anchor at the top of the window,
      however we have a floating navigation bar there which results in the
      anchor being obscured, which can be a bit disorientating.
      
      Tweak the CSS to pad the top of the heading, but in a way that doesn't
      result in the heading being visibily spaced further from the previous
      text. Add override to main page heading to stop it being padded down
      the page.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      334c0498
  11. 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
  12. Jun 25, 2020
    • Martyn Welch's avatar
      Add ability to add notice blocks to markdown · 15f77bf9
      Martyn Welch authored
      
      Add Hugo shortcodes and CSS to Hugo theme to allow notice blocks to be
      added to the markdown. There are 4 types available:
      
      - warning
      - info
      - note
      - tip
      
      By adding the following hugo shortcode around some text a formatted box is
      added to the HTML output:
      
          {{% notice info %}}
          Text for notice
          {{% /notice %}}
      
      This will be useful for highlighting important information.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      15f77bf9
  13. May 28, 2020
  14. Apr 23, 2020
    • Martyn Welch's avatar
      Tweak site indexing to include all pages · a76b3704
      Martyn Welch authored
      
      The current search indexing only looks at "regular pages". This ensures
      that a lot of the content is indexed and avoids the indexing of taxonomies
      and other broadly irrelevant types of content in the index. However, it
      does result in certain lists pages not being included in the index that
      may contain valuable information.
      
      The value of having the list pages indexed currently outweights the impact
      of potentially including other tertiary data in the index, for a start
      we're not currently using taxonomies. This should be re-evaluated as and
      when we're able to spend time better structuring the website.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      a76b3704
  15. Apr 09, 2020
  16. Mar 26, 2020
    • Martyn Welch's avatar
      Fixing URL used for search · bf10f8b0
      Martyn Welch authored
      
      The current search is using the URL "<site>/search", which is getting
      redirected to the true location "<site>/search/". When running through
      Hugo, the server it runs on localhost is maintaining the GET request
      across the redirect, the hosting isn't.
      
      The easiest (and arguably best) way or dealing with this is to correct the
      URL so that no redirect is needed.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      bf10f8b0
  17. Mar 25, 2020
  18. Jan 30, 2020
  19. Jan 28, 2020
  20. Jan 16, 2020
  21. Jan 15, 2020
  22. Jan 14, 2020
  23. Mar 06, 2019
Loading