Skip to content

Commit 798444b

Browse files
committed
Add GitHub Pages workflow and Gemfile for Jekyll builds
- Add GitHub Actions workflow for automated deployment - Add Gemfile with just-the-docs theme and plugins - Update config to use theme gem instead of remote_theme
1 parent a9b88ba commit 798444b

3 files changed

Lines changed: 66 additions & 1 deletion

File tree

.github/workflows/pages.yml

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

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OCSAS Documentation - GitHub Pages with Jekyll
2+
3+
source "https://rubygems.org"
4+
5+
gem "jekyll", "~> 4.3"
6+
gem "just-the-docs", "~> 0.8"
7+
8+
group :jekyll_plugins do
9+
gem "jekyll-redirect-from"
10+
gem "jekyll-seo-tag"
11+
gem "jekyll-sitemap"
12+
end

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33

44
title: OCSAS
55
description: OpenClaw Security Assurance Standard - Security checklist and hardening guide for OpenClaw users
6-
remote_theme: just-the-docs/just-the-docs
6+
theme: just-the-docs
77

88
# Plugins
99
plugins:
1010
- jekyll-redirect-from
11+
- jekyll-seo-tag
12+
- jekyll-sitemap
1113

1214
# Repository information
1315
url: https://gensecaihq.github.io

0 commit comments

Comments
 (0)