Skip to content

Commit e97f6e5

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

File tree

320 files changed

+341
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

320 files changed

+341
-320
lines changed

_build/includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<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>
2+
This page was last edited on {% print DATE() %} | Markdown pages processed with <a href="https://pandoc.org/MANUAL.html#pandocs-markdown" _target="_new" rel="nofollow">Pandoc</a> | Template by <a href="http://html5-templates.com/" target="_new" rel="nofollow">HTML5 Templates</a>
33
</div>
44
</div>
55
</div>

_build/includes/header.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ <h3>Interaction</h3>
2626
</div>
2727
<div class="mainsection">
2828
<div class="tabs clearfix">
29+
<div class="tabsLeft">
30+
<ul>
31+
<li><a href="#" class="active">Article</a></li>
32+
<li><a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/issues">Talk</a></li>
33+
</ul>
34+
</div>
2935
<div class="tabsRight">
3036
<ul>
31-
<li><a href="#" class="active">Read</a></li>
32-
<li><a href="#">View history</a></li>
37+
<li><a target="_github" href="{{ page.sourceurl }}">View source</a></li>
38+
<li><a target="_github" href="{{ page.changesurl }}">View history</a></li>
3339
</ul>
3440
</div>
3541
</div>

_build/mkdata.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ for package in ref
88
num_items = len(ref[package]) - 1
99
for i = 0 to num_items
1010
item = ref[package][i]
11+
item.package = package
1112
filename = "_out/data/" + item.nodeId + "-" + lower(package) + "-" + lower(item.keyword) + ".json"
1213
filename = translate(filename, " ", "")
1314
buffer = str(item)

_build/page.bas

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export name
88
export help
99
export url
1010
export title
11+
export sourceurl
12+
export changesurl
1113

1214
filename = translate(command, "/reference1/", "/data/")
1315
filename = translate(filename, "/reference2/", "/data/")
@@ -19,13 +21,19 @@ if (not exist(filename)) then
1921
help = ""
2022
url = ""
2123
title = ""
24+
sourceurl = ""
25+
changesurl = ""
2226
else
2327
tload filename, s, 1
2428
item = array(s)
2529
name = item.keyword
2630
help = item.help
2731
url = item.nodeId
2832
title = item.signature
33+
filepath = item.nodeId + "-" + lower(item.package) + "-" + lower(item.keyword) + ".markdown"
34+
filepath = "_build/reference/" + translate(filepath, " ", "")
35+
sourceurl = "https://github.com/smallbasic/smallbasic.github.io/blob/master/" + filepath
36+
changesurl = "https://github.com/smallbasic/smallbasic.github.io/commits/master/" + filepath
2937
endif
3038

3139

_build/reference/1015-console-definekey.markdown

Lines changed: 1 addition & 1 deletion

_build/reference/1419-language-declare.markdown

Lines changed: 1 addition & 1 deletion

_build/reference/1420-language-to.markdown

Lines changed: 1 addition & 1 deletion

_build/reference/1421-language-step.markdown

Lines changed: 1 addition & 1 deletion

_build/reference/1422-language-using.markdown

Lines changed: 1 addition & 1 deletion

_build/reference/1423-language-usg.markdown

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)