Skip to content

Commit 642a85f

Browse files
wip
1 parent a13a833 commit 642a85f

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,24 @@ jobs:
3535
with:
3636
ref: ${{ github.event.pull_request.head.ref }}
3737
fetch-depth: 0
38-
- uses: ruby/setup-ruby@v1
38+
- name: Setup Ruby
39+
uses: ruby/setup-ruby@v1
3940
with:
40-
ruby-version: '3'
41-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
41+
ruby-version: '3.3' # Not needed with a .ruby-version file
42+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
43+
cache-version: 0 # Increment this number if you need to re-download cached gems
4244
- name: Setup Pages
45+
id: pages
4346
uses: actions/configure-pages@v5
4447
- name: Build Jekyll site
45-
run: bundle install && bundle exec jekyll build -d ../_site
48+
# Outputs to the './_site' directory by default
49+
run: bundle install && bundle exec jekyll build -d ../_site --baseurl "${{ steps.pages.outputs.base_path }}"
4650
working-directory: ./docs
51+
env:
52+
JEKYLL_ENV: production
4753
- name: Upload artifact
48-
uses: actions/upload-pages-artifact@v3
54+
# Automatically uploads an artifact from the './_site' directory by default
55+
uses: actions/upload-pages-artifact@v4
4956

5057
# Deployment job
5158
deploy:

docs/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ gem "jekyll-sitemap"
4141

4242
# From https://github.com/jekyll/jekyll-watch
4343
gem "jekyll-watch"
44+
45+
# From https://github.com/just-the-docs/just-the-docs-template/blob/main/README.md
46+
gem "jekyll-default-layout"

docs/_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ description: >- # this means to ignore newlines until "baseurl:"
2525
using smart contracts on the blockchain.
2626
author: Boson Protocol Team
2727
baseurl: "" # the subpath of your site, e.g. /blog
28-
url: "" # the base hostname & protocol for your site, e.g. http://example.com
28+
url: "https://bosonprotocol.github.io/interface"
2929
twitter_username: bosonprotocol
3030
github_username: bosonprotocol
3131

3232
# Build settings
3333
theme: just-the-docs
3434
plugins:
3535
- jekyll-sitemap
36+
- jekyll-default-layout
3637

3738
# Exclude from processing.
3839
# The following items will not be processed, by default.

0 commit comments

Comments
 (0)