Inital commit: added initial jekyll install

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@1 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
Claudio Maggioni 2018-10-30 17:09:13 +00:00
commit f38b5fc0e6
12 changed files with 213 additions and 0 deletions

11
build.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
if ! which jekyll 2>/dev/null 1>/dev/null; then
sudo gem install jekyll
else
kill -9 $(ps ax | grep jekyll | grep -v grep | cut -d\ -f1)
fi
cd site/ && jekyll serve &
sleep 3 && open "http://localhost:4000/"

12
site/_config.yml Normal file
View File

@ -0,0 +1,12 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely need to edit after that.
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.
# Site settings
title: Group 1 project
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site
future: true

View File

@ -0,0 +1 @@
<footer>Footer</footer>

12
site/_includes/head.html Normal file
View File

@ -0,0 +1,12 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl | prepend: site.url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>

View File

@ -0,0 +1,17 @@
<nav class="navbar">
<div class="container">
<ul class="navbar-list">
<li class="navbar-item">
<a href="{{ "/" | prepend: site.baseurl | prepend: site.url }}">home</a>
</li>
{% for my_page in site.pages %}
{% if my_page.title %}
<li class="navbar-item">
<a href="{{ my_page.url | prepend: site.baseurl | prepend: site.url }}">
{{ my_page.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</nav>

16
site/_layouts/main.html Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
<header class="header">
<section class="head container">
<h1 class="title">{{ site.title }}</h1>
</section>
{% include header.html %}
</header>
<main class="container">
{{ content }}
</main>
{% include footer.html %}
</body>
</html>

14
site/_layouts/page.html Normal file
View File

@ -0,0 +1,14 @@
---
layout: main
---
<article class="post">
<header class="post-header">
<h2 class="post-title">{{ page.title }}</h2>
</header>
<div class="post-content">
{{ content }}
</div>
</article>

View File

@ -0,0 +1,70 @@
/*
* Syntax highlighting styles
*/
.highlight {
background: #fff;
.highlighter-rouge & {
background: #eef;
}
.c { color: #998; font-style: italic } // Comment
.err { color: #a61717; background-color: #e3d2d2 } // Error
.k { font-weight: bold } // Keyword
.o { font-weight: bold } // Operator
.cm { color: #998; font-style: italic } // Comment.Multiline
.cp { color: #999; font-weight: bold } // Comment.Preproc
.c1 { color: #998; font-style: italic } // Comment.Single
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
.gd { color: #000; background-color: #fdd } // Generic.Deleted
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
.ge { font-style: italic } // Generic.Emph
.gr { color: #a00 } // Generic.Error
.gh { color: #999 } // Generic.Heading
.gi { color: #000; background-color: #dfd } // Generic.Inserted
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
.go { color: #888 } // Generic.Output
.gp { color: #555 } // Generic.Prompt
.gs { font-weight: bold } // Generic.Strong
.gu { color: #aaa } // Generic.Subheading
.gt { color: #a00 } // Generic.Traceback
.kc { font-weight: bold } // Keyword.Constant
.kd { font-weight: bold } // Keyword.Declaration
.kp { font-weight: bold } // Keyword.Pseudo
.kr { font-weight: bold } // Keyword.Reserved
.kt { color: #458; font-weight: bold } // Keyword.Type
.m { color: #099 } // Literal.Number
.s { color: #d14 } // Literal.String
.na { color: #008080 } // Name.Attribute
.nb { color: #0086B3 } // Name.Builtin
.nc { color: #458; font-weight: bold } // Name.Class
.no { color: #008080 } // Name.Constant
.ni { color: #800080 } // Name.Entity
.ne { color: #900; font-weight: bold } // Name.Exception
.nf { color: #900; font-weight: bold } // Name.Function
.nn { color: #555 } // Name.Namespace
.nt { color: #000080 } // Name.Tag
.nv { color: #008080 } // Name.Variable
.ow { font-weight: bold } // Operator.Word
.w { color: #bbb } // Text.Whitespace
.mf { color: #099 } // Literal.Number.Float
.mh { color: #099 } // Literal.Number.Hex
.mi { color: #099 } // Literal.Number.Integer
.mo { color: #099 } // Literal.Number.Oct
.sb { color: #d14 } // Literal.String.Backtick
.sc { color: #d14 } // Literal.String.Char
.sd { color: #d14 } // Literal.String.Doc
.s2 { color: #d14 } // Literal.String.Double
.se { color: #d14 } // Literal.String.Escape
.sh { color: #d14 } // Literal.String.Heredoc
.si { color: #d14 } // Literal.String.Interpol
.sx { color: #d14 } // Literal.String.Other
.sr { color: #009926 } // Literal.String.Regex
.s1 { color: #d14 } // Literal.String.Single
.ss { color: #990073 } // Literal.String.Symbol
.bp { color: #999 } // Name.Builtin.Pseudo
.vc { color: #008080 } // Name.Variable.Class
.vg { color: #008080 } // Name.Variable.Global
.vi { color: #008080 } // Name.Variable.Instance
.il { color: #099 } // Literal.Number.Integer.Long
}

39
site/blog.html Normal file
View File

@ -0,0 +1,39 @@
---
layout: page
title: Blog
permalink: /blog/
---
<div class="home">
<p>And maybe, maybe, maybe... I guess that would be considered a UFO. A big cotton ball in the sky. Just think about these things in your mind and drop em' on canvas.</p>
<p>We'll take a little bit of Van Dyke Brown. If you've been in Alaska less than a year you're a Cheechako. We touch the canvas, the canvas takes what it wants. Isn't that fantastic that you can create an almighty tree that fast?</p>
<p>La- da- da- da- dah. Just be happy. You gotta think like a tree. You're meant to have fun in life.</p>
<p>
{% highlight bash linenos %}
[Unit]
Description=systemd Unit to automatically start a Bluetooth keyboard
Documentation=https://wiki.archlinux.org/index.php/Bluetooth_Keyboard
Requires=dbus-org.bluez.service
After=dbus-org.bluez.service
ConditionPathExists=/etc/btkbd.conf
ConditionPathExists=/usr/bin/hcitool
ConditionPathExists=/usr/bin/hciconfig
[Service]
Type=oneshot
EnvironmentFile=/etc/btkbd.conf
ExecStart=/usr/bin/hciconfig ${HCIDEVICE} up
# ignore errors on connect, spurious problems with bt?
# so start next command with -
ExecStart=-/usr/bin/hcitool cc ${BTKBDMAC}
[Install]
WantedBy=multi-user.target
{% endhighlight %}
</p>
</div>

5
site/css/main.scss Normal file
View File

@ -0,0 +1,5 @@
---
---
@charset "utf-8";
@import "syntax-highlighting";

14
site/index.html Normal file
View File

@ -0,0 +1,14 @@
---
layout: main
---
<section>
<h1>Welcome to The Shell website!</h1>
<p>And maybe, maybe, maybe... I guess that would be considered a UFO. A big cotton ball in the sky. Just think about these things in your mind and drop em' on canvas.</p>
<p>We'll take a little bit of Van Dyke Brown. If you've been in Alaska less than a year you're a Cheechako. We touch the canvas, the canvas takes what it wants. Isn't that fantastic that you can create an almighty tree that fast?</p>
<p>La- da- da- da- dah. Just be happy. You gotta think like a tree. You're meant to have fun in life.</p>
</section>

2
svnignore Normal file
View File

@ -0,0 +1,2 @@
site/_site
site/.sass-cache