jekyll-report-dashboard 0.1.3 → 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: 1fcd83a813e1567031a023b8f787993ecd89a17f1d76e5b1d5c5260134678522
4
- data.tar.gz: 8cc9155a0eb9305cf5bd59329608d1ad9cf5308a54f1498e960dc23c9edb12a7
3
+ metadata.gz: af76d4dd8cad5308598a767d18590f93a1a1849595a5331923f5162956a927d0
4
+ data.tar.gz: c6fd42880da9f74ccc411eff4fa297f57599eb51c68fc1893fa79f37de070b3c
5
5
  SHA512:
6
- metadata.gz: 4e8340f5a439c1209a2f133380cf7585419ede7cfd2f00eb245ceaa9b795be2106251e3e32178a4262fcbb9eea4b2c2e8a62d34031792b2d8b9987243ec15b78
7
- data.tar.gz: 279c59d4a0ce47db917b8a8a46a726a4e5bbb0445e38527a7e0efaa85f16c0cfceb88bae405da64cc950f1e165c4de7eff0528bf020481d6915b896685519200
6
+ metadata.gz: 6ab1bba2dd0a533c8ded24f0aa2e661fc26734744e2277f2af5fddef690cfedfc535ae698517ac04829cc0f00a91fe47c41ee0ec7450ddf2a6ce498195389b81
7
+ data.tar.gz: 9104a7ad76c90e87f99522d16d6e79a4324321c737f3fbd302c16e5cf8aa2b89ff5db9da2bb7896a770094dc1e4ab687f7db154abe016cda7d2603f6b6968d4a
data/404.html ADDED
@@ -0,0 +1,11 @@
1
+ ---
2
+ permalink: /404.html
3
+ layout: default
4
+ ---
5
+
6
+ <div class="my-3 mx-auto max-w-[37.5rem] text-center">
7
+ <h1 class="my-8 text-6xl leading-none tracking-tighter">404</h1>
8
+
9
+ <p><strong>Page not found :(</strong></p>
10
+ <p>The requested page could not be found.</p>
11
+ </div>
@@ -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 %}
@@ -0,0 +1,32 @@
1
+ module Jekyll
2
+ class BranchIndex < Page
3
+ def initialize(site, base, dir, branch)
4
+ @site = site
5
+ @base = base
6
+ @dir = dir
7
+ @name = 'index.html'
8
+
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
16
+ end
17
+ end
18
+
19
+ class BranchIndexGenerator < Generator
20
+ safe true
21
+
22
+ def generate(site)
23
+ if site.layouts.key? 'playwright-branch'
24
+ dir = "/playwright-reports/branches"
25
+ site.data["playwright-reports"]["branches"].each_key do |branch|
26
+ Jekyll.logger.info "Branch Index: Generating index for #{branch}"
27
+ site.pages << BranchIndex.new(site, site.source, File.join(dir, branch), branch)
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
data/coverage.markdown ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: coverage-report
3
+ # the header for the page
4
+ title: "Code Coverage Report"
5
+ # the link to page https://jekyllrb.com/docs/permalinks/
6
+ permalink: coverage-report/
7
+ ---
8
+
data/index.markdown ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: home
3
+ ---
4
+
5
+
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: playwright-branch-list
3
+ # the header for the page
4
+ title: "Playwright Reports for Branches"
5
+ # the link to page https://jekyllrb.com/docs/permalinks/
6
+ permalink: playwright-reports/branches/
7
+ ---
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: playwright-reports
3
+ # the header for the page
4
+ title: "Playwright Reports"
5
+ # the link to page https://jekyllrb.com/docs/permalinks/
6
+ permalink: playwright-reports/
7
+ ---
data/releases.markdown ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: release-notes
3
+ title: Release Notes
4
+ permalink: releases/
5
+ ---
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.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiffany Forkner
@@ -57,6 +57,7 @@ executables: []
57
57
  extensions: []
58
58
  extra_rdoc_files: []
59
59
  files:
60
+ - 404.html
60
61
  - _includes/coverage-summary.html
61
62
  - _includes/footer.html
62
63
  - _includes/head.html
@@ -65,12 +66,23 @@ files:
65
66
  - _includes/playwright-stat.html
66
67
  - _includes/playwright-summary.html
67
68
  - _includes/release-note.html
69
+ - _layouts/coverage-report.html
68
70
  - _layouts/default.html
71
+ - _layouts/home.html
69
72
  - _layouts/page.html
73
+ - _layouts/playwright-branch-list.html
70
74
  - _layouts/playwright-branch.html
75
+ - _layouts/playwright-reports.html
71
76
  - _layouts/post.html
72
77
  - _layouts/release-note.html
78
+ - _layouts/release-notes.html
79
+ - _plugins/playwright-branch-index-generator.rb
73
80
  - assets/css/styles.css
81
+ - coverage.markdown
82
+ - index.markdown
83
+ - playwright-branches.markdown
84
+ - playwright-reports.markdown
85
+ - releases.markdown
74
86
  homepage: https://github.com/FearlessSolutions/jekyll-report-dashboard
75
87
  licenses:
76
88
  - MIT