diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1f92d3..1042835 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,21 @@ jobs: - name: Build Site run: bundle exec jekyll build + github-pages-build: + name: Build (github-pages gem) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: false + - name: Bundle Install + run: BUNDLE_GEMFILE=fixtures/Gemfile-github-pages bundle install + - name: Build Site + run: BUNDLE_GEMFILE=fixtures/Gemfile-github-pages bundle exec jekyll build + assets: name: Test CSS and JS runs-on: ubuntu-latest diff --git a/_config.yml b/_config.yml index f9e295a..5123872 100644 --- a/_config.yml +++ b/_config.yml @@ -42,6 +42,8 @@ exclude: - package-lock.json - Rakefile - README.md + # theme test code + - fixtures/ # Set a path/url to a logo that will be displayed instead of the title #logo: "/assets/images/just-the-docs.png" diff --git a/fixtures/Gemfile-github-pages b/fixtures/Gemfile-github-pages new file mode 100644 index 0000000..33d9d3b --- /dev/null +++ b/fixtures/Gemfile-github-pages @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gem 'github-pages', group: :jekyll_plugins diff --git a/fixtures/README.md b/fixtures/README.md new file mode 100644 index 0000000..557c69a --- /dev/null +++ b/fixtures/README.md @@ -0,0 +1,3 @@ +# Test Fixtures + +These files are used by Just the Docs maintainers to test *the theme itself*. **If you are using Just the Docs as a theme, you should not copy these files over.**