Skip to content
Snippets Groups Projects
  1. Dec 24, 2020
  2. Dec 10, 2020
  3. Dec 03, 2020
  4. Nov 27, 2020
  5. Nov 19, 2020
  6. Nov 18, 2020
  7. Nov 16, 2020
  8. Nov 02, 2020
  9. Oct 22, 2020
  10. Oct 19, 2020
  11. Sep 28, 2020
  12. Sep 22, 2020
  13. Aug 31, 2020
  14. Aug 18, 2020
  15. Jul 29, 2020
    • 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
  16. 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
  17. Jul 13, 2020
    • Martyn Welch's avatar
      Remove guidelines index page. · 98036e9f
      Martyn Welch authored and Emanuele Aina's avatar Emanuele Aina committed
      
      The mainly lists the pages found under `guidelines/`, as the hugo site
      now automatically lists these. The rest of the information on this page
      is also either broadly out of date or of negligable value. Remove the
      index completely as we will be removing the guidelines section anyway.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      98036e9f
  18. Jul 01, 2020
  19. Jun 30, 2020
  20. Jun 29, 2020
  21. Jun 26, 2020
  22. Jun 19, 2020
  23. Jun 16, 2020
  24. Jun 09, 2020
  25. Jun 01, 2020
    • Martyn Welch's avatar
      Remove "documentation" page · 3c3ef64c
      Martyn Welch authored
      
      Most of the docs are under the "docs" directory. Whilst the "docs" still
      need to be sorted into the new categories, by moving the remaining
      document not in this directory into it and patching up links, we can
      remove the documentation page. Hugo automatically creates an index page
      for us, so this simplifies the website a little with no real loss.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      3c3ef64c
    • Martyn Welch's avatar
      Move existing concept design related documentation to concepts · ed098e3f
      Martyn Welch authored
      
      We plan to move the concepts from designs.a.o to the website. To lay the
      foundations for this move, move documentation that was on the old wiki and
      referenced from designs.a.o into `concepts/`. As these were referenced by
      the designs, take them to be of equal importance to that information.
      
      Add an index page that briefly describes what the concepts constitute,
      basically topics that have been researched but not necessarily
      implemented. Fix up any links that pointed to the location of the old
      "concept designs".
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      ed098e3f
  26. May 28, 2020
  27. May 11, 2020
    • Martyn Welch's avatar
      Update versions on website, simplify access to release notes and schedules · 0a4d0da3
      Martyn Welch authored
      
      The main page of the Apertis website was pointing at release schedules
      of releases that had already been released and not pointing at the
      currently released versions of Apertis. Whilst remedying this it became
      apparent that we are storing the "current" versions in 3 different places
      thus increasing the likelyhood that one will be missed on any update.
      
      So:
      - Merge the "release notes" and "release schedules" pages into a unified
        release page
      - Point to this unified page and the current releases on the main page
      - Update links as appropriate
      - Add missing release schedules for next releases (with TBD dates for now)
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      0a4d0da3
  28. Feb 07, 2020
  29. Jan 30, 2020
  30. Jan 29, 2020
Loading