mirror of
https://github.com/thangisme/notes.git
synced 2024-12-21 23:16:48 -05:00
commit
3c584e2d8a
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -17,6 +17,19 @@ jobs:
|
||||
--volume="${{ github.workspace }}:/srv/jekyll" \
|
||||
jekyll/builder:latest /bin/bash -c "gem install bundler && chmod 777 /srv/jekyll && jekyll build"
|
||||
|
||||
search:
|
||||
name: Test search rake command
|
||||
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 777 /srv/jekyll && jekyll build && bundle exec just-the-docs rake search:init"
|
||||
|
||||
css:
|
||||
name: Stylelint
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -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: '&', '&' }}",
|
||||
"content": "'+content+'",
|
||||
"title": "{{ page.title | replace: \'&\', \'&\' }}",
|
||||
"content": "\'+content+\'",
|
||||
"url": "{{ page.url | absolute_url }}",
|
||||
"relUrl": "{{ page.url }}"
|
||||
}{% assign comma = true %}
|
||||
|
Loading…
Reference in New Issue
Block a user