Skip to content

Commit 3b99f1a

Browse files
Merge pull request #20 from educates/develop
2 parents 63c6918 + 5018bb3 commit 3b99f1a

38 files changed

Lines changed: 2125 additions & 413 deletions

Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Build stage
2+
FROM node:20-slim AS build
3+
4+
WORKDIR /app
5+
6+
# Copy package files
7+
COPY package*.json ./
8+
9+
# Install dependencies
10+
RUN npm install
11+
12+
# Copy source code
13+
COPY . .
14+
15+
# Build the app
16+
RUN npm run build
17+
18+
# Production stage
19+
FROM nginx:alpine
20+
21+
# Copy the built app to nginx html directory
22+
COPY --from=build /app/build /usr/share/nginx/html
23+
24+
# Copy nginx configuration (we'll create this next)
25+
COPY nginx.conf /etc/nginx/conf.d/default.conf
26+
27+
# Expose port 80
28+
EXPOSE 80
29+
30+
# Start nginx
31+
CMD ["nginx", "-g", "daemon off;"]

docusaurus.config.ts

Lines changed: 48 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ const config: Config = {
2222
trailingSlash: false, // See: https://docusaurus.io/docs/deployment#docusaurusconfigjs-settings
2323
deploymentBranch: "main", // The branch your GitHub pages site is deployed from.
2424

25+
customFields: {
26+
educatesProject: {
27+
projectGitHubUrl: "https://github.com/educates/educates-training-platform",
28+
contributingUrl: "https://github.com/educates/educates-training-platform/blob/develop/CONTRIBUTING.md",
29+
sponsorshipUrl: "https://github.com/sponsors/educates",
30+
descriptionTitle: "Interactive Training Platform",
31+
description: "The Educates project provides a system for hosting interactive workshop environments in Kubernetes,"
32+
+ "or on top of a local container runtime. It can be used for self paced or supervised workshops."
33+
+ "It can also be useful where you need to package up demos of applications hosted in Kubernetes "
34+
+ "or a local container runtime.",
35+
screenshot: "/img/screenshot.png",
36+
youtubeUrl: "https://www.youtube.com/@EducatesTrainingPlatform",
37+
}
38+
},
39+
2540
onBrokenLinks: "throw",
2641
onBrokenMarkdownLinks: "warn",
2742

@@ -38,20 +53,6 @@ const config: Config = {
3853
locales: ["en"],
3954
},
4055

41-
// scripts: [
42-
// {
43-
// src: "/js/ityped.ts",
44-
// async: true,
45-
// },
46-
// ],
47-
48-
// stylesheets: [
49-
// {
50-
// href: "/css/ityped.css",
51-
// type: "text/css",
52-
// },
53-
// ],
54-
5556
plugins: [
5657
[
5758
"@docusaurus/plugin-content-docs",
@@ -117,37 +118,36 @@ const config: Config = {
117118
themeConfig: {
118119
// Replace with your project's social card
119120
image: "img/logo.svg",
121+
colorMode: {
122+
defaultMode: 'light',
123+
disableSwitch: true,
124+
respectPrefersColorScheme: false,
125+
},
126+
// announcementBar: {
127+
// id: 'support_us',
128+
// content:
129+
// 'We are looking for support to help us maintain the project, please <a target="_blank" rel="noopener noreferrer" href="https://github.com/sponsors/educates">sponsor us</a>',
130+
// backgroundColor: '#fafbfc',
131+
// textColor: '#091E42',
132+
// isCloseable: true,
133+
// },
120134
navbar: {
121135
title: "Educates Training Platform",
122136
logo: {
123137
alt: "Educates Training Platform",
124138
src: "img/logo.svg",
125139
},
126140
items: [
127-
{ to: "/features", label: "Features", position: "left" },
128-
// { to: "/team", label: "Team", position: "left" },
129-
// { to: "/resources", label: "Resources", position: "left" },
130-
// {
131-
// type: "docSidebar",
132-
// sidebarId: "tutorialSidebar",
133-
// position: "left",
134-
// label: "Ref docs",
135-
// },
136-
{
137-
label: "Getting Started Guides",
138-
to: "/getting-started-guides",
139-
},
140-
{ to: "/blog", label: "Blog", position: "left" },
141-
{
142-
href: "https://docs.educates.dev",
143-
label: "Docs",
144-
position: "left",
145-
},
146-
{
147-
href: "https://github.com/educates/educates-training-platform",
148-
label: "GitHub",
149-
position: "right",
150-
},
141+
{ to: '/#use-cases', label: 'Use Cases', position: 'left' },
142+
{ to: '/#features', label: 'Features', position: 'left' },
143+
{ to: '/#team', label: 'Team', position: 'left' },
144+
// { to: '/#references', label: 'References', position: 'left' },
145+
{ to: '/#pricing', label: 'Pricing', position: 'left' },
146+
{ to: '/getting-started-guides', label: 'Getting Started', position: 'left' },
147+
{ to: '/blog', label: 'Blog', position: 'left' },
148+
{ href: 'https://docs.educates.dev', label: 'Docs', position: 'left' },
149+
{ href: 'https://github.com/educates/educates-training-platform', label: 'GitHub', position: 'right' },
150+
// { href: '/login', label: 'Login / Sign Up', position: 'right', className: 'navbar-login-button' },
151151
],
152152
},
153153
footer: {
@@ -156,19 +156,17 @@ const config: Config = {
156156
{
157157
title: "Project",
158158
items: [
159-
{
160-
label: "Features",
161-
to: "/features",
162-
},
163-
// {
164-
// label: "Team",
165-
// href: "/team",
166-
// },
159+
{ label: "Use Cases", to: "/#use-cases" },
160+
{ label: "Features", to: "/#features" },
161+
{ label: "Team", to: "/#team" },
162+
// { label: "References", to: "/#references" },
163+
{ label: "Pricing", to: "/#pricing" },
167164
],
168165
},
169166
{
170167
title: "Docs",
171168
items: [
169+
{ label: "Blog", to: "/blog" },
172170
{
173171
label: "Getting Started Guides",
174172
to: "/getting-started-guides",
@@ -177,19 +175,11 @@ const config: Config = {
177175
label: "Reference docs",
178176
href: "https://docs.educates.dev",
179177
},
180-
{
181-
label: "Additional resources",
182-
href: "/resources",
183-
},
184178
],
185179
},
186180
{
187181
title: "Community",
188182
items: [
189-
{
190-
label: "Blog",
191-
to: "/blog",
192-
},
193183
{
194184
label: "Slack",
195185
href: "https://kubernetes.slack.com/archives/C05UWT4SKRV",
@@ -198,6 +188,10 @@ const config: Config = {
198188
label: "GitHub",
199189
href: "https://github.com/educates/educates-training-platform",
200190
},
191+
{
192+
label: "YouTube",
193+
href: "https://www.youtube.com/@EducatesTrainingPlatform",
194+
},
201195
],
202196
},
203197
],

getting-started-guides/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ sidebar_position: 5
33
---
44
# Getting Started Guides
55

6-
Over the next hours, we will take a look at [Educates](https://educates.dev),
6+
Let's take a look at [Educates Training Platform](https://educates.dev),
77
an educational framework for building workshops powered by [Kubernetes](https://kubernetes.io).
88

9-
The outline will look like this:
9+
The outline of these guides look like this:
1010

1111
1. [Prerequisites and Setup](/getting-started-guides/setup)
1212
2. [How does Educates work?](/getting-started-guides/about)

getting-started-guides/setup/create-cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Creating cluster "educates" ...
3838
Set kubectl context to "kind-educates"
3939
You can now use your cluster with:
4040

41-
kubectl cluster-info --context kind-educates --kubeconfig /Users/daniel/.kube/config
41+
kubectl cluster-info --context kind-educates --kubeconfig /Users/you/.kube/config
4242

4343
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂
4444
Deploying local image registry

getting-started-guides/setup/educates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ The output should look like this:
4545
```{ .text .no-copy title="Output" }
4646
educates version
4747
48-
3.0.0
48+
3.3.2
4949
```

nginx.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
root /usr/share/nginx/html;
6+
index index.html;
7+
8+
# Support for client-side routing
9+
location / {
10+
try_files $uri $uri/ /index.html;
11+
}
12+
13+
# Cache control for static assets
14+
location /assets/ {
15+
expires 1y;
16+
add_header Cache-Control "public, no-transform";
17+
}
18+
19+
# Enable gzip compression
20+
gzip on;
21+
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
22+
}

0 commit comments

Comments
 (0)