10 files changed, 15 insertions(+), 9 deletions(-)
M .build.yml
M README
A docs/config.toml
R docs/{index.html => content/_index.html}
A docs/layouts/_default/section.html
R docs/{_layouts/default.html => layouts/index.html}
R docs/{favicon.ico => static/favicon.ico}
R docs/{gridmgr-black.png => static/gridmgr-black.png}
R docs/{gridmgr-white.png => static/gridmgr-white.png}
R docs/{style.css => static/style.css}
M .build.yml => .build.yml +5 -1
@@ 1,11 1,15 @@
# sourcehut build: push docs/* to website
image: alpine/latest
+packages:
+- hugo
oauth: pages.sr.ht/PAGES:RW
environment:
repo: gridmgr
tasks:
- package: |
cd $repo/docs/
- tar -cvz . > ../../site.tar.gz
+ hugo
+ cd public/
+ tar -cvz . > ../../../site.tar.gz
- upload: |
acurl -f https://pages.sr.ht/publish/$repo.nickbp.com -Fcontent=@site.tar.gz
M README => README +1 -1
@@ 6,4 6,4 @@ Building gridmgr:
4) "make"
5) See "bin/gridmgr"
-Docs: http://nickbp.github.io/gridmgr/
+Docs: https://gridmgr.nickbp.com/
A docs/config.toml => docs/config.toml +1 -0
@@ 0,0 1,1 @@
+languageCode = "en-us"<
\ No newline at end of file
R docs/index.html => docs/content/_index.html +2 -2
@@ 42,9 42,9 @@ title: gridmgr
<p class="subheader">Getting the Code</p>
-<p>Get the latest <a href="https://github.com/nickbp/gridmgr">Source Code</a> from Git.</p>
+<p>Get the latest <a href="https://sr.ht/~nickbp/gridmgr">Source Code</a> from Git.</p>
-<p class="code">$ git clone git://github.com/nickbp/gridmgr.git</p>
+<p class="code">$ git clone https://git.sr.ht/~nickbp/gridmgr</p>
<p class="subheader">Building</p>
A docs/layouts/_default/section.html => docs/layouts/_default/section.html +1 -0
@@ 0,0 1,1 @@
+../index.html<
\ No newline at end of file
R docs/_layouts/default.html => docs/layouts/index.html +5 -5
@@ 1,19 1,19 @@
<html>
<head>
- <title>{{ page.title }}</title>
- <link rel="shortcut icon" href="/gridmgr/favicon.ico" />
+ <title>{{ .Title }}</title>
+ <link rel="shortcut icon" href="/favicon.ico" />
<style type="text/css">
- @import url("style.css");
+ @import url("/style.css");
</style>
</head>
<body>
<div id="container">
<div id="titlebar" align="center">
- <a href="/gridmgr"><img src="gridmgr-black.png" alt="gridmgr"/></a>
+ <a href="/"><img src="gridmgr-black.png" alt="gridmgr"/></a>
</div>
<div id="content">
- {{ content }}
+ {{ .Content }}
</div>
</div>
</body>
R docs/favicon.ico => docs/static/favicon.ico +0 -0
R docs/gridmgr-black.png => docs/static/gridmgr-black.png +0 -0
R docs/gridmgr-white.png => docs/static/gridmgr-white.png +0 -0
R docs/style.css => docs/static/style.css +0 -0