├── .gitignore ├── Makefile ├── README.md └── markdown ├── 0.7 ├── basic-usage.md ├── beta-channel.md ├── commands.md ├── configuration.md ├── debugging.md ├── distro-compatibility.md ├── extending.md ├── feature-compatibility.md ├── index.md ├── installation-instructions.md ├── known-issues.md ├── pmm-beta.md ├── poki.nav └── workflows.md ├── 0.8 ├── index.md ├── naga.nav └── plans.md ├── 1.0alpha1 ├── appa.nav ├── bedrock-scripts-1.0alpha1.tar.gz ├── capchroot-0.1-static.patch ├── clients.html ├── commands.html ├── configure.html ├── index.html ├── index.md ├── install.html ├── knownissues.html └── systemrequirements.html ├── 1.0alpha2 ├── backports.html ├── bedrock-scripts-1.0alpha1.tar.gz ├── bedrock-userland-1.0alpha2.tar.gz ├── capchroot-0.1-static.patch ├── changelog.html ├── clients.html ├── commands.html ├── configure.html ├── index.md ├── install.html ├── knownissues.html ├── momo.nav ├── systemrequirements.html └── upgrade.html ├── 1.0alpha3 ├── backports.md ├── bedrock-userland-1.0alpha3.tar.gz ├── bosco.nav ├── busybox-test-1.0alpha3.sh ├── changelog.md ├── clients.md ├── commands.md ├── configure.md ├── index.md ├── install.md ├── knownissues.md ├── plans.html ├── systemrequirements.md ├── troubleshooting.md └── upgrade.md ├── 1.0alpha4 ├── changelog.md ├── clients.md ├── commands.md ├── configure.md ├── flopsie.nav ├── index.md ├── install.md ├── knownissues.md ├── plans.md ├── syslinux.md ├── systemrequirements.md └── troubleshooting.md ├── 1.0beta1 ├── changelog.md ├── clients.md ├── commands.md ├── concepts.md ├── configure.md ├── hawky.nav ├── index.md ├── install.md ├── knownissues.md ├── plans.md ├── syslinux.md ├── systemrequirements.md └── troubleshooting.md ├── 1.0beta2 ├── app-menu.png ├── brn-handing-off-control.png ├── brn.png ├── changelog.md ├── commands.md ├── concepts.md ├── configure.md ├── features.md ├── grub.png ├── icons.png ├── index.md ├── install.md ├── knownissues.md ├── man-page.png ├── nyla.nav ├── plans.md ├── quickstart.md ├── strata.md ├── syslinux.md ├── systemrequirements.md ├── three-video-players.png ├── troubleshooting.md ├── ubuntu-desktop.png └── ubuntu-login.png ├── bedrock.css ├── contributing.md ├── faq.md ├── favicon.png ├── footer ├── header ├── home.nav ├── index.md ├── introduction.md ├── media ├── bedrocklinux-colug.pdf ├── bedrocklinux-olf.pdf ├── bedrocklinux-osu.pdf ├── index.md └── media.nav ├── news.md ├── releases.md └── tipping.md /.gitignore: -------------------------------------------------------------------------------- 1 | html 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Bedrock Linux Website Generator Makefile 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # version 2 as published by the Free Software Foundation. 6 | # 7 | # Copyright (c) 2012-2020 Daniel Thau 8 | 9 | OBJECTS=$(shell find markdown/ -type f ! -name "header" ! -name "footer" ! -name "*.nav" | sed -e 's/^markdown/html/g' -e 's/[.]md/.html/g') html/atom.xml 10 | 11 | all: check-dependencies symlinks $(OBJECTS) 12 | 13 | clean: 14 | rm -rf ./html/* 15 | 16 | check-dependencies: 17 | @ command -v markdown >/dev/null 2>&1 || (echo "Missing dependency: markdown" ; false) 18 | 19 | # make resolves symlinks; can't just have them be targets directly. 20 | symlinks: 21 | @ if [ "$$(readlink html/0.7/compatibility-and-workarounds.html)" != "feature-compatibility.html" ]; then \ 22 | echo rm -f html/0.7/compatibility-and-workarounds.html; \ 23 | rm -f html/0.7/compatibility-and-workarounds.html; \ 24 | fi 25 | @ if [ "$$(readlink html/0.7/distro-support.html)" != "distro-compatibility.html" ]; then \ 26 | echo rm -f html/0.7/distro-support.html; \ 27 | rm -f html/0.7/distro-support.html; \ 28 | fi 29 | @ if ! [ -h html/0.7/compatibility-and-workarounds.html ]; then \ 30 | mkdir -p html/0.7; \ 31 | echo ln -s feature-compatibility.html html/0.7/compatibility-and-workarounds.html; \ 32 | ln -s feature-compatibility.html html/0.7/compatibility-and-workarounds.html; \ 33 | fi 34 | @ if ! [ -h html/0.7/distro-support.html ]; then \ 35 | mkdir -p html/0.7; \ 36 | echo ln -s distro-compatibility.html html/0.7/distro-support.html; \ 37 | ln -s distro-compatibility.html html/0.7/distro-support.html; \ 38 | fi 39 | 40 | # Generate atom.xml 41 | html/atom.xml: html/news.html 42 | @ echo "Creating $@" 43 | @ awk -F'"' ' \ 44 | BEGIN { \ 45 | while ((getline < "html/news.html") > 0) { \ 46 | if (last_update == "" && /

[0-9-]*<\/small><\/p>/) { \ 47 | gsub(/[^0-9-]/, ""); \ 48 | last_update = $$0; \ 49 | continue \ 50 | } \ 51 | if (/

"; \ 56 | print ""; \ 57 | print ""; \ 58 | print ""; \ 59 | print "\tBedrock Linux"; \ 60 | print "\t"; \ 61 | print "\t"; \ 62 | print "\thttp://bedrocklinux.org/atom.xml"; \ 63 | print "\t" last_update ""; \ 64 | print ""; \ 65 | } \ 66 | /^

$$/ { \ 67 | url = "http://bedrocklinux.org/news.html#"$$2; \ 68 | title = substr($$3, 2, length($$3)-6); \ 69 | if (in_content) { \ 70 | print "\t\t"; \ 71 | print "\t" \ 72 | } \ 73 | in_content=0 \ 74 | } \ 75 | !/^$$/ && in_content { \ 76 | gsub(//, "\\>", $$0); \ 78 | print "\t\t\t" $$0 \ 79 | } \ 80 | /^

[0-9-]*<\/small><\/p>/ { \ 81 | date = substr($$0, 11, 10); \ 82 | print "\t"; \ 83 | print "\t\thttp://bedrocklinux.org/news/" (count--) ""; \ 84 | print "\t\t" title ""; \ 85 | print "\t\t"; \ 86 | print "\t\t" date ""; \ 87 | print "\t\t"; \ 88 | in_content = 1 \ 89 | } \ 90 | END { \ 91 | print "" \ 92 | } \ 93 | ' html/news.html > html/atom.xml 94 | 95 | # Translate markdown 96 | html/%.html: markdown/%.md markdown/header markdown/footer markdown/*.nav markdown/*/*.nav 97 | @ echo "Creating $@" 98 | @ # Ensure containing directory exists 99 | @ mkdir -p $$(dirname $@) 100 | @ # Create header 101 | @ sed \ 102 | -e "s@TITLEGOESHERE@$$(sed -n 's/^Title:[ ]\+//p' $<)@" \ 103 | -e "s@RELATIVEPATH@$$(dirname $@ | sed -e 's/[^\/]\+/../g' -e 's/^.//')@" \ 104 | markdown/header > $@ 105 | @ # Create naviation bar 106 | @ markdown $$(dirname $<)/$$(sed -n 's/^Nav:[ ]\+//p' $<) | sed 's/

    /