Skip to content

Commit cfdd68c

Browse files
committed
chore: add project configuration and linting standards
- Expand _config.yml with site metadata, SEO, and social settings - Add .editorconfig for consistent code formatting across editors - Add .rubocop.yml with Ruby and Jekyll linting standards - Add .nvmrc to specify Node.js 24.9.0 for frontend tooling
1 parent 035fb69 commit cfdd68c

4 files changed

Lines changed: 148 additions & 0 deletions

File tree

.editorconfig

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
13+
# Ruby files
14+
[*.rb]
15+
indent_style = space
16+
indent_size = 2
17+
18+
# YAML files
19+
[*.{yml,yaml}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
# HTML files
24+
[*.html]
25+
indent_style = space
26+
indent_size = 2
27+
28+
# CSS/SCSS files
29+
[*.{css,scss}]
30+
indent_style = space
31+
indent_size = 2
32+
33+
# JavaScript files
34+
[*.js]
35+
indent_style = space
36+
indent_size = 2
37+
38+
# Markdown files
39+
[*.md]
40+
indent_style = space
41+
indent_size = 2
42+
trim_trailing_whitespace = false
43+
44+
# CSV files
45+
[*.csv]
46+
trim_trailing_whitespace = false

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24.9.0

.rubocop.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
require:
2+
- rubocop-jekyll
3+
4+
AllCops:
5+
TargetRubyVersion: 3.3
6+
NewCops: enable
7+
Exclude:
8+
- 'vendor/**/*'
9+
- '_site/**/*'
10+
- '.bundle/**/*'
11+
- 'node_modules/**/*'
12+
13+
# Jekyll-specific
14+
Jekyll/NoPutsAllowed:
15+
Enabled: true
16+
17+
# Style
18+
Style/StringLiterals:
19+
Enabled: true
20+
EnforcedStyle: single_quotes
21+
22+
Style/FrozenStringLiteralComment:
23+
Enabled: true
24+
EnforcedStyle: always
25+
26+
# Metrics
27+
Metrics/LineLength:
28+
Max: 120
29+
Enabled: true
30+
31+
Metrics/MethodLength:
32+
Max: 25
33+
Enabled: true
34+
35+
Metrics/BlockLength:
36+
Enabled: true
37+
Exclude:
38+
- '**/*.gemspec'
39+
40+
# Layout
41+
Layout/IndentationConsistency:
42+
Enabled: true
43+
44+
Layout/TrailingWhitespace:
45+
Enabled: true
46+
47+
Layout/EndOfLine:
48+
Enabled: true
49+
EnforcedStyle: lf
50+
51+
# Documentation
52+
Style/Documentation:
53+
Enabled: false

_config.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,52 @@
1+
# Site Settings
2+
title: VanRuby
3+
description: Vancouver's Ruby Community - Connect, learn, and grow with Ruby enthusiasts and professionals in Vancouver
4+
url: "https://vanruby.ca"
5+
baseurl: ""
6+
timezone: America/Vancouver
7+
8+
# Build Settings
19
markdown: rdiscount
210
permalink: /posts/:title
311
rdiscount:
412
extensions: [smart]
13+
14+
# Collections
15+
collections:
16+
data:
17+
output: false
18+
19+
# Plugins
20+
plugins:
21+
- jekyll-seo-tag
22+
- jekyll-sitemap
23+
24+
# Exclude from processing
25+
exclude:
26+
- Gemfile
27+
- Gemfile.lock
28+
- README.md
29+
- CLAUDE.md
30+
- vendor/
31+
- .bundle/
32+
- .git/
33+
- .gitignore
34+
- .ruby-version
35+
- .editorconfig
36+
- .rubocop.yml
37+
- node_modules/
38+
39+
# Include
40+
include:
41+
- .htaccess
42+
43+
# SEO and Social
44+
author: VanRuby
45+
twitter:
46+
username: vanruby
47+
card: summary
48+
social:
49+
name: VanRuby
50+
links:
51+
- https://ruby.social/@vanruby
52+
- https://github.com/vanruby

0 commit comments

Comments
 (0)