Skip to content

Commit d08651f

Browse files
author
CSL
committed
feat: add Jekyll website for Seahorse
- Add docs/_config.yml with Jekyll configuration - Add docs/_layouts/default.html with dark theme - Add docs/index.html with promotional content - Add docs/Gemfile for Jekyll dependencies - Add .github/workflows/jekyll.yml for GitHub Pages deployment
1 parent c46142e commit d08651f

5 files changed

Lines changed: 1047 additions & 0 deletions

File tree

.github/workflows/jekyll.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy Jekyll site to Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: '3.3'
29+
bundler-cache: true
30+
31+
- name: Install dependencies
32+
run: |
33+
cd docs
34+
bundle install
35+
36+
- name: Build Jekyll site
37+
run: |
38+
cd docs
39+
bundle exec jekyll build
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: docs/_site
45+
46+
deploy:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

docs/Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# gem "rails"
6+
7+
gem "jekyll", "~> 4.4"

docs/_config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
title: Seahorse
2+
description: An elegant macOS material collection and management tool
3+
baseurl: "/Seahorse"
4+
url: "https://ssbun.github.io"
5+
6+
# Build settings
7+
markdown: kramdown
8+
9+
# Exclude unnecessary files
10+
exclude:
11+
- Gemfile
12+
- Gemfile.lock
13+
- node_modules
14+
- vendor/
15+
- .git/

0 commit comments

Comments
 (0)