Skip to content

Commit 8926949

Browse files
committed
update to layout to use template generator
1 parent 8461977 commit 8926949

8 files changed

Lines changed: 394 additions & 280 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy project page to GitHub Pages
8+
9+
on:
10+
# Runs on pushes to any branch with this workflow
11+
push:
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24+
concurrency:
25+
group: "pages"
26+
cancel-in-progress: false
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
- name: Setup Ruby
36+
uses: ruby/setup-ruby@v1.234.0
37+
with:
38+
ruby-version: '3.4' # Not needed with a .ruby-version file
39+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
40+
cache-version: 0 # Increment this number if you need to re-download cached gems
41+
- name: Setup Pages
42+
id: pages
43+
uses: actions/configure-pages@v5
44+
- name: Build with Jekyll
45+
# Outputs to the './_site' directory by default
46+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
47+
env:
48+
JEKYLL_ENV: production
49+
- name: Upload artifact
50+
# Automatically uploads an artifact from the './_site' directory by default
51+
uses: actions/upload-pages-artifact@v3
52+
53+
# Deployment job
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.gem
2+
.bundle
3+
.jekyll-cache
4+
.sass-cache
5+
_site
6+
.jekyll-metadata
7+
vendor
8+
Gemfile.lock
9+
.DS_Store

Gemfile

Lines changed: 33 additions & 0 deletions
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+
11+
# THis is using GitHub Pages, to upgrade, run `bundle update github-pages`.
12+
gem "github-pages", "~> 232", group: :jekyll_plugins
13+
gem "webrick", "~> 1.8"
14+
# If you have any plugins, put them here!
15+
group :jekyll_plugins do
16+
gem "jekyll-seo-tag"
17+
gem "jekyll-remote-theme"
18+
gem "jekyll-default-layout"
19+
end
20+
21+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
22+
# and associated library.
23+
platforms :mingw, :x64_mingw, :mswin, :jruby do
24+
gem "tzinfo", ">= 1", "< 3"
25+
gem "tzinfo-data"
26+
end
27+
28+
# Performance-booster for watching directories on Windows
29+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
30+
31+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
32+
# do not have a Java counterpart.
33+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

_config.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# User configuration file
2+
# Important for initial setup
3+
# The first three are needed for the project-pages theme.
4+
plugins:
5+
- jekyll-seo-tag # Easy SEO
6+
- jekyll-remote-theme # So we can use the theme
7+
- jekyll-default-layout # So we can use the theme easily
8+
# If you have additional plugins, you can add them here.
9+
# Make sure GitHub supports them here: https://pages.github.com/versions/
10+
11+
# Don't change! (or do change if you really want ig)
12+
remote_theme: BuildingAtom/project-pages@v1.3-theme
13+
14+
# Metadata and SEO-helper stuff
15+
# This title here should correspond to your base site or as a shared title
16+
title: "SEL Map: Semantic Elevation Map - Real-time Terrain Property Estimation for Mobile Robots"
17+
baseurl: "/sel_map" # the subpath of your site, e.g. /blog
18+
url: "https://roahmlab.github.io" # the base hostname & protocol for your site, e.g. http://example.com
19+
# This sets window title, not the title you read on the page
20+
title-format: site # options are page-site, page, site.
21+
lang: en
22+
23+
# Shenanigans from the template default because that's actually not a thing.
24+
credit:
25+
copyright-symbol: false
26+
text: >- # supports markdown
27+
[Project pages template](https://www.github.com/BuildingAtom/project-pages)
28+
built by Adam Li / [@BuildingAtom](https://www.github.com/BuildingAtom)
29+
30+
# Hide the credits in the footer by setting this false.
31+
show-credit: false
32+
33+
# Disable the footer by just setting the above false AND making the below blank
34+
footer:
35+
# connections-pre: # This prefixes the connections section at the botom.
36+
# connections-post: Socials
37+
connections:
38+
github: https://github.com/roahmlab/sel_map
39+
arxiv: https://arxiv.org/abs/2205.12925
40+
# related-sites:
41+
# sites:
42+
# - text: Base Example
43+
# href: /project-pages/
44+
# icon: bi-box-arrow-left
45+
# icon-library: bootstrap-icons
46+
# - text: SEL Map Example
47+
# href: /project-pages/sel_map
48+
# icon: bi-map
49+
# icon-library: bootstrap-icons
50+
# - text: ARMOUR Example
51+
# href: /project-pages/armour-dev
52+
# icon: bi-bezier2
53+
# icon-library: bootstrap-icons
54+
55+
56+
# Only leave the icon libraries you want to use enabled.
57+
# The supported libraries are:
58+
#
59+
# simpleicons (no need to enable), bootstrap-icons, css.gg,
60+
# ionicons, feathericons, academicons
61+
#
62+
# simpleicons doesn't require any extra loading.
63+
icon-libraries:
64+
- bootstrap-icons
65+
66+
# Keep mathjax disabled because it's a bit expensive. (Disabled by default)
67+
# You can enable this on a page-by-page basis, if you somehow are using mutliple pages.
68+
mathjax: false
69+
70+
# Code highlighter
71+
highlighter: rouge
72+
73+
# There is room for extra SEO shenanigans. jekyll-seo-tag is included,
74+
# so check out that repo to see what you can do.

_data/fonts.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Additional Fonts using Google Fonts (copy the last href from google fonts)
2+
# Review README for more details.
3+
google-fonts-href:
4+
- "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Cabin:wght@300;400;700&display=swap"
5+
- "https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Sans+KR:wght@400;700&family=Noto+Sans+SC:wght@400;700&display=swap"
6+
7+
# Specify your fonts for your site.
8+
# If a section's font isn't specified, it will use the base font
9+
# You can specify title-font, subtitle-font, heading-font.
10+
# subtitle-font is used for the description
11+
# Body font will always be the base-font.
12+
base-font: >
13+
"Noto Sans"
14+
15+
title-font: >
16+
"Cabin"
17+
18+
subtitle-font: >
19+
"Noto Sans"
20+
21+
heading-font: >
22+
"Noto Sans"
23+
24+
# Additional font classes for inline usage can be specified below
25+
fonts:
26+
- class: jp
27+
font: >
28+
"Noto Sans JP"
29+
- class: sc
30+
font: >
31+
"Noto Sans SC"
32+
- class: kr
33+
font: >
34+
"Noto Sans KR"
35+
- class: cabin
36+
font: >
37+
"Cabin"
38+

css/stylesheet.scss

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
# Import main from _sass
3+
---
4+
5+
///////////////////////////////////////
6+
// load fonts data here
7+
// Change these values through _data/fonts.yml instead of here!
8+
///////////////////////////////////////
9+
$data-base-font: {{ site.data.fonts.base-font | strip }};
10+
$data-title-font: {{ site.data.fonts.title-font | strip }};
11+
$data-subtitle-font: {{ site.data.fonts.subtitle-font | strip }};
12+
$data-heading-font: {{ site.data.fonts.heading-font | strip }};
13+
$data-fonts: ({%- for font in site.data.fonts.fonts -%}{{ font.class }}: {{- font.font | strip -}}{%- unless forloop.last -%}, {%- endunless -%}{%- endfor -%});
14+
15+
///////////////////////////////////////
16+
// Edit settings below here (ALL DEFAULTS SHOWN)
17+
///////////////////////////////////////
18+
19+
// // full width of overall site
20+
// $full-width: 1000px;
21+
// $mobile-width: 500px;
22+
23+
// $base-font-size: 16px;
24+
// $tablet-font-scale: 0.88;
25+
// $mobile-font-scale: 0.75;
26+
// $title-font-scale: 3.33;
27+
// $description-font-size: 1.66em;
28+
// $description-max-width: $full-width;
29+
// $authors-base-font-size: 1.25em;
30+
// $base-font-weight: 400;
31+
// $small-font-size: 0.8rem;
32+
// $base-line-height: 1.75;
33+
34+
// $spacing-unit: 1.8rem;
35+
36+
// //add themeing later
37+
// $text-color: #111;
38+
// $heading-color: #000000AA;
39+
// $heading-weight: 300;
40+
// $background-color: #fff;
41+
// $link-color: #3B7CC1;
42+
43+
// $grey-color: #828282;
44+
45+
// // https://codepen.io/sosuke/pen/Pjoqqp if you want to change the color
46+
// // #707070 here
47+
// $social-icon-filter: invert(43%) sepia(3%) saturate(20%) hue-rotate(330deg) brightness(99%) contrast(87%);
48+
49+
// $table-text-align: left;
50+
51+
@import "{{ site.theme }}";

0 commit comments

Comments
 (0)