monitoring-jekyll-theme 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/statistiques.html +1 -1
- metadata +1 -11
- data/.ruby-version +0 -1
- data/Gemfile +0 -24
- data/Rakefile +0 -123
- data/_config_dev.yml +0 -4
- data/budget.json +0 -11
- data/composer.json +0 -5
- data/index.html +0 -111
- data/netlify.toml +0 -5
- data/package.json +0 -26
- data/perftest.sh +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44e25c50c5b993bb751d370369bb2e541139cfd7ec3e3dacad3b9c29d4cd774
|
4
|
+
data.tar.gz: 29332c39a0a42a01e79fad894bbf607463ed92e0e2d499915778eebf2db6d5e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 296fa7d04319cbb4c5e9e7106f8653afb8e854b73f7fd94f27b7e823444b8f533c859dcdce55533b987fa84e12361f2421f2f6db3c6e313f43345dcf3d00ffb8
|
7
|
+
data.tar.gz: e3893479f027d8b0a15682a770ce9593d82d584470597636a19e1027ab0154e2e0c03bd561a5829161daed6e82927b78339f81b3bc6fb9a988f951c2f2fee6d7
|
data/_includes/statistiques.html
CHANGED
@@ -348,7 +348,7 @@
|
|
348
348
|
{% endfor %}
|
349
349
|
{% endfor %}
|
350
350
|
{% endfor %}
|
351
|
-
{% if value.score < 0.6 %}<li class="{{ titlecategorie | slugify }}" data-title="{{ titlecategorie }}">{{ value.title }}{% if value.displayValue contains 'Potential' %} <b>{{ value.displayValue }}</b>{% endif %}</li>{% endif %}
|
351
|
+
{% if value.score < 0.6 %}<li class="{{ titlecategorie | slugify }}" data-title="{{ titlecategorie }}">{{ value.title | xml_escape}}{% if value.displayValue contains 'Potential' %} <b>{{ value.displayValue }}</b>{% endif %}</li>{% endif %}
|
352
352
|
{% endif %}
|
353
353
|
{% endfor %}
|
354
354
|
{% endfor %}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monitoring-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bertrandkeller
|
@@ -59,11 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- ".ruby-version"
|
63
|
-
- Gemfile
|
64
62
|
- README.md
|
65
|
-
- Rakefile
|
66
|
-
- _config_dev.yml
|
67
63
|
- _includes/accessibility.html
|
68
64
|
- _includes/competitors.html
|
69
65
|
- _includes/seo.html
|
@@ -81,12 +77,6 @@ files:
|
|
81
77
|
- assets/js/lighthouse.js
|
82
78
|
- assets/js/van11y-accessible-hide-show-aria.es6.js
|
83
79
|
- assets/js/van11y-accessible-tab-panel-aria.es6.js
|
84
|
-
- budget.json
|
85
|
-
- composer.json
|
86
|
-
- index.html
|
87
|
-
- netlify.toml
|
88
|
-
- package.json
|
89
|
-
- perftest.sh
|
90
80
|
homepage: https://github.com/bertrandkeller/monitoring-jekyll-theme
|
91
81
|
licenses:
|
92
82
|
- MIT
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.2
|
data/Gemfile
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
|
4
|
-
gem 'jekyll', :github => 'jekyll', :branch => 'master'
|
5
|
-
gem 'liquid', :git => 'https://github.com/Shopify/liquid.git', branch: 'master'
|
6
|
-
gem "liquid-c"
|
7
|
-
# gem 'sassc'
|
8
|
-
gem "monitoring-jekyll-theme"
|
9
|
-
|
10
|
-
group :development do
|
11
|
-
gem 'rake'
|
12
|
-
gem 'foreman'
|
13
|
-
end
|
14
|
-
|
15
|
-
group :test do
|
16
|
-
gem 'html-proofer'
|
17
|
-
end
|
18
|
-
|
19
|
-
group :jekyll_plugins do
|
20
|
-
gem 'jekyll-include-cache'
|
21
|
-
gem 'jekyll-tidy'
|
22
|
-
gem "autoprefixer-rails"
|
23
|
-
gem 'jekyll-commonmark'
|
24
|
-
end
|
data/Rakefile
DELETED
@@ -1,123 +0,0 @@
|
|
1
|
-
##############
|
2
|
-
# Jekyll tasks
|
3
|
-
##############
|
4
|
-
|
5
|
-
# Usage: rake serve, rake serve:prod
|
6
|
-
task :build => ["build:prod"]
|
7
|
-
namespace :build do
|
8
|
-
|
9
|
-
desc "Regenerate files for production"
|
10
|
-
task :prod do
|
11
|
-
puts "* Regenerating files for production... first time"
|
12
|
-
puts "rvm install ruby-2.6.2"
|
13
|
-
puts "rvm use ruby-2.6.2"
|
14
|
-
system "bundle exec jekyll build"
|
15
|
-
puts "* Finish"
|
16
|
-
end
|
17
|
-
|
18
|
-
desc "Regenerate files for development"
|
19
|
-
task :dev do
|
20
|
-
puts "* Regenerating files for development..."
|
21
|
-
system "JEKYLL_ENV=development bundle exec jekyll clean && bundle exec jekyll build --limit_posts 3 --incremental --config _config.yml,_config_dev.yml --profile"
|
22
|
-
end
|
23
|
-
|
24
|
-
desc "Regenerate files and drafts for development"
|
25
|
-
task :drafts do
|
26
|
-
puts "* Regenerating files and drafts for development..."
|
27
|
-
system "JEKYLL_ENV=development bundle exec jekyll clean && bundle exec jekyll build --config _config.yml,_config.dev.yml --profile --drafts"
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Usage: rake serve, rake serve:prod
|
32
|
-
task :serve => ["serve:dev"]
|
33
|
-
namespace :serve do
|
34
|
-
|
35
|
-
desc "Serve development Jekyll site locally"
|
36
|
-
task :dev do
|
37
|
-
puts "Starting up development Jekyll site server..."
|
38
|
-
system "JEKYLL_ENV=development bundle exec jekyll clean && bundle exec jekyll s --config _config.yml,_config_dev.yml --profile --trace --limit_posts 3"
|
39
|
-
end
|
40
|
-
|
41
|
-
desc "Serve development Jekyll site locally"
|
42
|
-
task :reload do
|
43
|
-
puts "Starting up development Jekyll site server with livereload..."
|
44
|
-
system "JEKYLL_ENV=development bundle exec jekyll clean && bundle exec jekyll s --config _config.yml,_config_dev.yml --profile --trace --limit_posts 3 --livereload port:6000"
|
45
|
-
end
|
46
|
-
|
47
|
-
desc "Serve production Jekyll site locally"
|
48
|
-
task :prod do
|
49
|
-
puts "Starting up production Jekyll site server..."
|
50
|
-
system "bundle exec jekyll s --no-watch"
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
##################
|
55
|
-
# Deployment tasks
|
56
|
-
##################
|
57
|
-
|
58
|
-
# Usage: rake rsync
|
59
|
-
desc "rsync the contents of ./_site to the server"
|
60
|
-
task :rsync do
|
61
|
-
puts "* rsyncing the contents of ./_site to the server"
|
62
|
-
system "dploy bk"
|
63
|
-
end
|
64
|
-
|
65
|
-
# Usage: rake deploy, rake deploy:win
|
66
|
-
task :deploy => ["deploy:prod"]
|
67
|
-
namespace :deploy do
|
68
|
-
desc "Regenerate and rsync production files and notify services of the update"
|
69
|
-
task :prod => ["build", "rsync", "notify"] do
|
70
|
-
end
|
71
|
-
|
72
|
-
# Usage: rake deploy:win
|
73
|
-
desc "Regenerate and rsync production files and notify services of the update (Windows systems)"
|
74
|
-
task :win => ["build:win", "rsync", "notify"] do
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
####################
|
81
|
-
# Notification tasks
|
82
|
-
####################
|
83
|
-
|
84
|
-
# Usage: rake notify
|
85
|
-
task :notify => ["notify:pingomatic", "notify:google", "notify:bing"]
|
86
|
-
desc "Notify various services that the site has been updated"
|
87
|
-
namespace :notify do
|
88
|
-
|
89
|
-
desc "Notify Ping-O-Matic"
|
90
|
-
task :pingomatic do
|
91
|
-
begin
|
92
|
-
require 'xmlrpc/client'
|
93
|
-
puts "* Notifying Ping-O-Matic that the site has updated"
|
94
|
-
XMLRPC::Client.new('rpc.pingomatic.com', '/').call('weblogUpdates.extendedPing', 'bertrandkeller.info' , 'https://bertrandkeller.info', 'https://bertrandkeller.info/feed.xml')
|
95
|
-
rescue LoadError
|
96
|
-
puts "! Could not ping ping-o-matic, because XMLRPC::Client could not be found."
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
desc "Notify Google of updated sitemap"
|
101
|
-
task :google do
|
102
|
-
begin
|
103
|
-
require 'net/http'
|
104
|
-
require 'uri'
|
105
|
-
puts "* Notifying Google that the site has updated"
|
106
|
-
Net::HTTP.get('www.google.com', '/webmasters/tools/ping?sitemap=' + URI.escape('https://bertrandkeller.info/sitemap.xml'))
|
107
|
-
rescue LoadError
|
108
|
-
puts "! Could not ping Google about our sitemap, because Net::HTTP or URI could not be found."
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
desc "Notify Bing of updated sitemap"
|
113
|
-
task :bing do
|
114
|
-
begin
|
115
|
-
require 'net/http'
|
116
|
-
require 'uri'
|
117
|
-
puts '* Notifying Bing that the site has updated'
|
118
|
-
Net::HTTP.get('www.bing.com', '/webmaster/ping.aspx?siteMap=' + URI.escape('https://bertrandkeller.info/sitemap.xml'))
|
119
|
-
rescue LoadError
|
120
|
-
puts "! Could not ping Bing about our sitemap, because Net::HTTP or URI could not be found."
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
data/_config_dev.yml
DELETED
data/budget.json
DELETED
data/composer.json
DELETED
data/index.html
DELETED
@@ -1,111 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
title: Monitoring
|
4
|
-
---
|
5
|
-
{% comment %}List all the date of files stocked{% endcomment %}
|
6
|
-
{% assign files = "" | split: ',' %}
|
7
|
-
{% for org_hash in site.data.accueil.gpagespeed %}
|
8
|
-
{% assign files = files | push: org_hash[0] %}
|
9
|
-
{% endfor %}
|
10
|
-
|
11
|
-
{% comment %}List the name of url tested{% endcomment %}
|
12
|
-
{{ site.urltested[0] }}
|
13
|
-
|
14
|
-
{% assign file = files | sort %}
|
15
|
-
{% assign filereversed = files | sort | reverse | first %}
|
16
|
-
{% assign datelastcrawl = filereversed %}
|
17
|
-
|
18
|
-
<!--/ STATISTIQUES -->
|
19
|
-
{% if site.zone.statistiques == true %}
|
20
|
-
<h2>Statistiques <small>- résultats de tests automatisés</small></h2>
|
21
|
-
|
22
|
-
<p>Éléments statistiques qui intéressent spécifiquement notre projet, suivons leur évolution dans le temps.</p>
|
23
|
-
{% include statistiques.html %}
|
24
|
-
{% endif %}
|
25
|
-
|
26
|
-
<!--/ ACTIONS -->
|
27
|
-
{% if site.zone.actions == true %}
|
28
|
-
<div class="block_action">
|
29
|
-
<h2>Actions <small>- corrections à appliquer</small></h2>
|
30
|
-
|
31
|
-
<p>Nous travaillons par itération en relançant des tests après chaque modification. Pour savoir si une action améliore la performance ou la dégrade.</p>
|
32
|
-
|
33
|
-
{% for action in site.actions limit:1 %}
|
34
|
-
<h3>{{ action.date | date_to_long_string }}</h3>
|
35
|
-
{{ action }}
|
36
|
-
{% endfor %}
|
37
|
-
|
38
|
-
<p>> <a href="/actions.html">Liste de toutes les actions</a></p>
|
39
|
-
</div>
|
40
|
-
{% endif %}
|
41
|
-
|
42
|
-
<!--/ SEO -->
|
43
|
-
{% if site.zone.seo == true %}
|
44
|
-
<h2>SEO <small>- optimisation pour les moteurs de recherche</small></h2>
|
45
|
-
|
46
|
-
<p>Liste des éléments non conformes par rapport aux règles usuelles du SEO données par les moteurs de recherche. L’objectif de cette zone est de la faire disparaître en corrigeant l’ensemble des problèmes.</p>
|
47
|
-
|
48
|
-
{% include_cached seo.html %}
|
49
|
-
{% endif %}
|
50
|
-
|
51
|
-
<!--/ KEYWORDS -->
|
52
|
-
{% if site.zone.competitors == true %}
|
53
|
-
<h2>Concurrence</h2>
|
54
|
-
<p>Recherche du postionnement par mot clefs et comparaison avec la concurrence.</p>
|
55
|
-
<h3>Position par mots clefs</h3>
|
56
|
-
<div class="screamingfrog">
|
57
|
-
{% for website in site.pagestested limit:1 %}
|
58
|
-
{% assign whatsmyserp = site.data.[website].whatsmyserp[datelastcrawl] %}
|
59
|
-
<ul class="flex-list">
|
60
|
-
{% for value in whatsmyserp %}
|
61
|
-
<li><b>{{ value.keyword }}</b> {% if value.position %}<span>{{ value.position }}</span>{% endif %}</li>
|
62
|
-
{% endfor %}
|
63
|
-
</ul>
|
64
|
-
{% endfor %}
|
65
|
-
</div>
|
66
|
-
{% endif %}
|
67
|
-
|
68
|
-
<!--/ COMPETITORS -->
|
69
|
-
{% if site.zone.competitors == true %}
|
70
|
-
{% for website in site.pagestested limit:1 %}
|
71
|
-
{% assign serpstat = site.data.[website].serpstat[datelastcrawl] %}
|
72
|
-
{% if serpstat %}
|
73
|
-
<h3>Concurrents</h3>
|
74
|
-
<div class="list-actions list-actions-grid">
|
75
|
-
<ol>
|
76
|
-
{% for value in serpstat %}
|
77
|
-
<li><a href="{{ value.domain }}">{{ value.domain }}</a> {% if value.FBshare %}<b>{{ value.FBshare }} {% include svg/facebook.svg %}</b>{% endif %}</li>
|
78
|
-
{% endfor %}
|
79
|
-
</ol>
|
80
|
-
</div>
|
81
|
-
<h3>Graphique de similarité</h3>
|
82
|
-
<div class="center">
|
83
|
-
{% include competitors.html %}
|
84
|
-
</div>
|
85
|
-
{% endif %}
|
86
|
-
{% endfor %}
|
87
|
-
{% endif %}
|
88
|
-
|
89
|
-
<!--/ ACCESSIBILITY -->
|
90
|
-
{% if site.zone.accessibility == true %}
|
91
|
-
<h2>Accessibilité <small>- qualité du code HTML</small></h2>
|
92
|
-
|
93
|
-
<p>Liste des problèmes d’accessibilité remontés de manière automatique. L’accessibilité est un indicateur de qualité des interfaces, il liste des morceaux de code mal écrits qui peuvent bloquer certains utilisateurs lors de leur navigation.</p>
|
94
|
-
|
95
|
-
{% include_cached accessibility.html %}
|
96
|
-
{% endif %}
|
97
|
-
|
98
|
-
<!--/ STYLES -->
|
99
|
-
{% if site.zone.styles == true %}
|
100
|
-
<h2>Styles <small>- styles des pages</small></h2>
|
101
|
-
|
102
|
-
<p>Contrôlons les styles du site. La CSS peut pénaliser les performances parce qu’elles sont trop lourdes mais aussi parce qu’elles sont incohérentes (Répétitions de propriétés, Polices trop lourdes,…)</p>
|
103
|
-
|
104
|
-
{% include styles.html %}
|
105
|
-
{% endif %}
|
106
|
-
|
107
|
-
<!--/ LIVEHOUSE -->
|
108
|
-
{% if site.zone.livehouse == true %}
|
109
|
-
<div class="livehouse"></div>
|
110
|
-
{% endif %}
|
111
|
-
|
data/netlify.toml
DELETED
data/package.json
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "monitoring",
|
3
|
-
"version": "1.0.0",
|
4
|
-
"description": "",
|
5
|
-
"main": "index.js",
|
6
|
-
"dependencies": {
|
7
|
-
"constyble": "^1.2.0",
|
8
|
-
"lighthouse": "^5.1.0",
|
9
|
-
"seolint": "^0.14.2",
|
10
|
-
"wallace-cli": "^2.2.1"
|
11
|
-
},
|
12
|
-
"devDependencies": {},
|
13
|
-
"scripts": {
|
14
|
-
"test": "tap test/*.js"
|
15
|
-
},
|
16
|
-
"repository": {
|
17
|
-
"type": "git",
|
18
|
-
"url": "git+https://github.com/bertrandkeller/leforestier-monitoring.git"
|
19
|
-
},
|
20
|
-
"author": "",
|
21
|
-
"license": "MIT",
|
22
|
-
"bugs": {
|
23
|
-
"url": "https://github.com/bertrandkeller/leforestier-monitoring/issues"
|
24
|
-
},
|
25
|
-
"homepage": "https://github.com/bertrandkeller/leforestier-monitoring#readme"
|
26
|
-
}
|
data/perftest.sh
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
|
2
|
-
# FUNCTION FOR PARSING _CONFIG.YML
|
3
|
-
function yaml() {
|
4
|
-
hashdot=$(gem list hash_dot);
|
5
|
-
if ! [ "$hashdot" != "" ]; then sudo gem install "hash_dot" ; fi
|
6
|
-
if [ -f $1 ];then
|
7
|
-
cmd=" Hash.use_dot_syntax = true; hash = YAML.load(File.read('$1'));";
|
8
|
-
if [ "$2" != "" ] ;then
|
9
|
-
cmd="$cmd puts hash.$2;"
|
10
|
-
else
|
11
|
-
cmd="$cmd puts hash;"
|
12
|
-
fi
|
13
|
-
ruby -r yaml -r hash_dot <<< $cmd;
|
14
|
-
fi
|
15
|
-
}
|
16
|
-
|
17
|
-
# DEFINING CONFIG
|
18
|
-
urlstested=($(yaml _config.yml urlstested))
|
19
|
-
pagestested=($(yaml _config.yml pagestested))
|
20
|
-
|
21
|
-
# CREATE VARIABLES
|
22
|
-
echo 'Create this variables'
|
23
|
-
|
24
|
-
for ((idx=0; idx<${#urlstested[@]}; idx++)); do
|
25
|
-
echo "urlpage$idx": "${urlstested[idx]}"
|
26
|
-
eval urlpage$idx=${urlstested[idx]}
|
27
|
-
done
|
28
|
-
|
29
|
-
for ((idx=0; idx<${#pagestested[@]}; idx++)); do
|
30
|
-
echo "namepage$idx": "${pagestested[idx]}"
|
31
|
-
eval namepage$idx=${pagestested[idx]}
|
32
|
-
done
|
33
|
-
|
34
|
-
# CREATE FOLDER NAMESPACE IN _data
|
35
|
-
if [ ! -d _data/$namepage0 ]; then
|
36
|
-
mkdir -p _data/$namepage0;
|
37
|
-
fi
|
38
|
-
|
39
|
-
# SPECIFICS PAGES TESTS
|
40
|
-
for ((idx=0; idx<${#urlstested[@]}; idx++)); do
|
41
|
-
echo 'Tests for this value :'
|
42
|
-
urlpage="urlpage${idx}" ; echo "url: ${!urlpage}"
|
43
|
-
namepage="namepage${idx}" ; echo "${!namepage}"
|
44
|
-
if [ ! -d _data/${!namepage} ]; then
|
45
|
-
mkdir -p _data/${!namepage};
|
46
|
-
fi
|
47
|
-
axe ${!urlpage} --save _data/${!namepage}/axe/$(date '+%Y-%m-%d').json
|
48
|
-
gpagespeed ${!urlpage} > _data/${!namepage}/gpagespeed/$(date '+%Y-%m-%d').json
|
49
|
-
yellowlabtools ${!urlpage} > _data/${!namepage}/yellowlabtools/$(date '+%Y-%m-%d').json
|
50
|
-
echo ${!urlpage}
|
51
|
-
lighthouse ${!urlpage} --output json --output-path _data/${!namepage}/lighthouse/$(date '+%Y-%m-%d').json
|
52
|
-
done
|
53
|
-
|
54
|
-
# GENERAL SITE TESTS
|
55
|
-
echo 'curl -o download/css/'$(date '+%Y-%m-%d')'.css https://extract-css.now.sh/'${urlpage0//https:\/\//}
|
56
|
-
curl -o download/css/$(date '+%Y-%m-%d').css https://extract-css.now.sh/${urlpage0//https:\/\//}
|
57
|
-
|
58
|
-
./vendor/bin/seocli -u $urlpage0 -d 3 -f json > _data/$namepage0/seocli/$(date '+%Y-%m-%d').json
|
59
|
-
stylestats download/css/$(date '+%Y-%m-%d').css -f json > _data/$namepage0/stylestats/$(date '+%Y-%m-%d').json
|
60
|
-
wallace $urlpage0 -f json > _data/$namepage0/wallace/$(date '+%Y-%m-%d').json
|
61
|
-
|
62
|
-
# https://seobutler.com/badass-seo-automate-screaming-frog/
|
63
|
-
# open "/Applications/Screaming Frog SEO Spider.app" --args --crawl $urlpage0
|
64
|
-
|
65
|
-
# curl https://www.googleapis.com/pagespeedonline/v5/runPagespeed\?url\=https://www.leforestier-immobilier.com/fr&key=AIzaSyATvQKCg0r2tKjt9OhEHXuqlpVMjHby730 > aa.json
|