diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 0000000..7d0bf0a --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,54 @@ +name: Build and deploy Jekyll site to GitHub Pages + +on: + push: + branches: [ "main", "gh-pages", "jekyll4-actions" ] + pull_request: + branches: [ "main", "gh-pages", "master" ] + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Setup Pages + id: pages + uses: actions/configure-pages@v4 + + - name: Build with Jekyll + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: _site + + deploy: + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deploy + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/Gemfile b/Gemfile index 69fcbcf..020b3f6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,28 +1,13 @@ source "https://rubygems.org" -# Hello! This is where you manage which Jekyll version is used to run. -# When you want to use a different version, change it below, save the -# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: -# -# bundle exec jekyll serve -# -# This will help ensure the proper Jekyll version is running. -# Happy Jekylling! -# gem "jekyll", "~> 3.8.5" +# Jekyll 4 + plugin set for building via GitHub Actions -# This is the default theme for new Jekyll sites. You may change this to anything you like. -# gem "minima", "~> 2.0" - -source "https://rubygems.org" +gem "jekyll", "~> 4.3" gem "jekyll-remote-theme" -# If you want to use GitHub Pages, remove the "gem "jekyll"" above and -# uncomment the line below. To upgrade, run `bundle update github-pages`. -gem "github-pages", "~> 202", group: :jekyll_plugins - -# If you have any plugins, put them here! group :jekyll_plugins do - gem "jekyll-feed", "~> 0.6" + gem "jekyll-feed", "~> 0.17" + gem "kramdown-parser-gfm", "~> 1.1" end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem @@ -31,4 +16,3 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] # Performance-booster for watching directories on Windows gem "wdm", "~> 0.1.0" if Gem.win_platform? - diff --git a/_config.yml b/_config.yml index d74d011..b091423 100644 --- a/_config.yml +++ b/_config.yml @@ -35,8 +35,7 @@ github_editme_path: plocher/documentation-theme-jekyll/blob/gh-pages/ # if you're using Github, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank. -host: 127.0.0.1 -# the preview server used. Leave as is. +# host can be set via CLI; omit from committed config to avoid conflicts port: 4000 # the port where the preview is rendered. You can leave this as is unless you have other Jekyll builds using this same port that might cause conflicts. in that case, use another port such as 4006. @@ -54,8 +53,8 @@ highlighter: rouge description: >- # this means to ignore newlines until "baseurl:" Various things -baseurl: "/" # the subpath of your site, e.g. /blog -url: "/" # the base hostname & protocol for your site, e.g. http://example.com +baseurl: "/" # for user/organization sites, keep "/" +url: "https://spcoast.github.io" # canonical site URL github_username: plocher twitter_username: diff --git a/_versions/Adapter-IO4-200/1.0.md b/_versions/Adapter-IO4-200/1.0.md index 46a897d..59a4312 100644 --- a/_versions/Adapter-IO4-200/1.0.md +++ b/_versions/Adapter-IO4-200/1.0.md @@ -10,7 +10,8 @@ fab_date: 2013.05 status: released publish: yes image_path: Adapter-IO4-200-Graphic.png -tags: [eagle, SPCoast, Adapter]tagline: Simple RJ12/6 breakout board, for 0.200" screw terminals or direct wire soldering +tags: [eagle, SPCoast, Adapter] +tagline: Simple RJ12/6 breakout board, for 0.200" screw terminals or direct wire soldering overview: >