Commit c8ab3f09 authored by Lukas Matt's avatar Lukas Matt

Switch jekyll theme from github to bootstrap

parent d7dc53dd
......@@ -3,4 +3,3 @@ description: A Decentralized Social Network
show_downloads: true
github:
slug: ganggo/ganggo
theme: jekyll-theme-dinky
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/latest_release.js"></script>
</body>
</html>
......@@ -4,13 +4,11 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
{% seo %}
<link href='https://fonts.googleapis.com/css?family=Arvo:400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<link rel="stylesheet" href="/css/custom.css">
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="stylesheet" href="/assets/css/syntax.css">
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
<script src="/assets/js/jquery-3.2.1.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
......
<ul>
{% assign navigation_pages = site.html_pages | sort: 'navigation_order' %}
{% for page in navigation_pages %}
{% if page.navigation_order %}
<li><a class="buttons none" href="{{ page.url }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
<li><a class="buttons none" href="/api/index.html">API Docs</a></li>
</ul>
<hr/>
<ul id="downloadBtns">
{% if site.show_downloads %}
{% include latest_release.html %}
{% endif %}
<li><a class="buttons github" href="https://github.com/{{ site.github.slug }}">View On GitHub</a></li>
</ul>
{% assign navigation_pages = site.html_pages | sort: 'navigation_order' %}
<nav class="navbar navbar-expand navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample08" aria-controls="navbarsExample08" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-md-center" id="navbarsExample08">
<ul class="navbar-nav">
{% for page in navigation_pages %}
{% if page.navigation_order %}
<li class="nav-item">
<a class="nav-link" href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endif %}
{% endfor %}
<li class="nav-item">
<a class="nav-link" href="/api/index.html">API Docs</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">GitHub</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="https://github.com/{{ site.github.slug }}">View On GitHub</a>
</div>
</li>
</ul>
</div>
</nav>
{% include header.html %}
<div class="wrapper">
<header>
<h1 class="header">{{ site.title | default: site.github.repository_name }}</h1>
<p class="header">{{ site.description | default: site.github.project_tagline }}</p>
{% include navigation.html %}
{% include navigation.html %}
{% if site.github.is_project_page %}
<p class="header">This project is maintained by <a class="header name" href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
{% endif %}
{% if site.github.is_user_page %}
<ul>
<li><a class="buttons github" href="{{ site.github.owner_url }}">GitHub Profile</a></li>
</ul>
{% endif %}
</header>
<section>
{{ content }}
</section>
<div class="container">
<main role="main">
<div class="jumbotron">
<div class="col text-center">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
<p class="header">{{ site.description | default: site.github.project_tagline }}</p>
</div>
</div>
<div class="row">
<div class="col">
{% if site.github.is_project_page %}
<p class="header">This project is maintained by <a class="header name" href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
{% endif %}
{% if site.github.is_user_page %}
<ul>
<li><a class="buttons github" href="{{ site.github.owner_url }}">GitHub Profile</a></li>
</ul>
{% endif %}
</div>
</div>
<div class="row">
<div class="col">
{{ content }}
</div>
</div>
</div>
</div>
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
This diff is collapsed.
<script>
(function() {
var apiUrl = "https://api.github.com/repos/{{ site.github.slug }}/releases/latest";
var apiUrl = "https://api.github.com/repos/ganggo/ganggo/releases/latest";
$.getJSON(apiUrl).done(function (release) {
$.each(release.assets, function(index, asset) {
var name = asset.name.split(".");
var a = $("<a>").attr("class", "buttons")
.attr("href", asset.browser_download_url).append(name[1]);
var li = $("<li>") //.attr("style", "height:30px")
.attr("class", "download").append(a);
var a = $("<a>").attr("class", "dropdown-item")
.attr("href", asset.browser_download_url).append("Download " + name[1]);
// append download link to the menu
$("#downloadBtns").append(li);
$(".dropdown-menu").append(a);
});
});
})();
</script>
This diff is collapsed.
......@@ -12,6 +12,7 @@ navigation_order: 2
To setup Postgres, run the following commands:
{% highlight bash linenos %}
su - postgres
psql postgres
......@@ -19,6 +20,7 @@ To setup Postgres, run the following commands:
CREATE DATABASE ganggo OWNER ganggo;
GRANT ALL PRIVILEGES ON DATABASE ganggo to ganggo;
\q
{% endhighlight %}
The schema will be applied while booting!
......
a.none {
background: none;
}
......@@ -11,15 +11,19 @@ navigation_order: 3
After downloading and installing both dependencies do not forget to setup your go-environment:
{% highlight bash linenos %}
export GOROOT=/opt/golang
export GOPATH=$HOME/.golang
export PATH=$PATH:$GOPATH/bin
{% endhighlight %}
This will ensure that all source files and binaries will be placed in `$GOPATH` and will be available in your shell via your `$PATH`-variable.
Finally we can execute `make` to fetch the rest of the npm/GoLang dependencies:
{% highlight bash linenos %}
VERSION=v0 make install
{% endhighlight %}
Depending on your internet connection, that could take a while.
......@@ -28,27 +32,35 @@ Depending on your internet connection, that could take a while.
Assuming we want to work on the API, Federation and application server we should
create a workspace first:
{% highlight bash linenos %}
mkdir -p ~/workspace/ganggo
cd ~/workspace/ganggo
git clone --depth=1 https://github.com/ganggo/ganggo
git clone --depth=1 https://github.com/ganggo/api
git clone --depth=1 https://github.com/ganggo/federation
{% endhighlight %}
Since `go build` will only build within `$GOPATH` we remove the previouse downloaded libs and create three symlinks to our workspace:
{% highlight bash linenos %}
rm -r $GOPATH/src/gopkg.in/ganggo/ganggo.v0 $GOPATH/src/gopkg.in/ganggo/api.v0 $GOPATH/src/gopkg.in/ganggo/federation.v0
ln -s $GOPATH/src/gopkg.in/ganggo/ganggo.v0 ~/workspace/ganggo/ganggo
ln -s $GOPATH/src/gopkg.in/ganggo/api.v0 ~/workspace/ganggo/api
ln -s $GOPATH/src/gopkg.in/ganggo/federation.v0 ~/workspace/ganggo/federation
{% endhighlight %}
That's it! You can switch into `~/workspace/ganggo/ganggo` now and start the web-server by running:
{% highlight bash linenos %}
revel run gopkg.in/ganggo/ganggo.v0
{% endhighlight %}
## Updater
Assuming you already installed all dependencies and followed the above examples you can build a new release with:
{% highlight bash linenos %}
VERSION=v0 make release
{% endhighlight %}
The `VERSION` flag is used to identify different software versions via [gopkg.in](http://gopkg.in).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment