summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2019-04-21 00:08:48 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2019-04-21 00:08:48 +0200
commit5eabe8d2c0b7067da03d6aeed65aae3858b463a9 (patch)
treea56871acc39fa8c0be039bd2e1a9823ccd6e4bf0
Initial commit
-rw-r--r--.gitignore12
-rw-r--r--Gemfile13
-rw-r--r--Gemfile.lock104
-rwxr-xr-xMakefile40
-rw-r--r--_assets/css/main.scss81
-rw-r--r--_assets/logo.pngbin0 -> 75221 bytes
-rw-r--r--_config.yml34
-rw-r--r--_layouts/default.html49
-rw-r--r--_layouts/page.html4
-rw-r--r--index.md5
-rw-r--r--robots.txt2
11 files changed, 344 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c08b6d3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+# Main Jekyll/Ruby things
+_site
+.asset-cache
+.sass-cache
+.bundle
+.jekyll-cache
+.jekyll-metadata
+/vendor
+
+# Temporary files for various apps
+.DS_Store
+.*.swp
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..852d7c0
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,13 @@
+source 'http://rubygems.org'
+ruby RUBY_VERSION
+
+# Jekylling it.
+gem "jekyll", "3.7.0"
+
+# Plugins!
+group :jekyll_plugins do
+ gem 'jekyll-assets'
+end
+
+gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
+
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..3c90c26
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,104 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (5.2.2)
+ concurrent-ruby (~> 1.0, >= 1.0.2)
+ i18n (>= 0.7, < 2)
+ minitest (~> 5.1)
+ tzinfo (~> 1.1)
+ addressable (2.6.0)
+ public_suffix (>= 2.0.2, < 4.0)
+ colorator (1.1.0)
+ concurrent-ruby (1.1.4)
+ em-websocket (0.5.1)
+ eventmachine (>= 0.12.9)
+ http_parser.rb (~> 0.6.0)
+ eventmachine (1.2.7)
+ execjs (2.7.0)
+ extras (0.3.0)
+ forwardable-extended (~> 2.5)
+ fastimage (2.1.5)
+ ffi (1.10.0)
+ forwardable-extended (2.6.0)
+ http_parser.rb (0.6.0)
+ i18n (0.9.5)
+ concurrent-ruby (~> 1.0)
+ jekyll (3.7.0)
+ addressable (~> 2.4)
+ colorator (~> 1.0)
+ em-websocket (~> 0.5)
+ i18n (~> 0.7)
+ jekyll-sass-converter (~> 1.0)
+ jekyll-watch (~> 2.0)
+ kramdown (~> 1.14)
+ liquid (~> 4.0)
+ mercenary (~> 0.3.3)
+ pathutil (~> 0.9)
+ rouge (>= 1.7, < 4)
+ safe_yaml (~> 1.0)
+ jekyll-assets (3.0.12)
+ activesupport (~> 5.0)
+ execjs (~> 2.7)
+ extras (~> 0.2)
+ fastimage (~> 2.0, >= 1.8)
+ jekyll (>= 3.5, < 4.0)
+ jekyll-sanity (~> 1.2)
+ liquid-tag-parser (~> 1.0)
+ nokogiri (~> 1.8)
+ pathutil (~> 0.16)
+ sprockets (>= 3.3, < 4.1.beta)
+ jekyll-sanity (1.2.0)
+ jekyll (~> 3.1)
+ jekyll-sass-converter (1.5.2)
+ sass (~> 3.4)
+ jekyll-watch (2.1.2)
+ listen (~> 3.0)
+ kramdown (1.17.0)
+ liquid (4.0.1)
+ liquid-tag-parser (1.9.0)
+ extras (~> 0.3)
+ liquid (>= 3.0, < 5.0)
+ listen (3.1.5)
+ rb-fsevent (~> 0.9, >= 0.9.4)
+ rb-inotify (~> 0.9, >= 0.9.7)
+ ruby_dep (~> 1.2)
+ mercenary (0.3.6)
+ mini_portile2 (2.4.0)
+ minitest (5.11.3)
+ nokogiri (1.10.1)
+ mini_portile2 (~> 2.4.0)
+ pathutil (0.16.2)
+ forwardable-extended (~> 2.6)
+ public_suffix (3.0.3)
+ rack (2.0.6)
+ rb-fsevent (0.10.3)
+ rb-inotify (0.10.0)
+ ffi (~> 1.0)
+ rouge (3.3.0)
+ ruby_dep (1.5.0)
+ safe_yaml (1.0.4)
+ sass (3.7.3)
+ sass-listen (~> 4.0.0)
+ sass-listen (4.0.0)
+ rb-fsevent (~> 0.9, >= 0.9.4)
+ rb-inotify (~> 0.9, >= 0.9.7)
+ sprockets (3.7.2)
+ concurrent-ruby (~> 1.0)
+ rack (> 1, < 3)
+ thread_safe (0.3.6)
+ tzinfo (1.2.5)
+ thread_safe (~> 0.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ jekyll (= 3.7.0)
+ jekyll-assets
+ tzinfo-data
+
+RUBY VERSION
+ ruby 2.6.0p0
+
+BUNDLED WITH
+ 1.17.2
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..05870eb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+# Preview in local how it will render.
+preview prev: -all-dev-watch
+
+# Upload to prod.
+show: -all-prod -install-prod
+
+# Prepare.
+prepare: -prepare
+
+.PHONY: preview prev show prepare
+#*****************************************************************************#
+# Internal rules #
+#*****************************************************************************#
+ BUNDLE := bundle
+ JEK := $(BUNDLE) exec jekyll
+ ROOT := cake@fingerd.touhey.pro:fingerd_www
+
+# Prepare.
+
+ -prepare:
+ $(BUNDLE) check || $(BUNDLE) install --path vendor/bundle
+
+# Make it and watch or not.
+
+ -all-prod: -prepare
+ $(JEK) build $(OPTS)
+ -all-dev-watch: -prepare
+ $(JEK) serve --drafts --watch $(OPTS)
+
+# Install the prod site onto the prod server.
+
+ -install-prod:
+ find _site -type f -exec chmod 644 {} \;
+ rsync -Prlt --delete --exclude=up/ _site/ "$(ROOT)"
+
+.PHONY: -prepare
+.PHONY: -all-prod -all-dev-watch
+.PHONY: -install-prod
+# End of file.
diff --git a/_assets/css/main.scss b/_assets/css/main.scss
new file mode 100644
index 0000000..e467098
--- /dev/null
+++ b/_assets/css/main.scss
@@ -0,0 +1,81 @@
+* {
+ box-sizing: border-box;
+ line-height: 1; }
+
+html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0; }
+html {
+ display: table; }
+body {
+ display: table-cell;
+
+ vertical-align: middle;
+ margin: 0;
+ overflow-y: scroll;
+ font-family: "Helvetica", Times, serif; }
+
+.container {
+ width: 100%;
+ max-width: 900px;
+ margin: 5px auto 50px;
+ padding: 20px; }
+.title {
+ text-align: center;
+ margin: 0 auto;
+ max-width: 400px;
+
+ h1 {
+ display: block; }
+ h1, .subtitle {
+ margin: 0; }
+ h1 img {
+ margin: 0 auto;
+ width: 100%;
+ max-width: 6em; }
+ .subtitle {
+ margin-top: 5px;
+ font-size: 1.2em; }
+
+ a, a:visited, a:hover, a:active {
+ text-decoration: none;
+ color: #0A2F84; }
+ a:hover, a:active {
+ text-decoration: underline; }
+ b {
+ font-family: monospace;
+ color: #F39800; }
+}
+
+.nav {
+ display: block;
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ text-align: center;
+
+ li {
+ display: inline-block;
+ padding: 5px 5px;
+ margin: 20px 0 0;
+
+ a, a:visited, a:active, a:hover {
+ color: white;
+ text-decoration: none;
+ background-color: #A0A0A0;
+ padding: 10px;
+ font-size: 1.2em;
+ border: 4px solid #606060;
+ border-top: none;
+ border-right: none; }
+ a:hover {
+ background-color: #909090; }
+ a:active {
+ background-color: #808080;
+ border: 4px solid #404040;
+ border-top: none;
+ border-right: none; }
+ }
+}
diff --git a/_assets/logo.png b/_assets/logo.png
new file mode 100644
index 0000000..1f5933b
--- /dev/null
+++ b/_assets/logo.png
Binary files differ
diff --git a/_config.yml b/_config.yml
new file mode 100644
index 0000000..c94c816
--- /dev/null
+++ b/_config.yml
@@ -0,0 +1,34 @@
+#******************************************************************************
+# _config.yml -- Environment configuration.
+#
+# For technical reasons, this file is *NOT* reloaded automatically when you use
+# 'bundle exec jekyll serve'. If you change this file, please restart the
+# server process.
+#******************************************************************************
+# Site settings.
+
+name: sgdfi
+email: thomas@touhey.fr
+url: "https://sgdfi.touhey.pro"
+baseurl: ""
+description: "A module for interacting with SGdF's digital resources."
+
+# Build settings.
+destination: _site
+plugins:
+ - jekyll-assets
+markdown: kramdown
+exclude:
+ - Gemfile
+ - Gemfile.lock
+ - Makefile
+ - README.md
+ - vendor
+
+# Assets settings.
+assets:
+ sources:
+ - _assets/css
+ - _assets
+
+# End of file.
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..9a2e559
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html lang="fr"><head>
+<meta charset="utf-8" />
+<meta name="viewport" content="width=device-width,initial-scale=1.0" />
+
+<title>SGDFi - interact with SGdF's digital resources</title>
+<meta name="author" content="Thomas Touhey">
+<link rel="author" href="https://thomas.touhey.fr/">
+<meta property="og:description" name="description" content="The SGDFi project is a Python module which allows you to interact with SGdF's digital resources.">
+<link rel="icon" type="image/ico" href="{{ site.baseurl }}/favicon.png">
+<!--[if IE]>
+<link rel="shortcut icon" type="image/ico" href="{{ site.baseurl }}/favicon.ico">
+<![endif]-->
+
+<!-- OpenGraph -->
+<meta property="og:title" content="Homepage">
+<meta property="og:site_name" content="SGDFi">
+<meta property="og:url" content="{{ url }}">
+
+<!-- Twitter -->
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="fingerd">
+<meta name="twitter:description" content="The SGDFi project is a Python module which allows you to interact with SGdF's digital resources.">
+<meta name="twitter:url" content="{{ url }}">
+
+<!-- Stylesheets -->
+{% asset css/main.css %}
+</head><body><div class="container">
+
+<div class="title">
+<h1>{% asset logo.png alt="SGDFi logo" %}</h1>
+<p class="subtitle">
+ Easily interact with the digital resources and services of the
+ <a href="https://www.sgdf.fr/">Scouts et Guides de France</a>
+ using the <b>SGDFi</b> Python module!
+</p>
+</div>
+
+<ul class="nav">
+ <li><a href="https://forge.touhey.org/sgdfi.git/">
+ Source
+ </a></li><li><a href="https://pypi.org/project/sgdfi/">
+ PyPI
+ </a></li><li><a href="{{ site.baseurl }}/docs/">
+ Docs
+ </a></li>
+</ul>
+
+</div></body></html>
diff --git a/_layouts/page.html b/_layouts/page.html
new file mode 100644
index 0000000..73dae17
--- /dev/null
+++ b/_layouts/page.html
@@ -0,0 +1,4 @@
+---
+layout: default
+---
+{{ content }}
diff --git a/index.md b/index.md
new file mode 100644
index 0000000..6a440a9
--- /dev/null
+++ b/index.md
@@ -0,0 +1,5 @@
+---
+layout: page
+title: fingerd
+---
+
diff --git a/robots.txt b/robots.txt
new file mode 100644
index 0000000..c2a49f4
--- /dev/null
+++ b/robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Allow: /