Skip to content

Commit 80360bd

Browse files
committed
Reorganizes Jekyll site structure
Specifies site folder as source for Jekyll builds. Adds Gemfile for dependency management, updates configuration include paths, and creates a homepage referencing README. Signed-off-by: DavidOsipov <[email protected]>
1 parent 8da77c7 commit 80360bd

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Build site
3636
run: |
37-
bundle exec jekyll build --destination .github/_site
37+
bundle exec jekyll build --source site --destination .github/_site
3838
3939
- name: Deploy to Cloudflare Pages
4040
env:

site/Gemfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
source "https://rubygems.org"
2+
3+
gem "jekyll", "~> 4.2.0"
4+
gem "minima", "~> 2.5" # Theme specified in your _config.yml
5+
6+
# Plugins
7+
gem "jekyll-relative-links", "~> 0.6.1"
8+
gem "jekyll-include-cache", "~> 0.2.1" # Optional: Improves build performance
9+
10+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
11+
# and associated library.
12+
platforms :mingw, :x64_mingw, :mswin, :jruby do
13+
gem "tzinfo", "~> 1.2"
14+
gem "tzinfo-data"
15+
end
16+
17+
# Performance-booster for watching directories on Windows
18+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
19+
20+
# Lock Jekyll to v4 to prevent GitHub Pages gem from overwriting
21+
gem "webrick", "~> 1.7" # Required for Ruby 3.0+

_config.yml renamed to site/_config.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ plugins:
1010

1111
# Process these files as Jekyll files
1212
include:
13-
- "docs/"
14-
- "README.md"
15-
- "SECURITY.md"
16-
- "CODE_OF_CONDUCT.md"
17-
- "CONTRIBUTING.md"
18-
- "LICENSE"
13+
- "../docs/"
14+
- "../README.md"
15+
- "../SECURITY.md"
16+
- "../CODE_OF_CONDUCT.md"
17+
- "../CONTRIBUTING.md"
18+
- "../LICENSE"
19+
- "../index.md" # Ensure index.md is included
1920

2021
# Relative links configuration
2122
relative_links:
2223
enabled: true
23-
collections: true
24+
collections: true

site/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: default
3+
title: Home
4+
---
5+
6+
{% include_relative ../README.md %}

0 commit comments

Comments
 (0)