jekyll-report-dashboard 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9785e357c759cf29fd19c9ae4f050bf7ca547969e43c5f44f32713f0d526c15d
4
- data.tar.gz: 7d4bc5d69d306f07177296a268fac6417969e50ad1022581b98ae181a48a2ddb
3
+ metadata.gz: af76d4dd8cad5308598a767d18590f93a1a1849595a5331923f5162956a927d0
4
+ data.tar.gz: c6fd42880da9f74ccc411eff4fa297f57599eb51c68fc1893fa79f37de070b3c
5
5
  SHA512:
6
- metadata.gz: 01a5e4062cd69bf7739060e76cfb2a6ecba26f74b8f58b3c4eebe83ac05337cc2be7a13310a29a8d7ab74f301a1f0532cdf1b23504be95405c15b8c0a32aec05
7
- data.tar.gz: 8473544521ae9339d3115eae013e5bfb72271baca46a35a8226471629d9547a8ec3a88b04a500006c68a5511d2d9b29b2c64f5b1677468e3229327107d7f9fa2
6
+ metadata.gz: 6ab1bba2dd0a533c8ded24f0aa2e661fc26734744e2277f2af5fddef690cfedfc535ae698517ac04829cc0f00a91fe47c41ee0ec7450ddf2a6ce498195389b81
7
+ data.tar.gz: 9104a7ad76c90e87f99522d16d6e79a4324321c737f3fbd302c16e5cf8aa2b89ff5db9da2bb7896a770094dc1e4ab687f7db154abe016cda7d2603f6b6968d4a
@@ -14,15 +14,15 @@
14
14
  <!-- Liquid provides a helper method to capitalize text -->
15
15
  {{ name | capitalize }}
16
16
  </div>
17
- {% capture status %}
18
- {% if values.pct >= site.coverage.pass.[name] %}
17
+ {%- capture status -%}
18
+ {%- if values.pct >= site.coverage.pass.[name] -%}
19
19
  text-pass
20
- {% elsif values.pct > site.coverage.fail.[name] %}
20
+ {%- elsif values.pct > site.coverage.fail.[name] -%}
21
21
  text-warn
22
- {% else %}
22
+ {%- else -%}
23
23
  text-fail
24
- {% endif %}
25
- {% endcapture %}
24
+ {%- endif -%}
25
+ {%- endcapture -%}
26
26
  <!-- use the custom coverage_status filter with the stat name to get the correct styling for the percent -->
27
27
  <div class="font-bold text-xl @sm:text-2xl @md:text-3xl @lg:text-4xl {{ status }}">
28
28
  <!-- Liquid provides a helper method for rounding floats to a number -->
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+ <div>
5
+ <!-- Get the data from the `total` field in `_data/coverage/coverage-summary.json` and assign it to a variable called `total`. -->
6
+ {% assign total = site.data.coverage.coverage-summary.total %}
7
+ <!-- Include the html snippet in `_includes/coverage-summary.html` with the parameters "main" as `branch` and the totals from the data as `total`. -->
8
+ {% include coverage-summary.html branch="main" total=total %}
9
+ </div>
@@ -0,0 +1,47 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="md:grid md:grid-cols-3 md:gap-8 md:items-start md:justify-center">
5
+ <div class="md:col-start-1 md:col-span-2">
6
+ <div class="">
7
+ <h2 class="md:mt-0">Main</h2>
8
+
9
+ <h3>Code Coverage</h3>
10
+ <!--
11
+ Jekyll provides access to YAML, JSON, CSV, and TSV in the `_data` directory using `site.data`. It supports retrieving data nested in directories, files, and objects. https://jekyllrb.com/docs/datafiles/
12
+
13
+ Get the data from the `total` field in `_data/coverage/coverage-summary.json` and assign it to a variable called `total`.
14
+ -->
15
+ {% assign total = site.data.coverage.coverage-summary.total %}
16
+ <!--
17
+ Jekyll uses includes to create reusable snippets of html code. Data can be passed through to the snippet using parameters. https://jekyllrb.com/docs/includes/
18
+
19
+ Include the html snippet in `_includes/coverage-summary.html` with the parameters "main" as `branch` and the totals from the data as `total`.
20
+ -->
21
+ {% include coverage-summary.html branch="main" total=total %}
22
+
23
+ <!-- Playwright dashboard added earlier -->
24
+ <h3>Playwright</h3>
25
+ <!-- Get the data from `_data/playwright-reports/main.json` and assign it to a variable called `data`. -->
26
+ {% assign data = site.data.playwright-reports.main %}
27
+ <!-- Jekyll uses Liquid filters to provide helper functions. https://jekyllrb.com/docs/liquid/filters/ -->
28
+ <!--
29
+ Include the html snippet in `_includes/playwright-summary.html` with the parameters "main" as `branch`,
30
+ the data variable as `data`, and "/playwright-reports/main.html" as `url`.
31
+ -->
32
+ {% include playwright-summary.html branch="main" data=data url="/playwright-reports/main.html" %}
33
+ </div>
34
+
35
+ <div class="">
36
+ <h2>Latest Reports from Branches</h2>
37
+ <!-- Include the html snippet from `_includes/playwright-branch-list.html` -->
38
+ {% include playwright-branch-list.html %}
39
+ </div>
40
+ </div>
41
+
42
+ <div class="md:mt-[-2rem] md:col-start-3">
43
+ {% for post in site.categories["release"] limit: 3 %}
44
+ {% include release-note.html post=post content=post.content %}
45
+ {% endfor %}
46
+ </div>
47
+ </div>
@@ -0,0 +1,4 @@
1
+ <div>
2
+ <!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
3
+ {% include playwright-branch-list.html %}
4
+ </div>
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <div>
6
+ <h2>Main
7
+ </h2>
8
+ <!-- Get the data from `_data/playwright-reports/main.json` and assign it to a variable called `data`. -->
9
+ {% assign data = site.data.playwright-reports.main %}
10
+ <!--
11
+ Include the html snippet in `_includes/playwright-summary.html` with the parameters "main" as `branch`,
12
+ the data variable as `data`, and "/playwright-reports/main.html" as `url`.
13
+ -->
14
+ {% include playwright-summary.html branch="main" data=data url="/playwright-reports/main.html" %}
15
+
16
+ <div class="mt-8">
17
+ <h2>Latest Reports from Branches
18
+ </h2>
19
+ <!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
20
+ {% include playwright-branch-list.html %}
21
+ </div>
22
+ </div>
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+ {% for post in site.categories["release"] %}
5
+ {% include release-note.html post=post content=post.content %}
6
+ {% endfor %}
@@ -6,9 +6,13 @@ module Jekyll
6
6
  @dir = dir
7
7
  @name = 'index.html'
8
8
 
9
- self.process(@name)
10
- self.read_yaml(File.join(base, '_layouts'), 'playwright-branch.html')
11
- self.data['branch'] = branch
9
+ process(@name)
10
+
11
+ @data = site.layouts['playwright-branch'].data
12
+ @content = site.layouts['playwright-branch'].content
13
+
14
+ @data['branch'] = branch
15
+ @data['title'] = branch
12
16
  end
13
17
  end
14
18
 
data/coverage.markdown CHANGED
@@ -1,14 +1,8 @@
1
1
  ---
2
- layout: page
2
+ layout: coverage-report
3
3
  # the header for the page
4
4
  title: "Code Coverage Report"
5
5
  # the link to page https://jekyllrb.com/docs/permalinks/
6
6
  permalink: coverage-report/
7
7
  ---
8
8
 
9
- <div>
10
- <!-- Get the data from the `total` field in `_data/coverage/coverage-summary.json` and assign it to a variable called `total`. -->
11
- {% assign total = site.data.coverage.coverage-summary.total %}
12
- <!-- Include the html snippet in `_includes/coverage-summary.html` with the parameters "main" as `branch` and the totals from the data as `total`. -->
13
- {% include coverage-summary.html branch="main" total=total %}
14
- </div>
data/index.markdown CHANGED
@@ -1,48 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: home
3
3
  ---
4
4
 
5
- <div class="md:grid md:grid-cols-3 md:gap-8 md:items-start md:justify-center">
6
- <div class="md:col-start-1 md:col-span-2">
7
- <div class="">
8
- <h2 class="md:mt-0">Main</h2>
9
5
 
10
- <h3>Code Coverage</h3>
11
- <!--
12
- Jekyll provides access to YAML, JSON, CSV, and TSV in the `_data` directory using `site.data`. It supports retrieving data nested in directories, files, and objects. https://jekyllrb.com/docs/datafiles/
13
-
14
- Get the data from the `total` field in `_data/coverage/coverage-summary.json` and assign it to a variable called `total`.
15
- -->
16
- {% assign total = site.data.coverage.coverage-summary.total %}
17
- <!--
18
- Jekyll uses includes to create reusable snippets of html code. Data can be passed through to the snippet using parameters. https://jekyllrb.com/docs/includes/
19
-
20
- Include the html snippet in `_includes/coverage-summary.html` with the parameters "main" as `branch` and the totals from the data as `total`.
21
- -->
22
- {% include coverage-summary.html branch="main" total=total %}
23
-
24
- <!-- Playwright dashboard added earlier -->
25
- <h3>Playwright</h3>
26
- <!-- Get the data from `_data/playwright-reports/main.json` and assign it to a variable called `data`. -->
27
- {% assign data = site.data.playwright-reports.main %}
28
- <!-- Jekyll uses Liquid filters to provide helper functions. https://jekyllrb.com/docs/liquid/filters/ -->
29
- <!--
30
- Include the html snippet in `_includes/playwright-summary.html` with the parameters "main" as `branch`,
31
- the data variable as `data`, and "/playwright-reports/main.html" as `url`.
32
- -->
33
- {% include playwright-summary.html branch="main" data=data url="/playwright-reports/main.html" %}
34
- </div>
35
-
36
- <div class="">
37
- <h2>Latest Reports from Branches</h2>
38
- <!-- Include the html snippet from `_includes/playwright-branch-list.html` -->
39
- {% include playwright-branch-list.html %}
40
- </div>
41
- </div>
42
-
43
- <div class="md:mt-[-2rem] md:col-start-3">
44
- {% for post in site.categories["release"] limit: 3 %}
45
- {% include release-note.html post=post content=post.content %}
46
- {% endfor %}
47
- </div>
48
- </div>
@@ -1,12 +1,7 @@
1
1
  ---
2
- layout: page
2
+ layout: playwright-branch-list
3
3
  # the header for the page
4
4
  title: "Playwright Reports for Branches"
5
5
  # the link to page https://jekyllrb.com/docs/permalinks/
6
6
  permalink: playwright-reports/branches/
7
7
  ---
8
-
9
- <div>
10
- <!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
11
- {% include playwright-branch-list.html %}
12
- </div>
@@ -1,26 +1,7 @@
1
1
  ---
2
- layout: page
2
+ layout: playwright-reports
3
3
  # the header for the page
4
4
  title: "Playwright Reports"
5
5
  # the link to page https://jekyllrb.com/docs/permalinks/
6
6
  permalink: playwright-reports/
7
7
  ---
8
-
9
- <div>
10
- <h2>Main
11
- </h2>
12
- <!-- Get the data from `_data/playwright-reports/main.json` and assign it to a variable called `data`. -->
13
- {% assign data = site.data.playwright-reports.main %}
14
- <!--
15
- Include the html snippet in `_includes/playwright-summary.html` with the parameters "main" as `branch`,
16
- the data variable as `data`, and "/playwright-reports/main.html" as `url`.
17
- -->
18
- {% include playwright-summary.html branch="main" data=data url="/playwright-reports/main.html" %}
19
-
20
- <div class="mt-8">
21
- <h2>Latest Reports from Branches
22
- </h2>
23
- <!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
24
- {% include playwright-branch-list.html %}
25
- </div>
26
- </div>
data/releases.markdown CHANGED
@@ -1,9 +1,5 @@
1
1
  ---
2
- layout: page
2
+ layout: release-notes
3
3
  title: Release Notes
4
4
  permalink: releases/
5
5
  ---
6
-
7
- {% for post in site.categories["release"] %}
8
- {% include release-note.html post=post content=post.content %}
9
- {% endfor %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-report-dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiffany Forkner
@@ -66,11 +66,16 @@ files:
66
66
  - _includes/playwright-stat.html
67
67
  - _includes/playwright-summary.html
68
68
  - _includes/release-note.html
69
+ - _layouts/coverage-report.html
69
70
  - _layouts/default.html
71
+ - _layouts/home.html
70
72
  - _layouts/page.html
73
+ - _layouts/playwright-branch-list.html
71
74
  - _layouts/playwright-branch.html
75
+ - _layouts/playwright-reports.html
72
76
  - _layouts/post.html
73
77
  - _layouts/release-note.html
78
+ - _layouts/release-notes.html
74
79
  - _plugins/playwright-branch-index-generator.rb
75
80
  - assets/css/styles.css
76
81
  - coverage.markdown