jekyll-report-dashboard 0.1.3 → 0.1.4

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: 9785e357c759cf29fd19c9ae4f050bf7ca547969e43c5f44f32713f0d526c15d
4
+ data.tar.gz: 7d4bc5d69d306f07177296a268fac6417969e50ad1022581b98ae181a48a2ddb
5
5
  SHA512:
6
- metadata.gz: 4e8340f5a439c1209a2f133380cf7585419ede7cfd2f00eb245ceaa9b795be2106251e3e32178a4262fcbb9eea4b2c2e8a62d34031792b2d8b9987243ec15b78
7
- data.tar.gz: 279c59d4a0ce47db917b8a8a46a726a4e5bbb0445e38527a7e0efaa85f16c0cfceb88bae405da64cc950f1e165c4de7eff0528bf020481d6915b896685519200
6
+ metadata.gz: 01a5e4062cd69bf7739060e76cfb2a6ecba26f74b8f58b3c4eebe83ac05337cc2be7a13310a29a8d7ab74f301a1f0532cdf1b23504be95405c15b8c0a32aec05
7
+ data.tar.gz: 8473544521ae9339d3115eae013e5bfb72271baca46a35a8226471629d9547a8ec3a88b04a500006c68a5511d2d9b29b2c64f5b1677468e3229327107d7f9fa2
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>
@@ -0,0 +1,28 @@
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
+ self.process(@name)
10
+ self.read_yaml(File.join(base, '_layouts'), 'playwright-branch.html')
11
+ self.data['branch'] = branch
12
+ end
13
+ end
14
+
15
+ class BranchIndexGenerator < Generator
16
+ safe true
17
+
18
+ def generate(site)
19
+ if site.layouts.key? 'playwright-branch'
20
+ dir = "/playwright-reports/branches"
21
+ site.data["playwright-reports"]["branches"].each_key do |branch|
22
+ Jekyll.logger.info "Branch Index: Generating index for #{branch}"
23
+ site.pages << BranchIndex.new(site, site.source, File.join(dir, branch), branch)
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
data/coverage.markdown ADDED
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: page
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
+
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 ADDED
@@ -0,0 +1,48 @@
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>
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: page
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
+ ---
8
+
9
+ <div>
10
+ <!-- Include the html snippet in `_includes/playwright-branch-list.html` -->
11
+ {% include playwright-branch-list.html %}
12
+ </div>
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: page
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
+ ---
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 ADDED
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: page
3
+ title: Release Notes
4
+ permalink: releases/
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.3
4
+ version: 0.1.4
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
@@ -70,7 +71,13 @@ files:
70
71
  - _layouts/playwright-branch.html
71
72
  - _layouts/post.html
72
73
  - _layouts/release-note.html
74
+ - _plugins/playwright-branch-index-generator.rb
73
75
  - assets/css/styles.css
76
+ - coverage.markdown
77
+ - index.markdown
78
+ - playwright-branches.markdown
79
+ - playwright-reports.markdown
80
+ - releases.markdown
74
81
  homepage: https://github.com/FearlessSolutions/jekyll-report-dashboard
75
82
  licenses:
76
83
  - MIT