commit: c7a8f71d1700556acf6d466cd7af198001b60455
parent 328772475a64a90f27e47fdd9febd15c961de969
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 25 Nov 2020 03:05:55 +0100
index: Migrate to SHTML
Diffstat:
9 files changed, 79 insertions(+), 78 deletions(-)
diff --git a/_includes/nav.html b/_includes/nav.html
@@ -1,19 +0,0 @@
-<h2>Overview</h2>
-
-<ul>
- <li><a href="{{ site.baseurl }}/index.html">Introduction</a></li>
- <li><a href="{{ site.baseurl }}/overview.html">LitePub Overview</a></li>
- <li><a href="{{ site.baseurl }}/ap-compat.html">LitePub and ActivityPub</a></li>
-</ul>
-
-<h2>Core Specification</h2>
-
-<ul>
- <li><a href="{{ site.baseurl }}/spec/index.html">LitePub Living Standard</a></li>
-</ul>
-
-<h2>Extensions</h2>
-
-<ul>
- <li><a href="{{ site.baseurl }}/lep/index.html">Index of proposed LitePub extensions</a></li>
-</ul>
diff --git a/_includes/nav.md b/_includes/nav.md
@@ -1 +0,0 @@
-## Nav
diff --git a/assets/css/main.css b/assets/css/main.css
@@ -1,26 +0,0 @@
-body {
- display: flex;
- flex-direction: row;
- font-family: sans-serif;
- max-width: 100em;
-}
-
-nav {
- flex: 1;
- max-width: 20em;
- border-right: 1px solid #999;
- height: 100%;
- margin-right: 1em;
-}
-
-.content {
- flex: 2;
-}
-
-.full-width {
- width: 100%;
-}
-
-th {
- text-align: left;
-}
diff --git a/assets/main.css b/assets/main.css
@@ -0,0 +1,27 @@
+body {
+ display: flex;
+ flex-direction: row;
+ font-family: sans-serif;
+}
+
+nav {
+ flex: 1;
+ max-width: 20em;
+ border-right: 1px solid #999;
+ height: 100%;
+ margin-right: 1em;
+ padding-right: 0.5em;
+}
+
+main {
+ flex: 2;
+ max-width: 80em;
+}
+
+.full-width {
+ width: 100%;
+}
+
+th {
+ text-align: left;
+}
diff --git a/index.md b/index.md
@@ -1,32 +0,0 @@
----
-title: "LitePub protocol suite"
----
-
-LitePub is a suite of protocols which provide a federated social network. They constitute various profiles
-of the [ActivityPub][ap] specification. It is intended that LitePub implementations provide compatibility
-with [ActivityPub][ap], but there are some core behavioral differences.
-
- [ap]: https://www.w3.org/TR/activitypub/
-
-
-## LitePub core
-
-New implementors of LitePub are encouraged to begin by reading the [high-level LitePub overview](/litepub/overview.html),
-as well as reading about the specific [LitePub profiles](/litepub/profiles.html) which are composed using the
-[LitePub core vocabulary](/litepub/vocabulary.html).
-
-ActivityPub implementors looking to improve compatibility with the LitePub ecosystem should read the
-[LitePub for ActivityPub implementors](/litepub/ap-compat.html) document.
-
-
-## LitePub discovery
-
-The primary method of interaction with LitePub services is through an `inbox` URI, but discovery of that
-`inbox` URI is not human friendly. Accordingly, supporting the [LitePub discovery](/litepub/discovery.html)
-WebFinger profile will help to provide a mapping of email-style addresses to `inbox` URIs.
-
-
-## LitePub implementations
-
- * [Pleroma](https://pleroma.social)
- * [PixelFed](https://pixelfed.org)
diff --git a/index.shtml b/index.shtml
@@ -0,0 +1,21 @@
+<!--#set var="title" value='LitePub protocol suite'--><!--#include file="templates/header.shtml" -->
+<main>
+<h1>LitePub protocol suite</h1>
+<p>LitePub is a suite of protocols which provide a federated social network. They constitute various profiles of the <a href="https://www.w3.org/TR/activitypub/">ActivityPub</a> specification. It is intended that LitePub implementations provide compatibility with <a href="https://www.w3.org/TR/activitypub/">ActivityPub</a>, but there are some core behavioral differences.</p>
+
+<h2>LitePub core</h2>
+<p>New implementors of LitePub are encouraged to begin by reading the <a href="/litepub/overview">high-level LitePub overview</a>, as well as reading about the specific <a href="/litepub/profiles">LitePub profiles</a> which are composed using the <a href="/litepub/vocabulary">LitePub core vocabulary</a>.</p>
+<p>ActivityPub implementors looking to improve compatibility with the LitePub ecosystem should read the <a href="/litepub/ap-compat">LitePub for ActivityPub implementors</a> document.</p>
+
+<h2>LitePub discovery</h2>
+<p>The primary method of interaction with LitePub services is through an <code>inbox</code> URI, but discovery of that <code>inbox</code> URI is not human friendly. Accordingly, supporting the <a href="/litepub/discovery">LitePub discovery</a> WebFinger profile will help to provide a mapping of email-style addresses to <code>inbox</code> URIs.</p>
+
+<h2>LitePub implementations</h2>
+<ul>
+ <li><a href="https://pleroma.social/">Pleroma</a></li>
+ <li><a href="https://pixelfed.org/">PixelFed</a></li>
+ <li><a href="https://git.pleroma.social/pleroma/relay/">ActivityRelay</a></li>
+ <li><a href="mailto:root+implementations@litepub.social?subject=New+LitePub+Implementation">Your own?</a></li>
+</ul>
+</main>
+<!--#include file="templates/footer.shtml" -->
diff --git a/templates/footer.shtml b/templates/footer.shtml
@@ -0,0 +1 @@
+</body></html>+
\ No newline at end of file
diff --git a/templates/header.shtml b/templates/header.shtml
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+ <head>
+ <meta charset="utf-8"/>
+<!--#if expr="${title}" --> <title><!--#echo var="title" --> — LitePub</title><!--#endif -->
+ <link rel="stylesheet" type="text/css" href="/assets/main.css?serial=2020220701"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="vcs-git" href="https://hacktivis.me/git/litepub.social" />
+ </head>
+ <body>
+ <!--#include file="/templates/nav.html"-->
diff --git a/templates/nav.html b/templates/nav.html
@@ -0,0 +1,18 @@
+<nav>
+ <h2>Overview</h2>
+ <ul>
+ <li><a href="/litepub/index">Introduction</a></li>
+ <li><a href="/litepub/overview">LitePub Overview</a></li>
+ <li><a href="/litepub/ap-compat">LitePub and ActivityPub</a></li>
+ </ul>
+
+ <h2>Core Specification</h2>
+ <ul>
+ <li><a href="/litepub/spec/index">LitePub Living Standard</a></li>
+ </ul>
+
+ <h2>Extensions</h2>
+ <ul>
+ <li><a href="/litepub/lep/index">Index of proposed LitePub extensions</a></li>
+ </ul>
+</nav>