Skip to content

Commit d2dbdfa

Browse files
committed
docs build consistency pass 2
1 parent 1da58ad commit d2dbdfa

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/build-and-deploy-docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,18 @@ jobs:
3434
with:
3535
ruby-version: "3.3"
3636
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37-
working-directory: ${{ github.workspace }}/docs
37+
working-directory: docs
3838
- name: Setup Pages
3939
id: pages
4040
uses: actions/configure-pages@v5
4141
- name: Build with Jekyll
4242
# Outputs to the 'docs/_site' directory
43-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
43+
run: |
44+
echo "url: $GITHUB_PAGES_BASE_URL" > _config.dynamic.yml
45+
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" --config _config.yml,_config.dynamic.yml
4446
env:
4547
JEKYLL_ENV: production
48+
GITHUB_PAGES_BASE_URL: ${{ steps.pages.outputs.base_url }}
4649
- name: Upload artifact
4750
# Uploads artifact from the 'docs/_site' directory
4851
uses: actions/upload-pages-artifact@v3

docs/_config.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,11 @@ theme: just-the-docs
3737
#
3838
exclude:
3939
- README.md
40+
- vendor/
4041
- .sass-cache/
4142
- .jekyll-cache/
4243
- Gemfile
4344
- Gemfile.lock
44-
- node_modules/
45-
- vendor/bundle/
46-
- vendor/cache/
47-
- vendor/gems/
48-
- vendor/ruby/
4945

5046
callouts:
5147
info:

0 commit comments

Comments
 (0)