jekyll-report-dashboard 0.1.6 → 0.1.8

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: 0bafcd1abc38998118cd5fc5ef5ba500ebf2a73085f16dda0aa8758bd0c906c4
4
- data.tar.gz: b204e6e0a97999a050bab44793c0a278b3d22846198957614d26cbb90af5f84b
3
+ metadata.gz: f5f5808b13b6c453ce360399837b04c74088fb3e1e4538339008dd7589c07a9e
4
+ data.tar.gz: 79bfdf0705d943334a784fb0bb751026550738546751187f223d9ed1ec285e51
5
5
  SHA512:
6
- metadata.gz: 9849b8f76f7b253b3ce73677a52f6356b0ddb16c052913c6f3d5888b0b10cfda859d50a4ff2c51fe838ef41f1506ba00ff017b9c5e9039150d10454f874b7774
7
- data.tar.gz: 7dda15aa6b1ea0f615474fe6cbd6fdd2fb41da31ef60a0638317b6e0adcf033504ed188385b79dc35d05461ea7d224a59de1f64f26ee95be3ef5744650d07af7
6
+ metadata.gz: 13af548fde3b7361d4e5187149b6268fcf317f32702a15684e62c91451aa993bc14facbf9385436e1eece48ee4dee080b1c6a93125fe00816e0ece2d2f63e162
7
+ data.tar.gz: 77e5fa8479170e108fde47da323540ad629de477d0901cf3b0f2b2d9c80fffcdab605637a06ae19db614c933042b38c220691eb3ae7d7e58b46493d180ec08cd
@@ -13,8 +13,8 @@
13
13
 
14
14
  <!-- get all of the run_ids in the branch, then reverse the list and get the first one -->
15
15
  {% assign runs = "" | split: ',' %}
16
- {% for run_id in site.data.playwright-reports.branches[branch_name] %}
17
- {% assign runs = runs | push: run_id %}
16
+ {% for run in site.data.playwright-reports.branches[branch_name] %}
17
+ {% assign runs = runs | push: run[0] %}
18
18
  {% endfor %}
19
19
 
20
20
  {% assign latest_run_id = runs | reverse | first %}
@@ -4,8 +4,8 @@ layout: page
4
4
 
5
5
  <!-- get the run ids for the branch and sort them by newest to oldest -->
6
6
  {% assign unsorted_runs = "" | split: ',' %}
7
- {% for run_id in site.data.playwright-reports.branches[page.branch] %}
8
- {% assign unsorted_runs = unsorted_runs | push: run_id %}
7
+ {% for run in site.data.playwright-reports.branches[page.branch] %}
8
+ {% assign unsorted_runs = unsorted_runs | push: run[0] %}
9
9
  {% endfor %}
10
10
 
11
11
  {% assign run_ids = unsorted_runs | reverse %}
@@ -5,14 +5,15 @@ module Jekyll
5
5
  @base = base
6
6
  @dir = dir
7
7
  @name = 'index.html'
8
-
8
+
9
9
  process(@name)
10
10
 
11
- @data = site.layouts['playwright-branch'].data
12
- @content = site.layouts['playwright-branch'].content
11
+ @data = {
12
+ 'layout' => 'playwright-branch',
13
+ 'title' => branch,
14
+ 'branch' => branch
15
+ }
13
16
 
14
- @data['branch'] = branch
15
- @data['title'] = branch
16
17
  end
17
18
  end
18
19
 
data/coverage.markdown CHANGED
@@ -1,8 +1,14 @@
1
1
  ---
2
- layout: coverage-report
2
+ layout: page
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,5 +1,48 @@
1
1
  ---
2
- layout: home
2
+ layout: default
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>
5
9
 
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,7 +1,12 @@
1
1
  ---
2
- layout: playwright-branch-list
2
+ layout: page
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,7 +1,26 @@
1
1
  ---
2
- layout: playwright-reports
2
+ layout: page
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,5 +1,9 @@
1
1
  ---
2
- layout: release-notes
2
+ layout: page
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.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiffany Forkner
@@ -66,16 +66,10 @@ files:
66
66
  - _includes/playwright-stat.html
67
67
  - _includes/playwright-summary.html
68
68
  - _includes/release-note.html
69
- - _layouts/coverage-report.html
70
69
  - _layouts/default.html
71
- - _layouts/home.html
72
70
  - _layouts/page.html
73
- - _layouts/playwright-branch-list.html
74
71
  - _layouts/playwright-branch.html
75
- - _layouts/playwright-reports.html
76
72
  - _layouts/post.html
77
- - _layouts/release-note.html
78
- - _layouts/release-notes.html
79
73
  - _plugins/playwright-branch-index-generator.rb
80
74
  - assets/css/styles.css
81
75
  - coverage.markdown
@@ -1,10 +0,0 @@
1
- ---
2
- layout: page
3
- ---
4
-
5
- <div>
6
- <!-- Get the data from the `total` field in `_data/coverage/coverage-summary.json` and assign it to a variable called `total`. -->
7
- {% assign total = site.data.coverage.coverage-summary.total %}
8
- <!-- Include the html snippet in `_includes/coverage-summary.html` with the parameters "main" as `branch` and the totals from the data as `total`. -->
9
- {% include coverage-summary.html branch="main" total=total %}
10
- </div>
data/_layouts/home.html DELETED
@@ -1,48 +0,0 @@
1
- ---
2
- layout: default
3
- ---
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
-
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,8 +0,0 @@
1
- ---
2
- layout: page
3
- ---
4
-
5
- <div>
6
- <!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
7
- {% include playwright-branch-list.html %}
8
- </div>
@@ -1,22 +0,0 @@
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>
@@ -1,7 +0,0 @@
1
- ---
2
- layout: page
3
- ---
4
-
5
- {% include release-note.html post=page content=content %}
6
-
7
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
@@ -1,7 +0,0 @@
1
- ---
2
- layout: page
3
- ---
4
-
5
- {% for post in site.categories["release"] %}
6
- {% include release-note.html post=post content=post.content %}
7
- {% endfor %}