- Feb 02, 2021
-
-
Emanuele Aina authored
Fix a broken link by pointing it to the page describing how to extend the data with private branches. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Spelling `camelCase` in snakeCase is confusing, so really use `CamelCase`. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Fix a link by no longer escaping special character since Hugo is smart enough to not need that. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
-
- Jan 30, 2021
-
-
Signed-off-by:
Tino Lippold <tino.lippold@de.bosch.com>
-
- Jan 24, 2021
-
-
Whilst reworking the glossary, a number of layout improvements and broken links were identified in the documents which the glossary point to. Fix these minor issues. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Jan 23, 2021
-
-
The documented update mechanisms do not actually include the process used currently for online updates. Add a section providing a basic description of the currently implemented strategy. Whilst here, rework the least visually conformant image to fit better and run the document though a spell checker. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Jan 22, 2021
-
-
Martyn Welch authored
The test data based concept documents describe a test system that was not implemented. Remove most of the bits that are no longer relevant and move the updated documents to the QA section. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
Martyn Welch authored
These documents appear to be concepts that are still open (though some quite stale). Move them to concepts to get the designs section removed soon. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
Walter Lozano authored
Fix several link issues found in application-layout. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Dec 17, 2020
-
-
Denis Pynkin authored
Described the switching between ostree branches (aka "upgrade major version") during offline upgrades. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- Dec 02, 2020
-
-
Denis Pynkin authored
Starting version v2020.7 `libostree` upstream provides deltas with [signed metadata](https://github.com/ostreedev/ostree/pull/1985 ) allowing to validate the creator of the delta file itself, not only the commit inside. Add information about affecting this upstream change to Apertis. Signed-off-by:
Denis Pynkin <denis.pynkin@collabora.com>
-
- Oct 22, 2020
-
-
The persistent workspace documentation is currently in the SDK usage document. The usage document covers some very basic usage, whilst the persistent workspace is a little bit more of an advanced topic. Split it out into its own document and move both to guides. Additionally the design document is still present for the persistent workspace feature. This is now redundant since the design has been implemented. Move the limited amount of pertanent information from the design document to the guide and remove the design document to avoid confusion. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Oct 13, 2020
-
-
Move documents out of designs and into more suitable locations following the layout guidelines. Perform some minor edits to correct typos and remove unneeded titles. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Oct 12, 2020
-
-
Ritesh Raj Sarraf authored
Signed-off-by:
Ritesh Raj Sarraf <ritesh.sarraf@collabora.com>
-
- Sep 23, 2020
-
-
This document describes how we built images on Jenkins, but we have now largely moved away from it in favor of GitLab CI/CD. The README in the infrastructure/apertis-image-recipes> project describes the current setup closer to the actual code. Keep the document around since v2019 and v2020 are still officially on Jenkins and old release notes still point here. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Now that we have largely moved away from Jenkins to GitLab CI/CD the document describing the benefits of using Docker with Jenkins no longer add much value. The switch to Docker has proved immensely useful and has been a fundamental piece for our ability to move to GitLab CI/CD, and in 2020 Docker is widespread enough in the industry that there's no longer a real need for Apertis to rehash the benefits it brings. Let's drop the document now that it has been fully implemented and that we moved the CI/CD architecture even further, making the document obsolete. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Martyn Welch authored
The license expectations document is a little out of date. Tweak it a bit and move it along with the license-exceptions document to policies. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Sep 22, 2020
-
-
This concept document describes a possible approach to closing the CI loop using Jenkins. Apertis is moving away from the use of Jenkins and so this document is now defunct. Remove it. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
The selection of images as defined for the v2019 release has been used for a number of releases. This is no longer an open concept, add the documentation to the images page and remove the concept document. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
The license-validation document covers the same ground as the first portion of the automated license compliance documentation. Drop it to save duplication of information. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Sep 03, 2020
-
-
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:
Martyn Welch <martyn.welch@collabora.com>
-
Got out of step whilst adding creation dates to designs and failed to test properly. A stray space is stopping the dates from being parsed. Remove the space. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Aug 27, 2020
-
-
Martyn Welch authored
The old designs.a.o site holds versioned copies of the designs. We are not going to present these any more, so where appropriate, link to the latest copy of the document rather than returning 404. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Aug 26, 2020
-
-
Martyn Welch authored
The metadata in each file on designs.apertis.org didn't contain a creation date, however this is the primary means that we are ordering the documents by on the new Apertis website so that the newer documents are listed first. Whilst the documents don't contain a creation date, they are stored in a git repository that can provide us with this information. Add the retrieved dates into the front matter. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
We are using Hugo's "ref" shortcode for links on the website as this helps to ensure that our links are valid. A number of links that aren't using this tool have been identified, fix them and the resulting bad page links found un upstreaming.md. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
A number of documents had previously been copied over from designs.a.o. Tweak the contribution process document to correct broken titling (discovered during comparison) and remove duplicates. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Aug 06, 2020
-
-
This patch fixes a few typos and minor issues and add a concrete example of how to reproduce the build. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
- Aug 05, 2020
-
-
A mistake whilst scripting replacements resulted in lines with 3 characters being replaced and later removed. Fix these errors. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
Some of the image links were badly tweaked, resulting in the images not being found. Correct the links. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
- Jul 29, 2020
-
-
A number of broken links didn't match the patterns used for automated replacement. Fix up those that can be manually. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
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:
Martyn Welch <martyn.welch@collabora.com>
-
A number of broken links remained after scripted conversion and a number of spurious code blocks were found in the docs. Clean these up so that the documents render correctly. Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-
A lot of the links in the imported designs are broken: - HotDoc allowed a `[][link]` format that Hugo doesn't understand - HotDoc allowed relative links without text, which Hugo doesn't handle - The location of the images and other media has changed - The format used for internal page references has is different Additionally, fix up touched links to other Apertis pages to use the Hugo "ref" shortcode, which reduces the risk of leaving hanging links. Conversion completed with the following python script: ``` import os import re import sys def url_munge(match): url = match.group('url').strip('.') if url[0] != "/": url = "/%s" % url url = url.replace("media", "images") link = ("" % url) return link def link_munge(match): link = match.group('link') new = link.replace("(", "") new = new.replace(")", "") new = new.replace("`", "") new = new.replace("?", "") new = new.replace(":", "") new = new.replace(",", "") new = new.replace("–", "") new = new.replace("“", "") new = new.replace("”", "") new = new.replace(".", "") new = new.replace(" ", "-") new = new.lower() new = (" [%s]( {{< ref \"#%s\" >}} )" % (link, new)) return new def link_munge_2(match): link = match.group('link') new = link.replace("#", "") new = new.replace("-", " ") new = new.replace(".md", "") if not "http" in link: link = " {{< ref \"%s\" >}} " % link new = ("[%s](%s)" % (new, link)) return new for filename in os.listdir(sys.argv[1]): #print("%s: " % filename) with open(filename, 'r+') as file: contents = file.read() # Hotdoc uses `[][Internal Title]` for internal links whilst Hugo uses `[](#internal-title)` pattern = re.compile("\[\]\[(?P<link>.*?)\]") contents = pattern.sub(link_munge, contents) # Hotdoc allows empty links like `[](url)` pattern = re.compile("[^!]\[\]\((?P<link>.*?)\)") contents = pattern.sub(link_munge_2, contents) # Media links not working pattern = re.compile("!\[\]\((?P<url>.*?)\)") contents = pattern.sub(url_munge, contents) file.seek(0) file.truncate() file.write(contents) ``` Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
-