Commit aff101d2 authored by Sérgio A. Kopplin's avatar Sérgio A. Kopplin Committed by Andres Maldonado
Browse files

[Upstream] Cherry-pick some changes from 6f7d4b3d

* https on most links (it's not needed for localhost)
* remove github workflow
* update Travis and Rake files (not used here, but could be used in the 
future)
* Indent correctly _config.yml

https://github.com/sergiokopplin/indigo/commit/6f7d4b3d3473db330a3ceeb8cacd3207aeb42e6b
parent 42bc611f
name: Jekyll Deploy
on:
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build & Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.GITHUB_REPOSITORY }}
GITHUB_ACTOR: ${{ github.GITHUB_ACTOR }}
uses: sylvainmetayer/jekyll-deploy-gh-pages@master
language: ruby
rvm:
- 2.2.5
- 2.6.3
before_script:
- chmod +x travis.sh
- chmod +x ./script/cibuild
script: ./travis.sh
script: ./script/cibuild
env:
global:
......@@ -14,4 +14,3 @@ env:
branches:
only:
- gh-pages
- next
# FAQ:
- Article: How to Install Jekyll - by [Arti Annaswamy](https://github.com/aannasw). [Part 1](http://artiannaswamy.com/build-a-github-blog-part-1) and [Part 2](http://artiannaswamy.com/build-a-github-blog-part-2)
- Article: How to Install Jekyll - by [Arti Annaswamy](https://github.com/aannasw). [Part 1](https://artiannaswamy.com/build-a-github-blog-part-1) and [Part 2](https://artiannaswamy.com/build-a-github-blog-part-2)
- [How to build and run a Jekyll site in a Docker container](https://mehmandarov.com/disposable-docker-containers/)
- [Emojis in the projects list?](https://github.com/sergiokopplin/indigo/issues/72)
- [Nokogiri dependencie problems?](https://github.com/sergiokopplin/indigo/issues/81)
- [Syncing a Fork](https://help.github.com/articles/syncing-a-fork/)
- [Tests with Travis CI - Tutorial](http://www.raywenderlich.com/109418/travis-ci-tutorial)
- [Tests with Travis CI - Tutorial](https://www.raywenderlich.com/109418/travis-ci-tutorial)
- [Why Sass?](https://github.com/sergiokopplin/indigo/issues/117)
- [Jekyll Example](https://github.com/barryclark/jekyll-now) - how to clone, run and edit jekyll configs
source 'http://rubygems.org'
source 'https://rubygems.org'
group :jekyll_plugins do
gem 'jekyll', "~> 4.0"
......
require 'html/proofer'
#!/usr/bin/env ruby
# rake test
desc "build and test website"
task :test do
sh "bundle exec jekyll build"
HTML::Proofer.new("_site", {:href_ignore=> ['http://localhost:4000'], :verbose => true}).run
end
require 'html-proofer'
HTMLProofer.check_directory("./_site").run
......@@ -154,8 +154,7 @@ animation: true
# add default values to specific pages or layouts
defaults:
-
scope:
- scope:
path: "" # an empty string here means all files in the project
layout: "post"
values:
......@@ -179,4 +178,13 @@ compress_html:
- development
- stage
exclude: ["travis.sh", "Rakefile", "README.md", "Gemfile", "Gemfile.lock", "FAQ.md", "node_modules", "vendor"]
exclude:
[
"travis.sh",
"README.md",
"Gemfile",
"Gemfile.lock",
"FAQ.md",
"node_modules",
"vendor",
]
......@@ -14,6 +14,6 @@
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section>
---
# Jekyll layout that compresses HTML
# v3.1.0
# http://jch.penibelst.de/
# https://jch.penibelst.de/
# © 2014–2015 Anatol Broder
# MIT License
---
......
#!/usr/bin/env bash
set -e # halt script on error
echo 'Testing travis...'
bundle exec jekyll build
bundle exec htmlproofer ./_site --http-status-ignore "403"
bundle exec htmlproofer ./_site --disable-external
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment