Skip to content

Commit d3ee698

Browse files
authored
Merge pull request #143 from joshuagl/joshuagl/bikeshed-initial
Initial conversion of the specification to bikeshed flavoured Markdown
2 parents fd85a8a + 9d21a28 commit d3ee698

File tree

5 files changed

+1527
-1327
lines changed

5 files changed

+1527
-1327
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tuf-spec.html

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SHELL=/bin/bash -o pipefail
2+
.PHONY: local
3+
4+
local: tuf-spec.md
5+
bikeshed spec tuf-spec.md tuf-spec.html

check_release.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030

3131
SPEC_NAME = "tuf-spec.md"
3232

33-
LAST_MODIFIED_PATTERN = "Last modified: **%d %B %Y**\n"
34-
LAST_MODIFIED_LINENO = 3
33+
LAST_MODIFIED_PATTERN = "Date: %Y-%m-%d\n"
34+
LAST_MODIFIED_LINENO = 6
3535

36-
VERSION_PATTERN = r"^Version: \*\*(\d*)\.(\d*)\.(\d*)\*\*$"
37-
VERSION_LINENO = 5
36+
VERSION_PATTERN = r"^Text Macro: VERSION (\d*)\.(\d*)\.(\d*)$"
37+
VERSION_LINENO = 19
3838

3939
class SpecError(Exception):
4040
"""Common error message part. """

header.include

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5+
<title>[TITLE]</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<style data-fill-with="stylesheet">
8+
</style>
9+
</head>
10+
<body class="h-entry">
11+
<div class="head">
12+
<p data-fill-with="logo"></p>
13+
<h1 id="title" class="p-name no-ref">[TITLE]</h1>
14+
<h2 id="subtitle" class="no-num no-toc no-ref"> Version: [VERSION] <br/>
15+
Last modified: <time class="dt-updated" datetime="[ISODATE]">[DATE]</time></h2>
16+
<div data-fill-with="spec-metadata"></div>
17+
<div data-fill-with="warning"></div>
18+
<p class='copyright' data-fill-with='copyright'></p>
19+
<hr title="Separator for header">
20+
</div>
21+
22+
<div data-fill-with="at-risk"></div>
23+
24+
<nav data-fill-with="table-of-contents" id="toc"></nav>
25+
<main>

0 commit comments

Comments
 (0)