Skip to content

Commit

Permalink
Basic Scaffold with functional Travis integration
Browse files Browse the repository at this point in the history
Signed-off-by: Torbjörn Klatt <[email protected]>
  • Loading branch information
torbjoernk committed Jan 14, 2016
0 parents commit 55d1022
Show file tree
Hide file tree
Showing 184 changed files with 11,191 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
### Travis ###
travis_deploy_rsa

### Jekyll ###
_site/
.asset-cache/
.jekyll-metadata


### Ruby ###
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/test/tmp/
/test/version_tmp/
/tmp/

## Specific to RubyMotion:
.dat*
.repl_history
build/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalisation:
/.bundle/
/lib/bundler/man/
/vendor/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc


### Linux ###
*~

# KDE directory preferences
.directory


### OSX ###
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk



### IDEs ###
.idea/
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Torbjörn Klatt <[email protected]> <[email protected]>
Empty file added .nojekyll
Empty file.
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jlescorg
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.2.1
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: ruby

sudo: false

# this is taken from .ruby-version from the repo
# rvm:
# - 2.2.1

cache:
- bundler

branches:
except:
- master

script:
- bundle exec jekyll build --trace
# preparing the deployment SSH key and running the deployment script
- if [[ "${TRAVIS_BRANCH}" == "source" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
openssl aes-256-cbc -K $encrypted_d352a8d3929a_key -iv $encrypted_d352a8d3929a_iv -in travis_deploy_rsa.enc -out travis_deploy_rsa -d;
chmod 0600 travis_deploy_rsa;
eval "$(ssh-agent -s)";
ssh-add travis_deploy_rsa;
git config --global user.email "[email protected]";
git config --global user.name "Travis CI Deployment";
bundle exec jgd --branch=master [email protected]:JLESC/jlesc.github.io;
fi
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Contributing

Please read the wiki on GitHub for details on contributing to the website:

https://github.com/JLESC/jlesc.github.io/wiki

1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Torbjörn Klatt <[email protected]>
23 changes: 23 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
source 'https://rubygems.org/'
ruby '2.2.1'

# other dependencies
gem 'sass'
gem 'uglifier'
gem 'coffee-script'
gem 'autoprefixer-rails'
gem 'mini_magick'
gem 'font-awesome-sass', '>=4.5.0'

gem 'jekyll', '>=3.0'

# Jekyll Plugins
gem 'jekyll-watch'
gem 'jekyll-paginate'
gem 'jekyll-feed'
gem 'jekyll-assets'
gem 'jekyll-sitemap'
gem 'jekyll-scholar'

gem 'jgd'

Empty file added _assets/css/.placeholder
Empty file.
8 changes: 8 additions & 0 deletions _assets/css/_bootstrap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$font-family-sans-serif: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
$font-family-serif: "Roboto Slab", Georgia, "Times New Roman", Times, serif !default;
$font-family-monospace: "Roboto Mono", Menlo, Monaco, Consolas, "Courier New", monospace !default;

$enable-rounded: false;
$enable-transitions: true;

@import "vendor/bootstrap/bootstrap";
7 changes: 7 additions & 0 deletions _assets/css/_fontawesome.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@function fa-font-path($path) {
@return font_path($path);
}

$fa-sass-asset-helper: true;

@import 'font-awesome';
160 changes: 160 additions & 0 deletions _assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'),
local('Roboto-Regular'),
url(font_path('Roboto-Regular.woff2')) format('woff2'),
url(font_path('Roboto-Regular.ttf')) format('truetype');
}
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
src: local('Roboto Mono'),
local('RobotoMono-Regular'),
url(font_path('RobotoMono-Regular.woff2')) format('woff2'),
url(font_path('RobotoMono-Regular.ttf')) format('truetype');
}
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 400;
src: local('Roboto Slab Regular'),
local('RobotoSlab-Regular'),
url(font_path('RobotoSlab-Regular.woff2')) format('woff2'),
url(font_path('RobotoSlab-Regular.ttf')) format('truetype');
}

@import "themes/cosmo";
@import 'bootstrap';
@import 'fontawesome';


html {
body {
margin-top: 3.4rem;
margin-bottom: 3.4rem;

noscript {
.card {
margin-bottom: 0;
}
.card-block {
padding: 0;
}
}

main > .container {
padding-top: 2rem;
padding-bottom: 2rem;
}

.jumbotron {
margin-bottom: 0;
padding: 0;
}

#news-index {
section {
footer {
padding: 0.25rem 1.25rem !important;

ul {
margin: 0rem !important;
}
}
}
}

img.logo {
@include center-block;
@include img-fluid();
max-height: 7.5rem;
}

#institutes img.logo {
@extend .p-a-1;
}

#recent-news.card {
.list-group {
label {
line-height: inherit !important;
}
}
.card-footer {
padding: 0.25rem 1.25rem;
}
}

.bibtex-entry-container {
.bibtex-ref-raw {
pre code {
color: $text-muted !important;
}
}
.bibtex-ref-abstract {
color: $text-muted !important;
}
}

.ref-label {
width: 100%;
display: block !important;
font-size: 85% !important;
text-overflow: clip;
overflow: hidden;
}

.post {
article {
aside {
ul li.list-group-item.row {
margin: 0 !important;
padding: 0.2rem 0 0.2rem 0;
border-bottom-width: 0;

label {
margin-bottom: 0 !important;
font-weight: bold;
}
}
}
}

footer {
.card-block {
padding: .25rem;
}
}
}

#group-index, #project-index {
section.card {
img {
width: 100%;
}
}
}

footer#site-footer {
color: $text-muted;

.navbar-nav {
.nav-link + .nav-link {
margin: 0 !important;
}
}

a.nav-link {
display: inline;
color: $text-muted;
}

a.nav-link:hover {
color: $link-hover-color !important;
}
}
}
}
Loading

0 comments on commit 55d1022

Please sign in to comment.