Skip to content

Commit 297fd1b

Browse files
committed
First bits of site with new Hugo theme
1 parent d1353da commit 297fd1b

File tree

71 files changed

+18215
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+18215
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
2-
public/
2+
public/
3+
node_modules

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "website_hugo_files/themes/docsy"]
2+
path = website_hugo_files/themes/docsy
3+
url = https://github.com/google/docsy.git

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,15 @@ If for any reason, you need to setup the domain redirection again,
6161
we followed this [guide](http://spector.io/how-to-set-up-github-pages-with-a-custom-domain-on-gandi/),
6262
but any tutorial/guide showing how to redirect a domain to GitHub pages should do.
6363

64+
## (WIP) Moving to Hugo [Docsy theme](https://www.docsy.dev/)
65+
66+
Files are living under [website_hugo_files](website_hugo_files).
67+
68+
Steps needed to have this working locally and work on it:
69+
70+
- Clone this repository
71+
- Run `git submodule update --init --recursive`
72+
- `cd website_hugo_files`
73+
- `npm install`
74+
75+
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
3+
Add styles or override variables from the theme here.
4+
5+
*/
6+
7+
$white: #fff !default;
8+
$primary: $white !default;
9+
10+
.h1-header {
11+
font-size: 44px;
12+
line-height: 56px;
13+
font-weight: 800;
14+
}
15+
16+
.h2-header {
17+
font-size: 32px;
18+
line-height: 40px;
19+
font-weight: 100;
20+
}
21+
22+
.body-large {
23+
font-size: 18px;
24+
line-height: 30px;
25+
margin: 5px;
26+
font-weight: 400;
27+
}
28+
29+
.sub-header {
30+
font-weight: 100;
31+
}
32+
33+
.homepage {
34+
background-image: url("/seleniumhq-featured-background.jpg");
35+
background-position: center;
36+
background-repeat: no-repeat;
37+
background-size: cover;
38+
//position: relative;
39+
color: $white;
40+
//padding: 20px 20px;
41+
//margin: 20px;
42+
//text-align: center;
43+
}
44+
45+
// Styling for section boxes
46+
.td-box {
47+
padding-left: 32px !important;
48+
padding-right: 32px !important;
49+
.row {
50+
padding-left: 0 !important;
51+
padding-right: 0 !important;
52+
}
53+
}

website_hugo_files/config.toml

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
baseURL = "/"
2+
title = "SeleniumHQ Browser Automation"
3+
4+
enableRobotsTXT = true
5+
6+
# Hugo allows theme composition (and inheritance). The precedence is from left to right.
7+
theme = ["docsy"]
8+
9+
# Will give values to .Lastmod etc.
10+
enableGitInfo = true
11+
12+
# Language settings
13+
contentDir = "content/en"
14+
defaultContentLanguage = "en"
15+
defaultContentLanguageInSubdir = false
16+
# Useful when translating.
17+
enableMissingTranslationPlaceholders = true
18+
19+
disableKinds = ["taxonomy", "taxonomyTerm"]
20+
21+
# Highlighting config
22+
pygmentsCodeFences = true
23+
pygmentsUseClasses = false
24+
# Use the new Chroma Go highlighter in Hugo.
25+
pygmentsUseClassic = false
26+
#pygmentsOptions = "linenos=table"
27+
# See https://help.farbox.com/pygments.html
28+
pygmentsStyle = "tango"
29+
30+
# Configure how URLs look like per section.
31+
[permalinks]
32+
blog = "/:section/:year/:month/:day/:slug/"
33+
34+
## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
35+
[blackfriday]
36+
plainIDAnchors = true
37+
hrefTargetBlank = true
38+
angledQuotes = false
39+
latexDashes = true
40+
41+
# Image processing configuration.
42+
[imaging]
43+
resampleFilter = "CatmullRom"
44+
quality = 75
45+
anchor = "smart"
46+
47+
[services]
48+
[services.googleAnalytics]
49+
# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
50+
id = "UA-00000000-0"
51+
52+
# Language configuration
53+
54+
[languages]
55+
[languages.en]
56+
title = "SeleniumHQ Browser Automation"
57+
description = "A Docsy example site"
58+
languageName ="English"
59+
# Weight used for sorting.
60+
weight = 1
61+
62+
[markup]
63+
[markup.goldmark]
64+
[markup.goldmark.renderer]
65+
unsafe = true
66+
[markup.highlight]
67+
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
68+
style = "tango"
69+
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
70+
# guessSyntax = "true"
71+
72+
# Everything below this are Site Params
73+
74+
[params]
75+
copyright = "The Docsy Authors"
76+
privacy_policy = "https://policies.google.com/privacy"
77+
78+
# First one is picked as the Twitter card image if not set on page.
79+
# images = ["images/project-illustration.png"]
80+
81+
# Menu title if your navbar has a versions selector to access old versions of your site.
82+
# This menu appears only if you have at least one [params.versions] set.
83+
version_menu = "Releases"
84+
85+
# Flag used in the "version-banner" partial to decide whether to display a
86+
# banner on every page indicating that this is an archived version of the docs.
87+
# Set this flag to "true" if you want to display the banner.
88+
archived_version = false
89+
90+
# The version number for the version of the docs represented in this doc set.
91+
# Used in the "version-banner" partial to display a version number for the
92+
# current doc set.
93+
version = "0.0"
94+
95+
# A link to latest version of the docs. Used in the "version-banner" partial to
96+
# point people to the main doc site.
97+
url_latest_version = "https://example.com"
98+
99+
# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
100+
github_repo = "https://github.com/google/docsy-example"
101+
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
102+
github_project_repo = "https://github.com/google/docsy"
103+
104+
# Specify a value here if your content directory is not in your repo's root directory
105+
# github_subdir = ""
106+
107+
# Google Custom Search Engine ID. Remove or comment out to disable search.
108+
gcs_engine_id = "011737558837375720776:fsdu1nryfng"
109+
110+
# Enable Algolia DocSearch
111+
algolia_docsearch = false
112+
113+
# Enable Lunr.js offline search
114+
offlineSearch = false
115+
116+
# Enable syntax highlighting and copy buttons on code blocks with Prism
117+
prism_syntax_highlighting = false
118+
119+
# User interface configuration
120+
[params.ui]
121+
# Enable to show the side bar menu in its compact state.
122+
sidebar_menu_compact = false
123+
# Set to true to disable breadcrumb navigation.
124+
breadcrumb_disable = false
125+
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
126+
sidebar_search_disable = false
127+
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top nav bar
128+
navbar_logo = true
129+
# Set to true to disable the About link in the site footer
130+
footer_about_disable = false
131+
132+
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
133+
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
134+
# If you want this feature, but occasionally need to remove the "Feedback" section from a single page,
135+
# add "hide_feedback: true" to the page's front matter.
136+
[params.ui.feedback]
137+
enable = true
138+
# The responses that the user sees after clicking "yes" (the page was helpful) or "no" (the page was not helpful).
139+
yes = 'Glad to hear it! Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.'
140+
no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.'
141+
142+
# Adds a reading time to the top of each doc.
143+
# If you want this feature, but occasionally need to remove the Reading time from a single page,
144+
# add "hide_readingtime: true" to the page's front matter
145+
[params.ui.readingtime]
146+
enable = false
147+
148+
[params.links]
149+
# End user relevant links. These will show up on left side of footer and in the community page if you have one.
150+
[[params.links.user]]
151+
name = "User mailing list"
152+
url = "https://example.org/mail"
153+
icon = "fa fa-envelope"
154+
desc = "Discussion and help from your fellow users"
155+
[[params.links.user]]
156+
name ="Twitter"
157+
url = "https://example.org/twitter"
158+
icon = "fab fa-twitter"
159+
desc = "Follow us on Twitter to get the latest news!"
160+
[[params.links.user]]
161+
name = "Stack Overflow"
162+
url = "https://example.org/stack"
163+
icon = "fab fa-stack-overflow"
164+
desc = "Practical questions and curated answers"
165+
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
166+
[[params.links.developer]]
167+
name = "GitHub"
168+
url = "https://github.com/google/docsy"
169+
icon = "fab fa-github"
170+
desc = "Development takes place here!"
171+
[[params.links.developer]]
172+
name = "Slack"
173+
url = "https://example.org/slack"
174+
icon = "fab fa-slack"
175+
desc = "Chat with other project developers"
176+
[[params.links.developer]]
177+
name = "Developer mailing list"
178+
url = "https://example.org/mail"
179+
icon = "fa fa-envelope"
180+
desc = "Discuss development issues around the project"
181+
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
+++
2+
title = "Selenium"
3+
linkTitle = "Selenium"
4+
5+
+++
6+
7+
{{< blocks/section color="white" >}}
8+
<div class="col-12 homepage py-5">
9+
<div class="mx-auto text-center">
10+
<h1 class="h1-header">Selenium automates browsers. That's it!</h1>
11+
<h1 class="h1-header sub-header pb-4">What you do with that power is entirely up to you.</h1>
12+
<p class="body-large">
13+
Primarily it is for automating web applications for testing purposes,
14+
but is certainly not limited to just that.
15+
</p>
16+
<p class="body-large">
17+
Boring web-based administration tasks can (and should) also be automated as well.
18+
</p>
19+
</div>
20+
</div>
21+
{{< /blocks/section >}}
22+
23+
{{< blocks/section color="200" >}}
24+
<div class="mx-auto text-center">
25+
<h1 class="h2-header">Getting Started</h1>
26+
</div>
27+
{{< /blocks/section >}}
28+
29+
{{< blocks/section color="dark" >}}
30+
31+
{{% blocks/feature icon="fa-lightbulb" title="New chair metrics!" %}}
32+
The Goldydocs UI now shows chair size metrics by default.
33+
34+
Please follow this space for updates!
35+
{{% /blocks/feature %}}
36+
37+
38+
{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}}
39+
We do a [Pull Request](https://github.com/google/docsy-example/pulls) contributions workflow on **GitHub**. New users are always welcome!
40+
{{% /blocks/feature %}}
41+
42+
43+
{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/docsydocs" %}}
44+
For announcement of latest features etc.
45+
{{% /blocks/feature %}}
46+
47+
48+
{{< /blocks/section >}}
49+
50+
{{< blocks/cover title="Welcome to Goldydocs: A Docsy Example Project!" image_anchor="top" height="full" color="orange" >}}
51+
<div class="mx-auto">
52+
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
53+
Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
54+
</a>
55+
<a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://github.com/google/docsy-example">
56+
Download <i class="fab fa-github ml-2 "></i>
57+
</a>
58+
<p class="lead mt-5">Porridge temperature assessment - in the cloud!</p>
59+
{{< blocks/link-down color="info" >}}
60+
</div>
61+
{{< /blocks/cover >}}
62+
63+
{{% blocks/lead color="primary" %}}
64+
Goldydocs provides a single web UI providing visibility into porridge temperature, chair size, and bed softness metrics! You can even find out who's been eating **your** porridge.
65+
66+
(Sadly, Goldydocs isn't a real project, but you can use this site as an example to create your own real websites with [Docsy](http://docsy.dev))
67+
{{% /blocks/lead %}}
68+
69+
{{< blocks/section color="dark" >}}
70+
{{% blocks/feature icon="fa-lightbulb" title="New chair metrics!" %}}
71+
The Goldydocs UI now shows chair size metrics by default.
72+
73+
Please follow this space for updates!
74+
{{% /blocks/feature %}}
75+
76+
77+
{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}}
78+
We do a [Pull Request](https://github.com/google/docsy-example/pulls) contributions workflow on **GitHub**. New users are always welcome!
79+
{{% /blocks/feature %}}
80+
81+
82+
{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/docsydocs" %}}
83+
For announcement of latest features etc.
84+
{{% /blocks/feature %}}
85+
86+
87+
{{< /blocks/section >}}
88+
89+
90+
{{< blocks/section >}}
91+
<div class="col">
92+
<h1 class="text-center">This is the second Section</h1>
93+
</div>
94+
95+
{{< /blocks/section >}}
96+
97+
98+
99+
{{< blocks/section >}}
100+
{{% blocks/feature icon="fab fa-app-store-ios" title="Download **from AppStore**" %}}
101+
Get the Goldydocs app!
102+
{{% /blocks/feature %}}
103+
104+
105+
{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}}
106+
We do a [Pull Request](https://github.com/google/docsy-example/pulls) contributions workflow on **GitHub**. New users are always welcome!
107+
{{% /blocks/feature %}}
108+
109+
110+
{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/GoHugoIO" %}}
111+
For announcement of latest features etc.
112+
{{% /blocks/feature %}}
113+
114+
115+
{{< /blocks/section >}}
116+
117+
{{< blocks/section >}}
118+
119+
<div class="col-12">
120+
<h1 class="text-center">This is another Section</h1>
121+
</div>
122+
123+
{{< /blocks/section >}}

0 commit comments

Comments
 (0)