[Git][reproducible-builds/diffoscope-website][master] 3 commits: Add a Makefile to build the site.
Chris Lamb
gitlab at salsa.debian.org
Fri May 17 08:59:28 UTC 2019
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope-website
Commits:
9498a143 by Chris Lamb at 2019-05-17T08:50:52Z
Add a Makefile to build the site.
- - - - -
cbf85d12 by Chris Lamb at 2019-05-17T08:51:04Z
Add a .gitlab-ci.yml to test building the site.
- - - - -
cfb84eeb by Chris Lamb at 2019-05-17T08:58:54Z
Use site.baseurl over constructing URLs manually.
- - - - -
4 changed files:
- + .gitlab-ci.yml
- + Makefile
- _layouts/default.html
- index.md
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -0,0 +1,8 @@
+before_script:
+ - apt-get -q update
+ - env DEBIAN_FRONTEND=noninteractive apt-get -q -y install jekyll make
+
+test:
+ image: debian:stable
+ script:
+ - make
=====================================
Makefile
=====================================
@@ -0,0 +1,5 @@
+all:
+ jekyll build --verbose --trace
+
+clean:
+ rm -rf _site
=====================================
_layouts/default.html
=====================================
@@ -7,8 +7,8 @@
<meta name="referrer" content="same-origin" />
<title>{{ page.title }}</title>
- <link href="/static/css/bootstrap.min.css?{{ site.time | date: '%s%N' }}" rel="stylesheet" />
- <link href="/static/css/diffoscope.css?{{ site.time | date: '%s%N' }}" rel="stylesheet" media="screen" />
+ <link href="{{ "static/css/bootstrap.min.css" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }}" rel="stylesheet" />
+ <link href="{{ "static/css/diffoscope.css" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }}" rel="stylesheet" media="screen" />
</head>
<body>
@@ -19,7 +19,7 @@
<div class="row">
<div class="col-xs-12 col-sm-4 logo">
<a href="/">
- <img src="/static/images/diffoscope.png?{{ site.time | date: '%s%N' }}" class="img-responsive center-block">
+ <img src="{{ "static/images/diffoscope.png" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }}" class="img-responsive center-block">
</a>
</div>
@@ -34,7 +34,7 @@
<div class="container text-muted text-center">
<p>
<a href="https://reproducible-builds.org/">
- <img src="/static/images/reproducible-builds.svg?{{ site.time | date: '%s%N' }}" class="img-responsive center-block">
+ <img src="{{ "static/images/reproducible-builds.svg" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }}" class="img-responsive center-block">
</a>
</p>
=====================================
index.md
=====================================
@@ -11,17 +11,17 @@ title: "diffoscope: in-depth comparison of files, archives, and directories"
----
-<img src="/static/images/progressbar.gif?{{ site.time | date: '%s%N' }}">
+<img src="{{ "static/images/progressbar.gif" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }}">
## Examples
-[![Example of diffoscope HTML output](/examples/https-everywhere-5.0.6_vs_5.0.7.thumbnail.png?{{ site.time | date: '%s%N' }})](/examples/https-everywhere-5.0.6_vs_5.0.7.html)
+[![Example of diffoscope HTML output]({{ "examples/https-everywhere-5.0.6_vs_5.0.7.thumbnail.png" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }})]({{ "examples/https-everywhere-5.0.6_vs_5.0.7.html" | prepend: site.baseurl }})
-[Firefox extensions compared (HTML output)](/examples/https-everywhere-5.0.6_vs_5.0.7.html)
+[Firefox extensions compared (HTML output)]({{ "examples/https-everywhere-5.0.6_vs_5.0.7.html" | prepend: site.baseurl }})
-[![Example of diffoscope text output](/examples/igerman98_20131206-5.thumbnail.png?{{ site.time | date: '%s%N' }})](/examples/igerman98_20131206-5.txt)
+[![Example of diffoscope text output]({{ "examples/igerman98_20131206-5.thumbnail.png" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }})]({{ "examples/igerman98_20131206-5.txt" | prepend: site.baseurl }})
-[Debian packages compared (text output)](/examples/igerman98_20131206-5.txt)
+[Debian packages compared (text output)]({{ "/examples/igerman98_20131206-5.txt" | prepend: site.baseurl }})
… and more [examples on tests.reproducible-builds.org](https://tests.reproducible-builds.org/debian/unstable/amd64/index_FTBR.html).
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/compare/0466c3368981a07b90ea8562b52c8a7c2af35955...cfb84eeb1d1c024358f757cfffad97faeafad33f
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/compare/0466c3368981a07b90ea8562b52c8a7c2af35955...cfb84eeb1d1c024358f757cfffad97faeafad33f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190517/0590d368/attachment.html>
More information about the rb-commits
mailing list