Skip to content

Commit 4cef469

Browse files
committed
Add site
1 parent 95657dc commit 4cef469

23 files changed

+1877
-0
lines changed

.github/workflows/build-jekyll.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Deploy to Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_and_deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
# Use GitHub Actions' cache to cache dependencies on servers
15+
- uses: actions/cache@v2
16+
with:
17+
path: vendor/bundle
18+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
19+
restore-keys: |
20+
${{ runner.os }}-gems-
21+
22+
# Use GitHub Deploy Action to build and deploy to Github
23+
- uses: jeffreytse/[email protected]
24+
with:
25+
provider: 'github'
26+
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT)
27+
repository: '' # Default is current repository
28+
branch: 'gh-pages' # Default is gh-pages for github provider
29+
jekyll_src: './' # Default is root directory
30+
jekyll_cfg: '_config.yml' # Default is _config.yml
31+
jekyll_baseurl: '' # Default is according to _config.yml
32+
bundler_ver: '>=0' # Default is latest bundler version
33+
cname: '' # Default is to not use a cname
34+
actor: '' # Default is the GITHUB_ACTOR
35+
pre_build_commands: '' # Installing additional dependencies (Arch Linux)

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ _site/
22
.sass-cache/
33
.jekyll-cache/
44
.jekyll-metadata
5+
vendor/
6+
thumbs/

Gemfile

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
gem "jekyll", "~> 4.0.0"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
13+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
14+
# gem "github-pages", group: :jekyll_plugins
15+
# If you have any plugins, put them here!
16+
group :jekyll_plugins do
17+
gem "jekyll-feed", "~> 0.12"
18+
gem "jekyll-paginate"
19+
gem "jekyll-sitemap"
20+
end
21+
22+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
23+
# and associated library.
24+
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
25+
gem "tzinfo", "~> 1.2"
26+
gem "tzinfo-data"
27+
end
28+
29+
# Performance-booster for watching directories on Windows
30+
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
31+
gem "mini_magick"
32+
33+
gem "webrick", "~> 1.7"

Gemfile.lock

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.0)
5+
public_suffix (>= 2.0.2, < 5.0)
6+
colorator (1.1.0)
7+
concurrent-ruby (1.1.9)
8+
em-websocket (0.5.3)
9+
eventmachine (>= 0.12.9)
10+
http_parser.rb (~> 0)
11+
eventmachine (1.2.7)
12+
ffi (1.15.5)
13+
forwardable-extended (2.6.0)
14+
http_parser.rb (0.8.0)
15+
i18n (1.8.11)
16+
concurrent-ruby (~> 1.0)
17+
jekyll (4.0.1)
18+
addressable (~> 2.4)
19+
colorator (~> 1.0)
20+
em-websocket (~> 0.5)
21+
i18n (>= 0.9.5, < 2)
22+
jekyll-sass-converter (~> 2.0)
23+
jekyll-watch (~> 2.0)
24+
kramdown (~> 2.1)
25+
kramdown-parser-gfm (~> 1.0)
26+
liquid (~> 4.0)
27+
mercenary (~> 0.3.3)
28+
pathutil (~> 0.9)
29+
rouge (~> 3.0)
30+
safe_yaml (~> 1.0)
31+
terminal-table (~> 1.8)
32+
jekyll-feed (0.16.0)
33+
jekyll (>= 3.7, < 5.0)
34+
jekyll-paginate (1.1.0)
35+
jekyll-sass-converter (2.1.0)
36+
sassc (> 2.0.1, < 3.0)
37+
jekyll-sitemap (1.4.0)
38+
jekyll (>= 3.7, < 5.0)
39+
jekyll-watch (2.2.1)
40+
listen (~> 3.0)
41+
kramdown (2.3.1)
42+
rexml
43+
kramdown-parser-gfm (1.1.0)
44+
kramdown (~> 2.0)
45+
liquid (4.0.3)
46+
listen (3.7.1)
47+
rb-fsevent (~> 0.10, >= 0.10.3)
48+
rb-inotify (~> 0.9, >= 0.9.10)
49+
mercenary (0.3.6)
50+
mini_magick (4.11.0)
51+
pathutil (0.16.2)
52+
forwardable-extended (~> 2.6)
53+
public_suffix (4.0.6)
54+
rb-fsevent (0.11.0)
55+
rb-inotify (0.10.1)
56+
ffi (~> 1.0)
57+
rexml (3.2.5)
58+
rouge (3.27.0)
59+
safe_yaml (1.0.5)
60+
sassc (2.4.0)
61+
ffi (~> 1.9)
62+
terminal-table (1.8.0)
63+
unicode-display_width (~> 1.1, >= 1.1.1)
64+
thread_safe (0.3.6)
65+
tzinfo (1.2.9)
66+
thread_safe (~> 0.1)
67+
tzinfo-data (1.2021.5)
68+
tzinfo (>= 1.0.0)
69+
unicode-display_width (1.8.0)
70+
wdm (0.1.1)
71+
webrick (1.7.0)
72+
73+
PLATFORMS
74+
ruby
75+
76+
DEPENDENCIES
77+
jekyll (~> 4.0.0)
78+
jekyll-feed (~> 0.12)
79+
jekyll-paginate
80+
jekyll-sitemap
81+
mini_magick
82+
tzinfo (~> 1.2)
83+
tzinfo-data
84+
wdm (~> 0.1.1)
85+
webrick (~> 1.7)
86+
87+
BUNDLED WITH
88+
2.2.22

_config.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
#
11+
# If you need help with YAML syntax, here are some quick references for you:
12+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13+
# https://learnxinyminutes.com/docs/yaml/
14+
#
15+
# Site settings
16+
# These are used to personalize your new site. If you look in the HTML files,
17+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18+
# You can create any custom variable you would like, and they will be accessible
19+
# in the templates via {{ site.myvariable }}.
20+
21+
title: WattleScript
22+
email:
23+
description: >- # this means to ignore newlines until "baseurl:"
24+
WattleScript
25+
baseurl: "" # the subpath of your site, e.g. /blog
26+
url: "https://wattlescript.github.io" # the base hostname & protocol for your site, e.g. http://example.com
27+
# paginate: 5
28+
# paginate_path: "/blog/page:num/"
29+
# Build settings
30+
plugins:
31+
- jekyll-feed
32+
- jekyll-paginate
33+
- jekyll-sitemap
34+
35+
# Exclude from processing.
36+
# The following items will not be processed, by default.
37+
# Any item listed under the `exclude:` key here will be automatically added to
38+
# the internal "default list".
39+
#
40+
# Excluded items can be processed by explicitly listing the directories or
41+
# their entries' file path in the `include:` list.
42+
#
43+
exclude:
44+
- .sass-cache/
45+
- .jekyll-cache/
46+
- .github/
47+
- gemfiles/
48+
- Gemfile
49+
- Gemfile.lock
50+
- node_modules/
51+
- vendor/bundle/
52+
- vendor/cache/
53+
- vendor/gems/
54+
- vendor/ruby/

_data/navlist.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
docs:
2+
3+
- title: Home
4+
url: /
5+
6+
- title: License
7+
url: /license
8+
9+
- title: About Wattle
10+
url: /about_wattle
11+

_includes/logo.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1><a href="/" class="site-title"><img src="/assets/images/wattle-logo.svg" alt="WattleScript" style="height: 3.5em;"/></a></h1>

_includes/nav.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ul>
2+
<input id="menutoggle" class="menucheck" type="checkbox">
3+
<label for="menutoggle" class="menutext">Menu</label>
4+
{% for item in site.data.navlist.docs %}
5+
<li><a href="{{ item.url }}">{{ item.title }}</a></li>
6+
{% endfor %}
7+
<li><a href="https://github.com/Librelancer/moonsharp"><div class="github-icon">Github</div></a></li>
8+
</ul>

_layouts/default.html

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>{{ page.title }} - {{ site.title }}</title>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="/assets/css/normalize.css"/>
8+
<link href="https://fonts.googleapis.com/css?family=Libre+Franklin&display=swap" rel="stylesheet">
9+
<link href="https://fonts.googleapis.com/css?family=Inconsolata&display=swap" rel="stylesheet">
10+
<link rel="stylesheet" href="/assets/css/main.css"/>
11+
<link rel="stylesheet" href="/assets/css/syntax.css"/>
12+
<link rel="shortcut icon" href="favicon.ico" />
13+
14+
<script type="text/javascript">
15+
//Small script to do the fixed header
16+
function findOffset(element) {
17+
var top = 0, left = 0;
18+
19+
do {
20+
top += element.offsetTop || 0;
21+
left += element.offsetLeft || 0;
22+
element = element.offsetParent;
23+
} while(element);
24+
25+
return {
26+
top: top,
27+
left: left
28+
};
29+
}
30+
window.onload = function () {
31+
var stickyHeader = document.getElementById('nav');
32+
var contentPadding = document.getElementById('contentpadding');
33+
var padHeight = stickyHeader.offsetHeight + "px";
34+
contentPadding.style.height = padHeight;
35+
var headerOffset = findOffset(stickyHeader);
36+
window.onscroll = function() {
37+
var bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop;
38+
if (bodyScrollTop > headerOffset) {
39+
stickyHeader.classList.add('fixednav');
40+
} else {
41+
stickyHeader.classList.remove('fixednav');
42+
}
43+
};
44+
};
45+
</script>
46+
</head>
47+
<body>
48+
<div class="headerfill">
49+
<div class="headerbottom">
50+
{% include logo.html %}
51+
<nav id="nav">
52+
{% include nav.html %}
53+
</nav>
54+
</div>
55+
</div>
56+
<div id="contentpadding" class="responsivepad"></div>
57+
<div id="page">
58+
<div id="contentwrap">
59+
{{ content }}
60+
</div>
61+
</div>
62+
<script type="text/javascript" src="/assets/js/lightbox.js"></script>
63+
<link rel="stylesheet" href="/assets/css/lightbox.css">
64+
</div>
65+
</body>
66+
</html>

0 commit comments

Comments
 (0)