Skip to content

Commit 96e79e6

Browse files
committed
Update Setup
1 parent 49cd9eb commit 96e79e6

12 files changed

Lines changed: 300 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.idea
2+
.zed
23
.vscode
34
.DS_Store
4-
hugo.yaml
55
.hugo_build.lock
6-
/docs
7-
/data
8-
/themes
9-
/static
6+
7+
/docs

.gitmodules

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

assets/hero.svg

Lines changed: 1 addition & 0 deletions
Loading

data/en/docs/sidebar.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- title: Documentation
2+
pages:
3+
- title: Overview
4+
5+
- title: Building a Dockerized RESTful API
6+
replaceFirstPageTitle: Overview
7+
pages:
8+
- title: Building a Dockerized RESTful API application in Go
9+
- title: Hello World server
10+
- title: Database and migrations
11+
- title: Configurations
12+
- title: Routes and OpenAPI specification
13+
- title: Repository
14+
- title: Error handling

data/en/home/card-grid.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
header:
2+
title: Contribution
3+
description: Without them, we couldn't build this website
4+
5+
items:
6+
- icon: build/gohugo
7+
title: GoHugo
8+
description: The world’s fastest framework for building websites.
9+
link:
10+
label: Contribute
11+
url: https://gohugo.io/
12+
13+
- icon: build/pagefind
14+
title: Pagefind
15+
description: Fully static search library that aims to perform well on large sites.
16+
link:
17+
label: Contribute
18+
url: https://pagefind.app/
19+
20+
- icon: build/terminal
21+
title: RESTful Go Template
22+
description: A RESTful API template for a Dockerized API with DB migrations, GitOps and Kubernetes Kustomize based CD
23+
link:
24+
label: Contribute
25+
url: https://github.com/learning-cloud-native-go/myapp
26+
27+
- icon: build/web
28+
title: Documentation
29+
description: Help us to improve the documentation.
30+
link:
31+
label: Contribute
32+
url: https://github.com/learning-cloud-native-go/learning-cloud-native-go.github.io

data/en/home/hero.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
badge: Made by a human · Made for a human
2+
3+
svg: hero.svg
4+
5+
title: Go Beyond. <br/><span>To The Cloud.</span>
6+
7+
description: Cloud Native Go Tutorials for Everyone!
8+
9+
btn_primary:
10+
label: Get Started
11+
url: /docs
12+
13+
btn_secondary:
14+
label: Contribute
15+
url: https://github.com/learning-cloud-native-go

hugo.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
theme: E25DX
2+
3+
enableGitInfo: true
4+
disableKinds: [taxonomy, term]
5+
disableHugoGeneratorInject: true
6+
7+
publishDir: docs
8+
baseURL: https://learning-cloud-native-go.github.io
9+
10+
defaultContentLanguage: en
11+
12+
languages:
13+
en:
14+
languageName: English
15+
languageCode: en-US
16+
contentDir: content/en
17+
title: Learning Cloud Native Go
18+
params:
19+
description: Cloud Native Go Tutorials for Everyone!
20+
weight: 1
21+
22+
services:
23+
googleAnalytics:
24+
ID: G-H3GD0XFJ42
25+
26+
enableRobotsTXT: true
27+
28+
markup:
29+
highlight:
30+
noClasses: false
31+
goldmark:
32+
renderer:
33+
unsafe: true
34+
parser:
35+
attribute:
36+
block: true
37+
title: true
38+
tableOfContents:
39+
pre: <nav id="TableOfContents" aria-label="Table of Contents">
40+
post: </nav>
41+
42+
params:
43+
project:
44+
startYear: 2019
45+
presentYear: 2026
46+
repo:
47+
main: https://github.com/learning-cloud-native-go
48+
themeColor:
49+
light: "#ffffff"
50+
dark: "#101010"
51+
52+
author:
53+
name: Dumindu Madunuwan
54+
url: https://github.com/dumindu
55+
56+
enableOGXSEO: true
57+
enablePageFind: true
58+
59+
menus:
60+
main:
61+
- identifier: home
62+
name: Home
63+
pageRef: /
64+
weight: 10
65+
params:
66+
icon: home
67+
- identifier: docs
68+
name: Documentation
69+
pageRef: /docs
70+
weight: 20
71+
params:
72+
icon: menu_book

layouts/home.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ site.LanguageCode | default `en-US` }}">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta name="description" content="{{ site.Params.description | .RenderString }}">
8+
<meta name="author" content="{{ site.Params.author.name }}">
9+
<meta name="theme-color" content="{{ site.Params.project.themeColor.light }}" media="(prefers-color-scheme: light)">
10+
<meta name="theme-color" content="{{ site.Params.project.themeColor.dark }}" media="(prefers-color-scheme: dark)">
11+
{{ with .Params.robots }}
12+
<meta name="robots" content="{{ . }}">
13+
{{ end }}
14+
15+
<title>{{ site.Title | .RenderString }} · {{ site.Params.description | .RenderString }}</title>
16+
<link rel="canonical" href="{{ .Permalink }}">
17+
18+
{{ $cssFiles := slice
19+
(resources.Get "css/reset.css")
20+
(resources.Get "css/theme.css")
21+
(resources.Get "css/components/button.css")
22+
(resources.Get "css/components/dropdown.css")
23+
(resources.Get "css/components/badge.css")
24+
(resources.Get "css/site/header.css")
25+
(resources.Get "css/site/footer.css")
26+
(resources.Get "css/site/layout-home.css")
27+
(resources.Get "css/sections/hero.css")
28+
(resources.Get "css/sections/card-grid.css")
29+
}}
30+
31+
{{ if site.GetPage "/home/showcase" }}
32+
{{ $cssFiles = $cssFiles | append
33+
(resources.Get "css/components/chroma.css")
34+
(resources.Get "css/components/code-window.css")
35+
(resources.Get "css/components/accordion-vertical-tabs.css")
36+
(resources.Get "css/sections/showcase.css")
37+
}}
38+
{{ end }}
39+
40+
{{ $css := $cssFiles | resources.Concat "assets/css/home.css" | minify | fingerprint }}
41+
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.integrity }}">
42+
43+
{{ with site.Params.enablePageFind }}
44+
<link href="{{ "pagefind/pagefind-component-ui.css" | absURL }}" rel="stylesheet">
45+
{{ end }}
46+
47+
{{ partial "favicons.html" . }}
48+
{{ partial "analytics.html" . }}
49+
{{ partial "og-x-seo.html" . }}
50+
</head>
51+
52+
<body>
53+
<div id="content-wrapper">
54+
{{ partial "site/header.html" . }}
55+
56+
<main>
57+
{{ partial "sections/hero.html" (index site.Data site.Language.Lang "home" "hero") }}
58+
{{ with site.GetPage "/home/showcase" }}{{ partial "sections/showcase.html" . }}{{ end }}
59+
{{ partial "sections/card-grid.html" (index site.Data site.Language.Lang "home" "card-grid") }}
60+
</main>
61+
62+
{{ partial "site/footer.html" . }}
63+
</div>
64+
65+
{{- $js := slice
66+
(resources.Get "js/components/dropdown.js")
67+
(resources.Get "js/site/color-preference.js")
68+
| resources.Concat "assets/js/home.js" | minify | fingerprint }}
69+
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.integrity }}"></script>
70+
71+
{{ with site.Params.enablePageFind }}
72+
<script src="{{ "pagefind/pagefind-component-ui.js" | absURL }}" type="module"></script>
73+
{{ end }}
74+
</body>
75+
</html>

static/logo.svg

Lines changed: 1 addition & 0 deletions
Loading

static/manifest.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Learning Cloud Native Go",
3+
"short_name": "Learning Cloud Native Go",
4+
"description": "Cloud Native Go Tutorials for Everyone!",
5+
"start_url": "/?source=pwa",
6+
"display": "standalone",
7+
"icons": [
8+
{
9+
"src": "/favicon/android-chrome-192x192.png",
10+
"sizes": "192x192",
11+
"type": "image/png"
12+
},
13+
{
14+
"src": "/favicon/android-chrome-512x512.png",
15+
"sizes": "512x512",
16+
"type": "image/png"
17+
}
18+
],
19+
"background_color": "#866ee7",
20+
"theme_color": "#866ee7"
21+
}

0 commit comments

Comments
 (0)