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 language: ruby
rvm: rvm:
- 2.2.5 - 2.6.3
before_script: before_script:
- chmod +x travis.sh - chmod +x ./script/cibuild
script: ./travis.sh script: ./script/cibuild
env: env:
global: global:
...@@ -14,4 +14,3 @@ env: ...@@ -14,4 +14,3 @@ env:
branches: branches:
only: only:
- gh-pages - gh-pages
- next
# FAQ: # 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/) - [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) - [Emojis in the projects list?](https://github.com/sergiokopplin/indigo/issues/72)
- [Nokogiri dependencie problems?](https://github.com/sergiokopplin/indigo/issues/81) - [Nokogiri dependencie problems?](https://github.com/sergiokopplin/indigo/issues/81)
- [Syncing a Fork](https://help.github.com/articles/syncing-a-fork/) - [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) - [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 - [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 group :jekyll_plugins do
gem 'jekyll', "~> 4.0" gem 'jekyll', "~> 4.0"
......
require 'html/proofer' #!/usr/bin/env ruby
# rake test require 'html-proofer'
desc "build and test website" HTMLProofer.check_directory("./_site").run
task :test do
sh "bundle exec jekyll build"
HTML::Proofer.new("_site", {:href_ignore=> ['http://localhost:4000'], :verbose => true}).run
end
...@@ -52,67 +52,67 @@ gitlab: https://gitlab.utc.fr/elus_etu/ ...@@ -52,67 +52,67 @@ gitlab: https://gitlab.utc.fr/elus_etu/
# email: myemail@gmail.com # email: myemail@gmail.com
authors: authors:
eluscevu: eluscevu:
name: Élu·e·s étu CÉVU name: Élu·e·s étu CÉVU
external-image: false external-image: false
picture: assets/images/profile_pictures/CEVU.png picture: assets/images/profile_pictures/CEVU.png
email: eluscevu@utc.fr email: eluscevu@utc.fr
elusca: elusca:
name: Élu·e·s étu CA name: Élu·e·s étu CA
external-image: false external-image: false
picture: assets/images/profile_pictures/CA.png picture: assets/images/profile_pictures/CA.png
email: elusca@utc.fr email: elusca@utc.fr
elusced: elusced:
name: Élu·e·s étu CED name: Élu·e·s étu CED
external-image: false external-image: false
picture: assets/images/profile_pictures/CED.png picture: assets/images/profile_pictures/CED.png
# email: elusced@utc.fr # email: elusced@utc.fr
eluscpm: eluscpm:
name: Élu·e·s étu CPM name: Élu·e·s étu CPM
external-image: false external-image: false
picture: assets/images/profile_pictures/CPM.png picture: assets/images/profile_pictures/CPM.png
# email: eluscpm@utc.fr # email: eluscpm@utc.fr
eluscs: eluscs:
name: Élu·e·s étu CS name: Élu·e·s étu CS
external-image: false external-image: false
picture: assets/images/profile_pictures/CS.png picture: assets/images/profile_pictures/CS.png
# email: eluscs@utc.fr # email: eluscs@utc.fr
elusgi: elusgi:
name: Élu·e·s étu GI name: Élu·e·s étu GI
external-image: false external-image: false
picture: assets/images/profile_pictures/GI.png picture: assets/images/profile_pictures/GI.png
email: elusgi@utc.fr email: elusgi@utc.fr
elusgu: elusgu:
name: Élu·e·s étu GU name: Élu·e·s étu GU
external-image: false external-image: false
picture: assets/images/profile_pictures/GU.png picture: assets/images/profile_pictures/GU.png
email: elusgu@utc.fr email: elusgu@utc.fr
elusgp: elusgp:
name: Élu·e·s étu GP name: Élu·e·s étu GP
external-image: false external-image: false
picture: assets/images/profile_pictures/GP.png picture: assets/images/profile_pictures/GP.png
email: elusgp@utc.fr email: elusgp@utc.fr
elusgb: elusgb:
name: Élu·e·s étu GB name: Élu·e·s étu GB
external-image: false external-image: false
picture: assets/images/profile_pictures/GB.png picture: assets/images/profile_pictures/GB.png
email: elusgb@utc.fr email: elusgb@utc.fr
elusim: elusim:
name: Élu·e·s étu IM name: Élu·e·s étu IM
external-image: false external-image: false
picture: assets/images/profile_pictures/IM.png picture: assets/images/profile_pictures/IM.png
email: elusim@utc.fr email: elusim@utc.fr
elustc: elustc:
name: Élu·e·s étu TC name: Élu·e·s étu TC
external-image: false external-image: false
picture: assets/images/profile_pictures/TC.png picture: assets/images/profile_pictures/TC.png
# email: elustc@utc.fr # email: elustc@utc.fr
amaldona: amaldona:
name: Andrés Maldonado name: Andrés Maldonado
bio: Élu CÉVU/GI bio: Élu CÉVU/GI
external-image: false external-image: false
picture: assets/images/profile_pictures/amaldona.png picture: assets/images/profile_pictures/amaldona.png
email: amaldona@etu.utc.fr email: amaldona@etu.utc.fr
# do you want a larger site? change the option below # do you want a larger site? change the option below
# options: [normal, large] | default: normal # options: [normal, large] | default: normal
...@@ -121,11 +121,11 @@ width: normal ...@@ -121,11 +121,11 @@ width: normal
# if you do/don't need pagination, toggle 'enabled' between true/false below # if you do/don't need pagination, toggle 'enabled' between true/false below
pagination: pagination:
enabled: false enabled: false
sort_reverse: true # display recent posts first sort_reverse: true # display recent posts first
title: ':title' # Changing this will mess up the header display logic title: ':title' # Changing this will mess up the header display logic
per_page: 5 per_page: 5
permalink: "/:num/" # pagination link that will be appended permalink: "/:num/" # pagination link that will be appended
# if you don't need projects, comment the *projects* configs below # if you don't need projects, comment the *projects* configs below
projects: true projects: true
...@@ -154,8 +154,7 @@ animation: true ...@@ -154,8 +154,7 @@ animation: true
# add default values to specific pages or layouts # add default values to specific pages or layouts
defaults: defaults:
- - scope:
scope:
path: "" # an empty string here means all files in the project path: "" # an empty string here means all files in the project
layout: "post" layout: "post"
values: values:
...@@ -174,9 +173,18 @@ plugins: ...@@ -174,9 +173,18 @@ plugins:
compress_html: compress_html:
ignore: ignore:
envs: envs:
- development - development
- stage - 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 @@ ...@@ -14,6 +14,6 @@
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})(); })();
</script> </script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <noscript>Please enable JavaScript to view the <a href="https://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> <a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section> </section>
--- ---
# Jekyll layout that compresses HTML # Jekyll layout that compresses HTML
# v3.1.0 # v3.1.0
# http://jch.penibelst.de/ # https://jch.penibelst.de/
# © 2014–2015 Anatol Broder # © 2014–2015 Anatol Broder
# MIT License # MIT License
--- ---
......
#!/usr/bin/env bash #!/usr/bin/env bash
set -e # halt script on error set -e # halt script on error
echo 'Testing travis...'
bundle exec jekyll build 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