Skip to content

Commit b650f10

Browse files
committedNov 25, 2023
docs
1 parent ee6c5af commit b650f10

File tree

13 files changed

+771
-237
lines changed

13 files changed

+771
-237
lines changed
 

‎.gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,10 @@ build/
3333
.vscode/
3434

3535
### Mac OS ###
36-
.DS_Store
36+
.DS_Store
37+
38+
docs/_site
39+
docs/.sass-cache
40+
docs/.jekyll-cache
41+
docs/.jekyll-metadata
42+
docs/vendor

‎docs/404.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
6+
<style media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>Please <a target="_blank" href="https://github.com/giulong/spectrum/issues/new?assignees=giulong&labels=&projects=&template=bug_report.md&title=%5BBUG%5D+%3CProvide+a+short+title%3E">open an issue</a></p>
25+
</div>

‎docs/Gemfile

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
#gem "jekyll", "~> 4.3.2"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15+
gem "github-pages", "~> 228", group: :jekyll_plugins
16+
# If you have any plugins, put them here!
17+
group :jekyll_plugins do
18+
gem "jekyll-feed", "~> 0.12"
19+
end
20+
21+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
22+
# and associated library.
23+
platforms :mingw, :x64_mingw, :mswin, :jruby do
24+
gem "tzinfo", ">= 1", "< 3"
25+
gem "tzinfo-data"
26+
end
27+
28+
# Performance-booster for watching directories on Windows
29+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
30+
31+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
32+
# do not have a Java counterpart.
33+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
34+
gem "webrick"

‎docs/Gemfile.lock

+281
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (7.1.2)
5+
base64
6+
bigdecimal
7+
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
connection_pool (>= 2.2.5)
9+
drb
10+
i18n (>= 1.6, < 2)
11+
minitest (>= 5.1)
12+
mutex_m
13+
tzinfo (~> 2.0)
14+
addressable (2.8.5)
15+
public_suffix (>= 2.0.2, < 6.0)
16+
base64 (0.2.0)
17+
bigdecimal (3.1.4)
18+
coffee-script (2.4.1)
19+
coffee-script-source
20+
execjs
21+
coffee-script-source (1.11.1)
22+
colorator (1.1.0)
23+
commonmarker (0.23.10)
24+
concurrent-ruby (1.2.2)
25+
connection_pool (2.4.1)
26+
dnsruby (1.70.0)
27+
simpleidn (~> 0.2.1)
28+
drb (2.2.0)
29+
ruby2_keywords
30+
em-websocket (0.5.3)
31+
eventmachine (>= 0.12.9)
32+
http_parser.rb (~> 0)
33+
ethon (0.16.0)
34+
ffi (>= 1.15.0)
35+
eventmachine (1.2.7)
36+
execjs (2.9.1)
37+
faraday (2.7.12)
38+
base64
39+
faraday-net_http (>= 2.0, < 3.1)
40+
ruby2_keywords (>= 0.0.4)
41+
faraday-net_http (3.0.2)
42+
ffi (1.16.3-x64-mingw-ucrt)
43+
forwardable-extended (2.6.0)
44+
gemoji (3.0.1)
45+
github-pages (228)
46+
github-pages-health-check (= 1.17.9)
47+
jekyll (= 3.9.3)
48+
jekyll-avatar (= 0.7.0)
49+
jekyll-coffeescript (= 1.1.1)
50+
jekyll-commonmark-ghpages (= 0.4.0)
51+
jekyll-default-layout (= 0.1.4)
52+
jekyll-feed (= 0.15.1)
53+
jekyll-gist (= 1.5.0)
54+
jekyll-github-metadata (= 2.13.0)
55+
jekyll-include-cache (= 0.2.1)
56+
jekyll-mentions (= 1.6.0)
57+
jekyll-optional-front-matter (= 0.3.2)
58+
jekyll-paginate (= 1.1.0)
59+
jekyll-readme-index (= 0.3.0)
60+
jekyll-redirect-from (= 0.16.0)
61+
jekyll-relative-links (= 0.6.1)
62+
jekyll-remote-theme (= 0.4.3)
63+
jekyll-sass-converter (= 1.5.2)
64+
jekyll-seo-tag (= 2.8.0)
65+
jekyll-sitemap (= 1.4.0)
66+
jekyll-swiss (= 1.0.0)
67+
jekyll-theme-architect (= 0.2.0)
68+
jekyll-theme-cayman (= 0.2.0)
69+
jekyll-theme-dinky (= 0.2.0)
70+
jekyll-theme-hacker (= 0.2.0)
71+
jekyll-theme-leap-day (= 0.2.0)
72+
jekyll-theme-merlot (= 0.2.0)
73+
jekyll-theme-midnight (= 0.2.0)
74+
jekyll-theme-minimal (= 0.2.0)
75+
jekyll-theme-modernist (= 0.2.0)
76+
jekyll-theme-primer (= 0.6.0)
77+
jekyll-theme-slate (= 0.2.0)
78+
jekyll-theme-tactile (= 0.2.0)
79+
jekyll-theme-time-machine (= 0.2.0)
80+
jekyll-titles-from-headings (= 0.5.3)
81+
jemoji (= 0.12.0)
82+
kramdown (= 2.3.2)
83+
kramdown-parser-gfm (= 1.1.0)
84+
liquid (= 4.0.4)
85+
mercenary (~> 0.3)
86+
minima (= 2.5.1)
87+
nokogiri (>= 1.13.6, < 2.0)
88+
rouge (= 3.26.0)
89+
terminal-table (~> 1.4)
90+
github-pages-health-check (1.17.9)
91+
addressable (~> 2.3)
92+
dnsruby (~> 1.60)
93+
octokit (~> 4.0)
94+
public_suffix (>= 3.0, < 5.0)
95+
typhoeus (~> 1.3)
96+
html-pipeline (2.14.3)
97+
activesupport (>= 2)
98+
nokogiri (>= 1.4)
99+
http_parser.rb (0.8.0)
100+
i18n (1.14.1)
101+
concurrent-ruby (~> 1.0)
102+
jekyll (3.9.3)
103+
addressable (~> 2.4)
104+
colorator (~> 1.0)
105+
em-websocket (~> 0.5)
106+
i18n (>= 0.7, < 2)
107+
jekyll-sass-converter (~> 1.0)
108+
jekyll-watch (~> 2.0)
109+
kramdown (>= 1.17, < 3)
110+
liquid (~> 4.0)
111+
mercenary (~> 0.3.3)
112+
pathutil (~> 0.9)
113+
rouge (>= 1.7, < 4)
114+
safe_yaml (~> 1.0)
115+
jekyll-avatar (0.7.0)
116+
jekyll (>= 3.0, < 5.0)
117+
jekyll-coffeescript (1.1.1)
118+
coffee-script (~> 2.2)
119+
coffee-script-source (~> 1.11.1)
120+
jekyll-commonmark (1.4.0)
121+
commonmarker (~> 0.22)
122+
jekyll-commonmark-ghpages (0.4.0)
123+
commonmarker (~> 0.23.7)
124+
jekyll (~> 3.9.0)
125+
jekyll-commonmark (~> 1.4.0)
126+
rouge (>= 2.0, < 5.0)
127+
jekyll-default-layout (0.1.4)
128+
jekyll (~> 3.0)
129+
jekyll-feed (0.15.1)
130+
jekyll (>= 3.7, < 5.0)
131+
jekyll-gist (1.5.0)
132+
octokit (~> 4.2)
133+
jekyll-github-metadata (2.13.0)
134+
jekyll (>= 3.4, < 5.0)
135+
octokit (~> 4.0, != 4.4.0)
136+
jekyll-include-cache (0.2.1)
137+
jekyll (>= 3.7, < 5.0)
138+
jekyll-mentions (1.6.0)
139+
html-pipeline (~> 2.3)
140+
jekyll (>= 3.7, < 5.0)
141+
jekyll-optional-front-matter (0.3.2)
142+
jekyll (>= 3.0, < 5.0)
143+
jekyll-paginate (1.1.0)
144+
jekyll-readme-index (0.3.0)
145+
jekyll (>= 3.0, < 5.0)
146+
jekyll-redirect-from (0.16.0)
147+
jekyll (>= 3.3, < 5.0)
148+
jekyll-relative-links (0.6.1)
149+
jekyll (>= 3.3, < 5.0)
150+
jekyll-remote-theme (0.4.3)
151+
addressable (~> 2.0)
152+
jekyll (>= 3.5, < 5.0)
153+
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
154+
rubyzip (>= 1.3.0, < 3.0)
155+
jekyll-sass-converter (1.5.2)
156+
sass (~> 3.4)
157+
jekyll-seo-tag (2.8.0)
158+
jekyll (>= 3.8, < 5.0)
159+
jekyll-sitemap (1.4.0)
160+
jekyll (>= 3.7, < 5.0)
161+
jekyll-swiss (1.0.0)
162+
jekyll-theme-architect (0.2.0)
163+
jekyll (> 3.5, < 5.0)
164+
jekyll-seo-tag (~> 2.0)
165+
jekyll-theme-cayman (0.2.0)
166+
jekyll (> 3.5, < 5.0)
167+
jekyll-seo-tag (~> 2.0)
168+
jekyll-theme-dinky (0.2.0)
169+
jekyll (> 3.5, < 5.0)
170+
jekyll-seo-tag (~> 2.0)
171+
jekyll-theme-hacker (0.2.0)
172+
jekyll (> 3.5, < 5.0)
173+
jekyll-seo-tag (~> 2.0)
174+
jekyll-theme-leap-day (0.2.0)
175+
jekyll (> 3.5, < 5.0)
176+
jekyll-seo-tag (~> 2.0)
177+
jekyll-theme-merlot (0.2.0)
178+
jekyll (> 3.5, < 5.0)
179+
jekyll-seo-tag (~> 2.0)
180+
jekyll-theme-midnight (0.2.0)
181+
jekyll (> 3.5, < 5.0)
182+
jekyll-seo-tag (~> 2.0)
183+
jekyll-theme-minimal (0.2.0)
184+
jekyll (> 3.5, < 5.0)
185+
jekyll-seo-tag (~> 2.0)
186+
jekyll-theme-modernist (0.2.0)
187+
jekyll (> 3.5, < 5.0)
188+
jekyll-seo-tag (~> 2.0)
189+
jekyll-theme-primer (0.6.0)
190+
jekyll (> 3.5, < 5.0)
191+
jekyll-github-metadata (~> 2.9)
192+
jekyll-seo-tag (~> 2.0)
193+
jekyll-theme-slate (0.2.0)
194+
jekyll (> 3.5, < 5.0)
195+
jekyll-seo-tag (~> 2.0)
196+
jekyll-theme-tactile (0.2.0)
197+
jekyll (> 3.5, < 5.0)
198+
jekyll-seo-tag (~> 2.0)
199+
jekyll-theme-time-machine (0.2.0)
200+
jekyll (> 3.5, < 5.0)
201+
jekyll-seo-tag (~> 2.0)
202+
jekyll-titles-from-headings (0.5.3)
203+
jekyll (>= 3.3, < 5.0)
204+
jekyll-watch (2.2.1)
205+
listen (~> 3.0)
206+
jemoji (0.12.0)
207+
gemoji (~> 3.0)
208+
html-pipeline (~> 2.2)
209+
jekyll (>= 3.0, < 5.0)
210+
kramdown (2.3.2)
211+
rexml
212+
kramdown-parser-gfm (1.1.0)
213+
kramdown (~> 2.0)
214+
liquid (4.0.4)
215+
listen (3.8.0)
216+
rb-fsevent (~> 0.10, >= 0.10.3)
217+
rb-inotify (~> 0.9, >= 0.9.10)
218+
mercenary (0.3.6)
219+
minima (2.5.1)
220+
jekyll (>= 3.5, < 5.0)
221+
jekyll-feed (~> 0.9)
222+
jekyll-seo-tag (~> 2.1)
223+
minitest (5.20.0)
224+
mutex_m (0.2.0)
225+
nokogiri (1.15.5-x64-mingw-ucrt)
226+
racc (~> 1.4)
227+
octokit (4.25.1)
228+
faraday (>= 1, < 3)
229+
sawyer (~> 0.9)
230+
pathutil (0.16.2)
231+
forwardable-extended (~> 2.6)
232+
public_suffix (4.0.7)
233+
racc (1.7.3)
234+
rb-fsevent (0.11.2)
235+
rb-inotify (0.10.1)
236+
ffi (~> 1.0)
237+
rexml (3.2.6)
238+
rouge (3.26.0)
239+
ruby2_keywords (0.0.5)
240+
rubyzip (2.3.2)
241+
safe_yaml (1.0.5)
242+
sass (3.7.4)
243+
sass-listen (~> 4.0.0)
244+
sass-listen (4.0.0)
245+
rb-fsevent (~> 0.9, >= 0.9.4)
246+
rb-inotify (~> 0.9, >= 0.9.7)
247+
sawyer (0.9.2)
248+
addressable (>= 2.3.5)
249+
faraday (>= 0.17.3, < 3)
250+
simpleidn (0.2.1)
251+
unf (~> 0.1.4)
252+
terminal-table (1.8.0)
253+
unicode-display_width (~> 1.1, >= 1.1.1)
254+
typhoeus (1.4.1)
255+
ethon (>= 0.9.0)
256+
tzinfo (2.0.6)
257+
concurrent-ruby (~> 1.0)
258+
tzinfo-data (1.2023.3)
259+
tzinfo (>= 1.0.0)
260+
unf (0.1.4)
261+
unf_ext
262+
unf_ext (0.0.9.1-x64-mingw-ucrt)
263+
unicode-display_width (1.8.0)
264+
wdm (0.1.1)
265+
webrick (1.8.1)
266+
267+
PLATFORMS
268+
x64-mingw-ucrt
269+
270+
DEPENDENCIES
271+
github-pages (~> 228)
272+
http_parser.rb (~> 0.6.0)
273+
jekyll-feed (~> 0.12)
274+
minima (~> 2.5)
275+
tzinfo (>= 1, < 3)
276+
tzinfo-data
277+
wdm (~> 0.1.1)
278+
webrick
279+
280+
BUNDLED WITH
281+
2.4.22

‎docs/README.md

+308-212
Large diffs are not rendered by default.

‎docs/_config.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
title: Spectrum
2+
description: Java Selenium 4 Framework
3+
url: https://giulong.github.io
4+
baseurl: /spectrum
5+
github_username: giulong
6+
repository: giulong/spectrum
17
theme: jekyll-theme-modernist

‎docs/_includes/codeHeader.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<div class="code-header">
2-
<button class="copy-code-button">
3-
Copy code to clipboard
1+
<span class="copy-header">
2+
<button class="copy-button">
3+
<span class="copy-text" style="display: none;">Copied!</span>
4+
<img class="copy-icon" src="assets/images/copy.png" alt="copy"/>
45
</button>
5-
</div>
6+
</span>

‎docs/_layouts/default.html

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!doctype html>
2+
<html lang="{{ site.lang | default: " en-US" }}">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
7+
8+
{% seo %}
9+
10+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
11+
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
12+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
13+
14+
<!--[if lt IE 9]>
15+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
16+
<![endif]-->
17+
18+
{% include head-custom.html %}
19+
</head>
20+
<body>
21+
<div class="wrapper">
22+
<header {% unless site.description or site.github.project_tagline %} class="without-description" {% endunless %}>
23+
<h1>{{ site.title | default: site.github.repository_name }}</h1>
24+
{% if site.description or site.github.project_tagline %}
25+
<p>{{ site.description | default: site.github.project_tagline }}</p>
26+
{% endif %}
27+
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
28+
<ul>
29+
{% if site.show_downloads %}
30+
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
31+
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
32+
{% endif %}
33+
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
34+
</ul>
35+
</header>
36+
<section>
37+
38+
{{ content }}
39+
40+
</section>
41+
</div>
42+
<footer>
43+
{% if site.github.is_project_page %}
44+
<p>Project maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
45+
{% endif %}
46+
<p>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></p>
47+
</footer>
48+
<!--[if !IE]>
49+
<script>fixScale(document);</script><![endif]-->
50+
<script src="assets/scripts/copyCode.js"></script>
51+
<script src="assets/scripts/openImage.js"></script>
52+
</body>
53+
</html>

‎docs/assets/css/style.scss

+39-1
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,58 @@
55

66
header > h1 {
77
text-transform: capitalize;
8+
font-size: 36px;
9+
}
10+
11+
hr {
12+
margin: 20px 14px 20px;
813
}
914

1015
div.wrapper {
1116
width: 1024px;
1217
}
1318

19+
p, ul, ol, table, dl, h1, h2, h3 {
20+
margin: 20px 0;
21+
}
22+
1423
tbody tr td:first-child {
1524
font-weight: bold;
1625
}
1726

1827
tbody tr:nth-child(odd) {
19-
background-color: rgba(0,0,0,0.06);
28+
background-color: rgba(0,0,0,0.06);
2029
}
2130

2231
blockquote {
2332
font-style: normal;
33+
margin: 20px -20px 5px;
34+
padding: 1px 20px 1px 40px;
35+
}
36+
37+
span.copy-header {
38+
display: block;
39+
padding: 6px 10px 4px;
40+
margin: 0 -20px -60px;
41+
text-align: right;
42+
}
43+
44+
button.copy-button {
45+
z-index: 1;
46+
position: sticky;
47+
background: transparent;
48+
border: 1px solid #ddd;
49+
border-radius: 4px;
50+
background: #ccc;
51+
padding: 3px 5px;
52+
}
53+
54+
img {
55+
cursor: zoom-in;
56+
}
57+
58+
img.copy-icon {
59+
cursor: pointer;
60+
width: 16px;
61+
vertical-align: bottom;
2462
}

‎docs/assets/images/copy.png

721 Bytes
Loading

‎docs/assets/scripts/copyCode.js

+8-19
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
1-
// This assumes that you're using Rouge; if not, update the selector
2-
const codeBlocks = document.querySelectorAll('.code-header + .highlighter-rouge');
3-
const copyCodeButtons = document.querySelectorAll('.copy-code-button');
1+
const copyHeaders = document.querySelectorAll('.copy-header');
2+
const copyButtons = document.querySelectorAll('.copy-button');
43

5-
copyCodeButtons.forEach((copyCodeButton, index) => {
6-
const code = codeBlocks[index].innerText;
4+
copyButtons.forEach((copyButton, index) => {
5+
const code = copyHeaders[index].parentElement.nextElementSibling.innerText;
76

8-
copyCodeButton.addEventListener('click', () => {
9-
// Copy the code to the user's clipboard
7+
copyButton.addEventListener('click', () => {
108
window.navigator.clipboard.writeText(code);
9+
const copyText = copyButton.querySelectorAll('.copy-text')[0];
10+
copyText.style.display = 'inline';
1111

12-
// Update the button text visually
13-
const { innerText: originalText } = copyCodeButton;
14-
copyCodeButton.innerText = 'Copied!';
15-
16-
// (Optional) Toggle a class for styling the button
17-
copyCodeButton.classList.add('copied');
18-
19-
// After 2 seconds, reset the button to its initial UI
20-
setTimeout(() => {
21-
copyCodeButton.innerText = originalText;
22-
copyCodeButton.classList.remove('copied');
23-
}, 2000);
12+
setTimeout(() => copyText.style.display = 'none', 2000);
2413
});
2514
});

‎docs/assets/scripts/openImage.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const images = Array.from(document.querySelectorAll('img'));
2+
3+
images
4+
.filter(image => !image.classList.contains('copy-icon'))
5+
.forEach(image => image.addEventListener('click', () => window.open(image.getAttribute('src'))));

‎docs/images/favicon.ico

860 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.