Skip to content
Snippets Groups Projects
  1. Nov 19, 2020
  2. Nov 18, 2020
  3. Nov 17, 2020
  4. Oct 30, 2020
  5. Oct 23, 2020
    • Martyn Welch's avatar
      Align contribution process document · 2cf4b711
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      The contribution process document has some out of date sections, tweak
      these to make it aligned to current expectations:
      
      - Secure Boot document is now not a design document but an architectural
        document. Remove the reference as it's no longer helpful. Point to
        Concepts section instead.
      - Designs is a section that's being removed. Point to Architecture and
        Guides for current implementations.
      - We no longer tag releases manually, remove that as example of manual
        process.
      - There's much less need for OBS accounts make this clearer.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      2cf4b711
  6. Oct 22, 2020
  7. Oct 19, 2020
  8. Oct 15, 2020
  9. Oct 13, 2020
  10. Oct 12, 2020
  11. Oct 02, 2020
    • Martyn Welch's avatar
      Add index pages to official sections · 33729c52
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Add a basic description to the index page for each of the "official"
      sections (as laid out inthe websites README.md). This provides visitors to
      the site with some guidance as to what to expect to find in each section,
      somewhere to point out to related polices (such as the release schedule and
      flow from the releases section) and a way to add aliases (such as the
      missing alias to Guides for the "Guidelines" section that was found on the
      old wiki).
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      33729c52
  12. Sep 30, 2020
  13. Sep 28, 2020
  14. Sep 23, 2020
  15. Sep 22, 2020
  16. Sep 11, 2020
  17. Sep 10, 2020
  18. Sep 08, 2020
  19. Sep 03, 2020
    • Martyn Welch's avatar
      Update and classify a batch of design documents · 786fb549
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      The design documents imported from designs.apertis.org need to be
      classified and moved into the structure implemented for documents on the
      new website. The content of the documents also need minor edits to ensure
      a good look and feel as well as the addition of notes to explain the
      context of some documents (such as noting that certain concept documents
      have been implemented since they were written and when that occurred).
      
      This commit contains conversion of an initial batch of design documents.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      786fb549
  20. Sep 02, 2020
  21. Aug 27, 2020
  22. Aug 26, 2020
  23. Jul 29, 2020
    • Martyn Welch's avatar
      Fix up broken links · c7250de9
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      A number of broken links didn't match the patterns used for automated
      replacement. Fix up those that can be manually.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      c7250de9
    • Martyn Welch's avatar
      Updating old links · ee26b8cf
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      After moving the documents from designs.a.o to www.a.o, there were
      quite a few links from the designs.a.o docs pointing to wiki.a.o and
      quite a few links from www.a.o pointing to designs.a.o. Replace these
      links with Hugo ref shortcodes to avoid hammering the redirects.
      
      This was achieved with the following script:
      
      ```
      
      import os
      import re
      import sys
      import toml
      
      from urllib.parse import urlparse
      
      def get_aliases(filename):
          #print("%s: " % filename)
          with open(filename, 'r') as file:
              contents = file.read()
              if not contents[0:3] == "+++":
                  return
      
              if "_index.md" in filename:
                  filename = filename.strip(".")
              else:
                  filename = filename.split("/")[-1]
      
              data = toml.loads(contents.split("+++")[1])
      
              if not "aliases" in data.keys():
                  return
      
              for alias in data["aliases"]:
                  if "/old-wiki/" in alias:
                      wiki_aliases[alias.replace("/old-wiki/", "/")] = filename
      
                  if "/old-designs/" in alias:
                      # We're dropping the per-release links from designs.a.o, so match on shorter path
                      design_aliases[alias.replace("/old-designs/latest/", "/")] = filename
      
      def fix_link(url):
          link = url.group('link')
      
          url = urlparse(link)
      
          if url.netloc == "wiki.apertis.org":
              if url.path in wiki_aliases.keys():
                  url = url._replace(scheme="")
                  url = url._replace(netloc="")
                  url = url._replace(path=wiki_aliases[url.path])
                  link = " {{< ref \"%s\" >}} " % url.geturl()
      
          if url.netloc == "designs.apertis.org":
              # We're dropping the per-release links from designs.a.o, so match on shorter path
              path = "/%s" % url.path.split('/', 2)[-1]
              print(path)
              if path in design_aliases.keys():
                  url = url._replace(scheme="")
                  url = url._replace(netloc="")
                  url = url._replace(path=design_aliases[path])
                  link = " {{< ref \"%s\" >}} " % url.geturl()
      
          return "](%s)" % link
      
      def fix_ref(url):
          link = url.group('link')
      
          url = urlparse(link)
      
          if url.netloc == "wiki.apertis.org":
              if url.path in wiki_aliases.keys():
                  url = url._replace(scheme="")
                  url = url._replace(netloc="")
                  url = url._replace(path=wiki_aliases[url.path])
                  link = " {{< ref \"%s\" >}} " % url.geturl()
      
          if url.netloc == "designs.apertis.org":
              # We're dropping the per-release links from designs.a.o, so match on shorter path
              path = "/%s" % url.path.split('/', 2)[-1]
              print(path)
              if path in design_aliases.keys():
                  url = url._replace(scheme="")
                  url = url._replace(netloc="")
                  url = url._replace(path=design_aliases[path])
                  link = " {{< ref \"%s\" >}} " % url.geturl()
      
          return "]: %s" % link
      
      def correct_links(filename):
          #print("%s: " % filename)
          with open(filename, 'r+') as file:
              contents = file.read()
      
              if not contents[0:3] == "+++":
                  return
      
              fm = contents.split("+++")[1]
              doc = contents.split("+++",2)[2]
      
              # Hotdoc allows empty links like `[](url)`
              pattern = re.compile("\]\((?P<link>.*?)\)")
              doc = pattern.sub(fix_link, doc)
      
              pattern = re.compile("\]: (?P<link>.*)")
              doc = pattern.sub(fix_ref, doc)
      
              file.seek(0)
              file.truncate()
      
              file.write("+++")
              file.write(fm)
              file.write("+++")
              file.write(doc)
      
      wiki_aliases = {}
      design_aliases = {}
      
      for root, dirs, files in os.walk(sys.argv[1]):
          for file in files:
              if ".md" in file:
                  get_aliases("%s/%s" %(root, file))
      
      print("wiki_aliases:")
      print(wiki_aliases)
      print("design_aliases:")
      print(design_aliases)
      
      for root, dirs, files in os.walk(sys.argv[1]):
          for file in files:
              if ".md" in file:
                  correct_links("%s/%s" %(root, file))
      ```
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      ee26b8cf
  24. Jul 24, 2020
    • Martyn Welch's avatar
      Move contribution process from designs.a.o to policies · ab8bc548
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      We have a stub in guidelines for the contribution process. Move the
      content over from designs.a.o and move to policies.
      
      Add in alias for `old-designs` to record the location used on
      designs.a.o that we can be used once we've dropped all the contents
      of designs.a.o as a redirect to the website.
      
      Flag file to be generated as PDF since it's a document from
      designs.a.o.
      
      Remove `guidelines` from the main page as it's now empty.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      ab8bc548
    • Martyn Welch's avatar
      Move submission checklist from designs.a.o to policies · 7976200b
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      We have a stub in guidelines for the contribution checklist. Move the
      content over from designs.a.o and move to policies.
      
      Add in alias for `old-designs` to record the location used on
      designs.a.o that we can be used once we've dropped all the contents
      of designs.a.o as a redirect to the website.
      
      Flag file to be generated as PDF since it's a document from
      designs.a.o.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      7976200b
  25. Jul 01, 2020
  26. Jun 29, 2020
  27. Jun 26, 2020
Loading