Skip to content

Commit 32c7518

Browse files
committed
DOC: new build system, add template
1 parent 125ad30 commit 32c7518

File tree

13 files changed

+670
-48
lines changed

13 files changed

+670
-48
lines changed

_build/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ $(out)/reference2/%.html: $(out)/reference1/%.html $(bas)
4141

4242
$(out)/reference3/%.html: $(out)/reference2/%.html
4343
$(mkdir)
44-
$(sbasic) $(out)/html.bas $< > $@
44+
$(sbasic) $(out)/sitepage.bas $< > $@
4545

4646
all: $(reference)
4747
@mkdir -p ../reference
4848
$(sbasic) deploy.bas
4949
$(sbasic) $(out)/reference.bas > $(out)/reference.html
50-
$(sbasic) $(out)/html.bas $(out)/reference.html > ../reference/index.html
50+
$(sbasic) $(out)/sitepage.bas $(out)/reference.html > ../reference/index.html
5151

5252
clean:
5353
rm -rf $(out) *.sbu

_build/includes/footer.html

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
1-
<footer class="site-footer">
2-
<div class="wrapper">
3-
<h2 class="footer-heading">{{ site.title }}</h2>
4-
<div class="footer-col-wrapper">
5-
<div class="footer-col footer-col-1">
6-
<ul class="contact-list">
7-
<li>{{ site.title }}</li>
8-
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
9-
</ul>
10-
</div>
11-
<div class="footer-col footer-col-2">
12-
<ul class="social-media-list">
13-
<li>
14-
<a href="http://smallbasic.sourceforge.net"><span class="icon icon--github">{% include icon-home.svg %}</span>Home</a>
15-
</li>
16-
<li>
17-
<a href="https://github.com/smallbasic"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">Source</span></a>
18-
</li>
19-
</ul>
20-
</div>
21-
<div class="footer-col footer-col-3">
22-
<p>{{ site.description }}</p>
23-
</div>
1+
<div class="pagefooter">
2+
This page was last edited on {% print DATE() %} | Markdown pages processed with <a href="https://pandoc.org/" _target="_new" rel="nofollow">Pandoc</a> | Template by <a href="http://html5-templates.com/" target="_new" rel="nofollow">HTML5 Templates</a>
243
</div>
254
</div>
26-
</footer>
5+
</div>
6+

_build/includes/head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
<title>{{ page.title }}</title>
66
<meta name="description" content="{{ page.help }}">
7-
<link rel="stylesheet" href="{{ "/css/main.css" }}">
87
<link rel="canonical" href="{{ page.url }}">
98
<link rel="keywords" href="{{ page.title }}">
109
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" }}">
10+
<link rel="stylesheet" href="/css/style.css">
11+
<link rel="icon" type="image/png" href="images/favicon.png">
1112
</head>

_build/includes/header.html

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
1-
<header class="site-header">
2-
<div class="wrapper">
3-
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
4-
<nav class="site-nav">
5-
<a href="#" class="menu-icon">
6-
<svg viewBox="0 0 18 15">
7-
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
8-
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
9-
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
10-
</svg>
11-
</a>
12-
</nav>
1+
<div class="wrapAll clearfix">
2+
<div class="sidebar">
3+
<div class="logo">
4+
<a href="/"><img src='/images/sb-desktop-128x128.png' alt="logo"></a>
5+
</div>
6+
<div class="navigation">
7+
<h4>SmallBASIC</h4>
8+
<ul>
9+
<li><a href="#">Main page</a></li>
10+
<li><a href="#">Contents</a></li>
11+
<li><a href="#">Featured content</a></li>
12+
</ul>
13+
<h3>Interaction</h3>
14+
<ul>
15+
<li><a href="#">Help</a></li>
16+
<li><a href="#">About</a></li>
17+
<li><a href="#">Portal</a></li>
18+
</ul>
19+
<h3>Interaction</h3>
20+
<ul>
21+
<li><a href="#">Help</a></li>
22+
<li><a href="#">About</a></li>
23+
<li><a href="#">Portal</a></li>
24+
</ul>
25+
</div>
1326
</div>
14-
</header>
27+
<div class="mainsection">
28+
<div class="tabs clearfix">
29+
<div class="tabsRight">
30+
<ul>
31+
<li><a href="#" class="active">Read</a></li>
32+
<li><a href="#">View history</a></li>
33+
</ul>
34+
</div>
35+
</div>

_build/layouts/post.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
2-
<div class="post-content" itemprop="articleBody">
3-
{{ content }}
4-
</div>
5-
</article>
1+
<div class="article">
2+
{{ content }}
3+
</div>

_build/layouts/html.html renamed to _build/layouts/sitepage.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33

44
{% include head.html %}
55

66
<body>
77

88
{% include header.html %}
99

10-
<div class="page-content">
11-
<div class="wrapper">
10+
<div class="container">
11+
<div class="row">
1212
{{ content }}
1313
</div>
1414
</div>

0 commit comments

Comments
 (0)