Skip to content

Commit b15cc0e

Browse files
🏗🔧:pre-empt our new dark theme #1131
PR URL: #1131 Reviewed-by: OpenINF-bot <[email protected]> --------- Signed-off-by: Derek Lewis <[email protected]> Co-authored-by: OpenINF Bot <[email protected]>
1 parent d47cc49 commit b15cc0e

File tree

17 files changed

+393
-82
lines changed

17 files changed

+393
-82
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Omakase Ruby styling for Rails
2+
inherit_gem:
3+
rubocop-rails-omakase: rubocop.yml
4+
# Your own specialized rules go here

Gemfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,21 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'github-linguist', '~> 7.24'
5+
gem 'rubocop', require: false
6+
gem 'rubocop-rails-omakase', require: false, group: [ :development ]
67

7-
gem 'jekyll', '~> 4.3.0'
8-
gem 'kramdown-parser-gfm', '~> 1.1'
8+
gem 'github-linguist'
9+
10+
gem 'jekyll'
11+
gem 'kramdown-parser-gfm'
912

1013
group :jekyll_plugins do
1114
gem 'jekyll-redirect-from'
1215
gem 'jekyll-relative-links'
16+
gem 'jekyll-sitemap'
17+
gem 'jekyll-seo-tag'
18+
# gem 'jekyll-asset-path', git: 'https://github.com/OpenINF/openinf-jekyll-asset-path-plugin'
19+
# gem 'jekyll-assets', git: 'https://github.com/envygeeks/jekyll-assets'
1320
# gem 'jekyll-paginate-v2'
1421
# gem 'jekyll-auto-authors'
1522
end
@@ -23,7 +30,7 @@ gem 'dotenv'
2330

2431
gem 'rb-inotify'
2532

26-
# Preparing for Ruby 3.4.0; these deps will no longer be present.
33+
# Dig out bundled core deps as we prep to begin Ruby 3.4.0 support.
2734
gem 'csv'
2835
gem 'base64'
2936
gem 'bigdecimal'

Gemfile.lock

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
activesupport (7.1.3.2)
5+
base64
6+
bigdecimal
7+
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
connection_pool (>= 2.2.5)
9+
drb
10+
i18n (>= 1.6, < 2)
11+
minitest (>= 5.1)
12+
mutex_m
13+
tzinfo (~> 2.0)
414
addressable (2.8.6)
515
public_suffix (>= 2.0.2, < 6.0)
16+
ast (2.4.2)
617
base64 (0.2.0)
718
bigdecimal (3.1.7)
819
cgi (0.4.1)
920
charlock_holmes (0.7.7)
1021
colorator (1.1.0)
1122
concurrent-ruby (1.2.3)
23+
connection_pool (2.4.1)
1224
csv (3.3.0)
1325
dotenv (3.1.0)
26+
drb (2.2.1)
1427
em-websocket (0.5.3)
1528
eventmachine (>= 0.12.9)
1629
http_parser.rb (~> 0)
@@ -59,30 +72,76 @@ GEM
5972
jekyll (>= 3.3, < 5.0)
6073
jekyll-sass-converter (3.0.0)
6174
sass-embedded (~> 1.54)
75+
jekyll-seo-tag (2.8.0)
76+
jekyll (>= 3.8, < 5.0)
77+
jekyll-sitemap (1.4.0)
78+
jekyll (>= 3.7, < 5.0)
6279
jekyll-watch (2.2.1)
6380
listen (~> 3.0)
81+
json (2.7.1)
6482
kramdown (2.4.0)
6583
rexml
6684
kramdown-parser-gfm (1.1.0)
6785
kramdown (~> 2.0)
86+
language_server-protocol (3.17.0.3)
6887
liquid (4.0.4)
6988
listen (3.9.0)
7089
rb-fsevent (~> 0.10, >= 0.10.3)
7190
rb-inotify (~> 0.9, >= 0.9.10)
7291
mercenary (0.4.0)
7392
mini_mime (1.1.5)
93+
minitest (5.22.3)
94+
mutex_m (0.2.0)
95+
parallel (1.24.0)
96+
parser (3.3.0.5)
97+
ast (~> 2.4.1)
98+
racc
7499
pathutil (0.16.2)
75100
forwardable-extended (~> 2.6)
76101
public_suffix (5.0.5)
77102
rake (13.2.1)
78103
rb-fsevent (0.11.2)
79104
rb-inotify (0.10.1)
80105
ffi (~> 1.0)
106+
regexp_parser (2.9.0)
81107
rexml (3.2.6)
82108
rouge (4.2.1)
109+
rubocop (1.62.1)
110+
json (~> 2.3)
111+
language_server-protocol (>= 3.17.0)
112+
parallel (~> 1.10)
113+
parser (>= 3.3.0.2)
114+
rainbow (>= 2.2.2, < 4.0)
115+
regexp_parser (>= 1.8, < 3.0)
116+
rexml (>= 3.2.5, < 4.0)
117+
rubocop-ast (>= 1.31.1, < 2.0)
118+
ruby-progressbar (~> 1.7)
119+
unicode-display_width (>= 2.4.0, < 3.0)
120+
rubocop-ast (1.31.2)
121+
parser (>= 3.3.0.4)
122+
rubocop-minitest (0.35.0)
123+
rubocop (>= 1.61, < 2.0)
124+
rubocop-ast (>= 1.31.1, < 2.0)
125+
rubocop-performance (1.20.2)
126+
rubocop (>= 1.48.1, < 2.0)
127+
rubocop-ast (>= 1.30.0, < 2.0)
128+
rubocop-rails (2.24.1)
129+
activesupport (>= 4.2.0)
130+
rack (>= 1.1)
131+
rubocop (>= 1.33.0, < 2.0)
132+
rubocop-ast (>= 1.31.1, < 2.0)
133+
rubocop-rails-omakase (1.0.0)
134+
rubocop
135+
rubocop-minitest
136+
rubocop-performance
137+
rubocop-rails
138+
ruby-progressbar (1.13.0)
83139
rugged (1.7.2)
84140
safe_yaml (1.0.5)
85-
sass-embedded (1.74.1-aarch64-linux-android)
141+
sass-embedded (1.72.0)
142+
google-protobuf (>= 3.25, < 5.0)
143+
rake (>= 13.0.0)
144+
sass-embedded (1.72.0-aarch64-linux-android)
86145
google-protobuf (>= 3.25, < 5.0)
87146
sass-embedded (1.74.1-aarch64-linux-gnu)
88147
google-protobuf (>= 3.25, < 5.0)
@@ -112,6 +171,8 @@ GEM
112171
google-protobuf (>= 3.25, < 5.0)
113172
terminal-table (3.0.2)
114173
unicode-display_width (>= 1.1.1, < 3)
174+
tzinfo (2.0.6)
175+
concurrent-ruby (~> 1.0)
115176
unicode-display_width (2.5.0)
116177
webrick (1.8.1)
117178
yaml-lint (0.1.2)
@@ -125,11 +186,13 @@ PLATFORMS
125186
arm-linux-gnueabihf
126187
arm-linux-musleabihf
127188
arm64-darwin
189+
ruby
128190
x86-linux
129191
x86-linux-android
130192
x86-linux-gnu
131193
x86-linux-musl
132194
x86_64-darwin
195+
x86_64-linux
133196
x86_64-linux-android
134197
x86_64-linux-gnu
135198
x86_64-linux-musl
@@ -139,12 +202,16 @@ DEPENDENCIES
139202
bigdecimal
140203
csv
141204
dotenv
142-
github-linguist (~> 7.24)
143-
jekyll (~> 4.3.0)
205+
github-linguist
206+
jekyll
144207
jekyll-redirect-from
145208
jekyll-relative-links
146-
kramdown-parser-gfm (~> 1.1)
209+
jekyll-seo-tag
210+
jekyll-sitemap
211+
kramdown-parser-gfm
147212
rb-inotify
213+
rubocop
214+
rubocop-rails-omakase
148215
webrick
149216
yaml-lint
150217

_config.yml

Lines changed: 68 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,110 @@
1-
# Welcome to Jekyll!
2-
3-
# This master configuration file contains global configurations and variable
4-
# definitions that are meant for settings that affect the whole microsite with
5-
# values that are expected to be set up once and that rarely need to be edited
6-
# after that, which is why they are only read once at execution time.
7-
#
8-
# For technical reasons, changes made to this file are *NOT* reloaded
9-
# automatically during automatic regeneration when using 'jekyll serve'. If
10-
# you change this file, please restart the server process as changes are not
11-
# loaded until the next execution.
12-
#
13-
# Note: Data Files _are_ included and reloaded during automatic regeneration.
14-
#
15-
# Site personalization settings accessed in templates via {{ site.myvariable }}.
1+
---
162
title: OpenINF
17-
18-
description: >-
19-
Aggregate, curate, disseminate, and apply information derived from diverse
20-
sources.
3+
4+
description: Aggregate, curate, disseminate, and apply information derived from
5+
diverse sources.
216
baseurl: ''
22-
url: 'https://open.inf.is'
7+
url: https://open.inf.is
238
twitter_username: OpenINF
249
github_username: OpenINF
2510
repository: OpenINF/openinf.github.io
2611

27-
# Site build settings.
12+
# Site build settings
2813
markdown: kramdown
2914
plugins:
3015
- jekyll-redirect-from
3116
- jekyll-relative-links
17+
- jekyll-sitemap
18+
- jekyll-seo-tag
19+
# - jekyll-asset-path
20+
# - jekyll-assets
21+
compress_html:
22+
clippings: all
23+
comments:
24+
- '<!-- '
25+
- ' -->'
26+
endings: all
27+
ignore:
28+
envs:
29+
- local
30+
blanklines: false
31+
profile: false
32+
startings:
33+
- html
34+
- head
35+
- body
3236

33-
# Document collections.
37+
## Content collections
38+
# @see https://jekyllrb.com/docs/collections
3439
collections_dir: collections
35-
3640
collections:
3741
authors:
3842
output: true
3943
docs:
40-
permalink: '/:collection/:path/'
44+
permalink: :collection/:path
4145
output: true
4246
posts:
43-
permalink: '/news/:year/:month/:day/:title/'
47+
permalink: news/:year/:month/:day/:title
4448
output: true
4549
defaults:
50+
- scope:
51+
path: ''
52+
type: pages
53+
values:
54+
##
55+
# @see https://github.com/OpenINF/openinf.github.io/blob/HEAD/_layouts/compress.html
56+
layout: compress
57+
locale: en
58+
- scope:
59+
path: _layouts
60+
type: pages
61+
values:
62+
##
63+
# @see https://github.com/OpenINF/openinf.github.io/blob/HEAD/_layouts/default.html
64+
layout: default
4665
- scope:
4766
path: _docs
4867
type: docs
4968
values:
69+
##
70+
# @see https://github.com/OpenINF/openinf.github.io/blob/HEAD/_layouts/docs.html
5071
layout: docs
72+
editable: true
73+
toc: true
74+
breadcrumbs: true
75+
body_classes:
76+
- hide-butterbar
5177
- scope:
5278
path: _posts
5379
type: posts
5480
values:
81+
##
82+
# @see https://github.com/OpenINF/openinf.github.io/blob/HEAD/_layouts/news_item.html
5583
layout: news_item
84+
editable: true
85+
toc: true
86+
breadcrumbs: true
87+
body_classes:
88+
- hide-butterbar
89+
sass:
90+
sass_dir: _sass
91+
style: compressed
92+
load_paths:
93+
- _includes/assets/scss
5694

57-
# Exclude from processing.
95+
# Exclude from processing
5896
exclude:
97+
- AUTHORS
5998
- build/
99+
- CNAME
60100
- Gemfile
61101
- Gemfile.lock
102+
- LICENSE
62103
- node_modules/
63104
- package.json
64105
- pnpm-lock.json
65106
- project-terms.txt
66-
- AUTHORS
67-
- CNAME
68-
- LICENSE
69107
- README.md
70-
- tools/
71108
- tmp/
109+
- tools/
72110
- vendor/

_includes/head.html

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
crossorigin="anonymous" />
1313
<meta
1414
name="description"
15-
content="Aggregate, curate, disseminate, and apply information derived from diverse sources." />
15+
content="{{ site.description }}" />
1616
<link
1717
rel="stylesheet"
1818
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
@@ -81,9 +81,25 @@
8181
{{ styles | scssify }}
8282
{% endif %}
8383
</style>
84-
<link rel="canonical" href="." />
85-
<title>
86-
{% if page.class != 'home' %}{{ page.title }} &middot; {% endif %}{{
87-
site.title }}
88-
</title>
84+
{% if page.custom_css %}{% for stylesheet_hotlink in page.custom_css -%}
85+
<link rel="stylesheet" href="{{ stylesheet_hotlink }}">
86+
{%- endfor %}{% endif %}
87+
<meta name="format-detection" content="telephone=no">
88+
{% if post.status == 'unpublished' or page.status == 'unpublished' %}
89+
<meta name="robots" content="noindex, nofollow, noarchive">
90+
{% endif %}
91+
<title>{% if page.permalink == '/' %}{{ site.title }}{% else %}{{ page.title }} &middot; {{ site.title }}{% endif %}</title>
92+
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
93+
{% if page.permalink == '/' %}
94+
<script type="application/ld+json">
95+
{
96+
"@context": "http://schema.org",
97+
"@type": "WebSite",
98+
"license": "https://open.inf.is/license",
99+
"about": {
100+
"description": "{{ site.description }}"
101+
}
102+
}
103+
</script>
104+
{% endif %}
89105
</head>

_layouts/default.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
editable: false
2+
layout: compress
33
---
44

5-
<!doctype html>
6-
<html lang="en">
7-
{%- include head.html -%}
5+
<!DOCTYPE html>
6+
<html {% if page.locale.is_rtl %}dir="rtl" lang="ar"{% else %}dir="ltr" lang="{{ page.locale }}"{% endif %}>
7+
{%- include head.html -%}
88

9-
<body class="{{ page.class }}">
10-
{%- include header.html -%} {{- content -}} {%- include footer.html -%}
11-
</body>
9+
{%- assign classes = page.body_classes | join: " " | where: 'page.body_classes', empty -%}
10+
11+
<body vocab="http://schema.org/" typeof="WebPage" id="top"{% if classes %} class="{{- classes -}}"{% endif %}>
12+
{%- include header.html -%} {{- content -}} {%- include footer.html -%}
13+
</body>
1214
</html>

0 commit comments

Comments
 (0)