Skip to content

Commit

Permalink
Merge pull request mmistakes#305 from pmarsceill/v0.2.8
Browse files Browse the repository at this point in the history
v0.2.8
  • Loading branch information
pmarsceill committed Apr 23, 2020
2 parents a04f45d + 4636786 commit 8fd6edd
Show file tree
Hide file tree
Showing 5 changed files with 248 additions and 47 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: CI

jobs:

jekyll:
name: Build Jekyll site
jekyll-latest:
name: Build Jekyll site (latest)
runs-on: ubuntu-latest
steps:

Expand All @@ -15,8 +15,21 @@ jobs:
run: |
docker run --rm \
--volume="${{ github.workspace }}:/srv/jekyll" \
jekyll/builder:3.8.5 /bin/bash -c "chmod 777 /srv/jekyll && jekyll build"
jekyll/builder:latest /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && jekyll build && bundle exec just-the-docs rake search:init"
jekyll-3-8-5:
name: Build Jekyll site (v3.8.5)
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@master

- name: Build the site in the jekyll/builder container
run: |
docker run --rm \
--volume="${{ github.workspace }}:/srv/jekyll" \
jekyll/builder:3.8.5 /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && jekyll build && bundle exec just-the-docs rake search:init"
css:
name: Stylelint
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions just-the-docs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "just-the-docs"
spec.version = "0.2.7"
spec.version = "0.2.8"
spec.authors = ["Patrick Marsceill"]
spec.email = ["patrick.marsceill@gmail.com"]

Expand All @@ -12,10 +12,10 @@ Gem::Specification.new do |spec|

spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README)}i) }
spec.executables << 'just-the-docs'

spec.add_runtime_dependency "jekyll", "~> 3.8.5"

spec.add_runtime_dependency "bundler", "~> 2.1.4"
spec.add_runtime_dependency "jekyll", ">= 3.8.5", "< 4.1.0"
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.0"
spec.add_runtime_dependency "rake", "~> 12.3.1"
spec.add_runtime_dependency "rake", ">= 12.3.1", "< 13.1.0"

spec.add_development_dependency "bundler", "~> 2.0.1"
end
4 changes: 2 additions & 2 deletions lib/tasks/search.rake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace :search do
{
{% assign comma = false %}
{% for page in site.html_pages %}{% if page.search_exclude != true %}{% if comma == true%},{% endif %}"{{ forloop.index0 }}": {
"title": "{{ page.title | replace: '&amp;', '&' }}",
"content": "'+content+'",
"title": "{{ page.title | replace: \'&amp;\', \'&\' }}",
"content": "\'+content+\'",
"url": "{{ page.url | absolute_url }}",
"relUrl": "{{ page.url }}"
}{% assign comma = true %}
Expand Down
Loading

0 comments on commit 8fd6edd

Please # to comment.