Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Build stage
FROM node:20-slim AS build

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy source code
COPY . .

# Build the app
RUN npm run build

# Production stage
FROM nginx:alpine

# Copy the built app to nginx html directory
COPY --from=build /app/build /usr/share/nginx/html

# Copy nginx configuration (we'll create this next)
COPY nginx.conf /etc/nginx/conf.d/default.conf

# Expose port 80
EXPOSE 80

# Start nginx
CMD ["nginx", "-g", "daemon off;"]
102 changes: 48 additions & 54 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ const config: Config = {
trailingSlash: false, // See: https://docusaurus.io/docs/deployment#docusaurusconfigjs-settings
deploymentBranch: "main", // The branch your GitHub pages site is deployed from.

customFields: {
educatesProject: {
projectGitHubUrl: "https://github.com/educates/educates-training-platform",
contributingUrl: "https://github.com/educates/educates-training-platform/blob/develop/CONTRIBUTING.md",
sponsorshipUrl: "https://github.com/sponsors/educates",
descriptionTitle: "Interactive Training Platform",
description: "The Educates project provides a system for hosting interactive workshop environments in Kubernetes,"
+ "or on top of a local container runtime. It can be used for self paced or supervised workshops."
+ "It can also be useful where you need to package up demos of applications hosted in Kubernetes "
+ "or a local container runtime.",
screenshot: "/img/screenshot.png",
youtubeUrl: "https://www.youtube.com/@EducatesTrainingPlatform",
}
},

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",

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

// scripts: [
// {
// src: "/js/ityped.ts",
// async: true,
// },
// ],

// stylesheets: [
// {
// href: "/css/ityped.css",
// type: "text/css",
// },
// ],

plugins: [
[
"@docusaurus/plugin-content-docs",
Expand Down Expand Up @@ -117,37 +118,36 @@ const config: Config = {
themeConfig: {
// Replace with your project's social card
image: "img/logo.svg",
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
// announcementBar: {
// id: 'support_us',
// content:
// '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>',
// backgroundColor: '#fafbfc',
// textColor: '#091E42',
// isCloseable: true,
// },
navbar: {
title: "Educates Training Platform",
logo: {
alt: "Educates Training Platform",
src: "img/logo.svg",
},
items: [
{ to: "/features", label: "Features", position: "left" },
// { to: "/team", label: "Team", position: "left" },
// { to: "/resources", label: "Resources", position: "left" },
// {
// type: "docSidebar",
// sidebarId: "tutorialSidebar",
// position: "left",
// label: "Ref docs",
// },
{
label: "Getting Started Guides",
to: "/getting-started-guides",
},
{ to: "/blog", label: "Blog", position: "left" },
{
href: "https://docs.educates.dev",
label: "Docs",
position: "left",
},
{
href: "https://github.com/educates/educates-training-platform",
label: "GitHub",
position: "right",
},
{ to: '/#use-cases', label: 'Use Cases', position: 'left' },
{ to: '/#features', label: 'Features', position: 'left' },
{ to: '/#team', label: 'Team', position: 'left' },
// { to: '/#references', label: 'References', position: 'left' },
{ to: '/#pricing', label: 'Pricing', position: 'left' },
{ to: '/getting-started-guides', label: 'Getting Started', position: 'left' },
{ to: '/blog', label: 'Blog', position: 'left' },
{ href: 'https://docs.educates.dev', label: 'Docs', position: 'left' },
{ href: 'https://github.com/educates/educates-training-platform', label: 'GitHub', position: 'right' },
// { href: '/login', label: 'Login / Sign Up', position: 'right', className: 'navbar-login-button' },
],
},
footer: {
Expand All @@ -156,19 +156,17 @@ const config: Config = {
{
title: "Project",
items: [
{
label: "Features",
to: "/features",
},
// {
// label: "Team",
// href: "/team",
// },
{ label: "Use Cases", to: "/#use-cases" },
{ label: "Features", to: "/#features" },
{ label: "Team", to: "/#team" },
// { label: "References", to: "/#references" },
{ label: "Pricing", to: "/#pricing" },
],
},
{
title: "Docs",
items: [
{ label: "Blog", to: "/blog" },
{
label: "Getting Started Guides",
to: "/getting-started-guides",
Expand All @@ -177,19 +175,11 @@ const config: Config = {
label: "Reference docs",
href: "https://docs.educates.dev",
},
{
label: "Additional resources",
href: "/resources",
},
],
},
{
title: "Community",
items: [
{
label: "Blog",
to: "/blog",
},
{
label: "Slack",
href: "https://kubernetes.slack.com/archives/C05UWT4SKRV",
Expand All @@ -198,6 +188,10 @@ const config: Config = {
label: "GitHub",
href: "https://github.com/educates/educates-training-platform",
},
{
label: "YouTube",
href: "https://www.youtube.com/@EducatesTrainingPlatform",
},
],
},
],
Expand Down
4 changes: 2 additions & 2 deletions getting-started-guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ sidebar_position: 5
---
# Getting Started Guides

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

The outline will look like this:
The outline of these guides look like this:

1. [Prerequisites and Setup](/getting-started-guides/setup)
2. [How does Educates work?](/getting-started-guides/about)
Expand Down
2 changes: 1 addition & 1 deletion getting-started-guides/setup/create-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Creating cluster "educates" ...
Set kubectl context to "kind-educates"
You can now use your cluster with:

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

Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂
Deploying local image registry
Expand Down
2 changes: 1 addition & 1 deletion getting-started-guides/setup/educates.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ The output should look like this:
```{ .text .no-copy title="Output" }
educates version

3.0.0
3.3.2
```
22 changes: 22 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
server {
listen 80;
server_name localhost;

root /usr/share/nginx/html;
index index.html;

# Support for client-side routing
location / {
try_files $uri $uri/ /index.html;
}

# Cache control for static assets
location /assets/ {
expires 1y;
add_header Cache-Control "public, no-transform";
}

# Enable gzip compression
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
}
Loading