Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 3D Intro split up into the new tutorial system #452

Merged
merged 2 commits into from
Dec 22, 2024
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
383 changes: 170 additions & 213 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,217 +5,174 @@ import remarkMath from 'remark-math';
import starlightLinksValidator from 'starlight-links-validator';

export default defineConfig({
vite: {
server: {
watch: {
usePolling: true,
},
},
},
site: 'https://wiki.tuhuratech.org.nz/',
integrations: [
starlight({
title: 'Wiki',
description:
'A collection of guides and resources for learning technology targeted towards rangatahi and kura in Aotearoa',
logo: {
light: './src/assets/logo-light.png',
dark: './src/assets/logo-dark.png',
replacesTitle: true,
},
lastUpdated: true,
editLink: {
baseUrl: 'https://github.com/Tuhura-Tech/Wiki/blob/main/',
},
social: {
mastodon: 'https://mastodon.nzoss.nz/@tuhuratech',
discord: 'https://discord.gg/PNxh7cwKfQ',
github: 'https://github.com/Tuhura-Tech/Wiki',
},
customCss: [
// Relative path to your custom CSS file
'./src/styles/custom.css',
],
sidebar: [
{
label: 'Python',
items: [
{
label: 'Python Basics',
link: 'python',
},
{
label: 'Conditionals and Loops',
link: 'python/conditionals-loops',
},
{
label: 'Lists, Tuples, Dictionaries, and Sets',
link: 'python/lists-tuples-dicts',
},
{
label: 'Functions and Docstrings',
link: 'python/functions',
},
{
label: 'Classes and Object-Oriented Programming (OOP)',
link: 'python/classes',
},
{
label: 'Turtle',
link: 'python/turtle/0-setup/',
},
{
label: 'Setting Up',
link: 'python/setting-up',
},
{
label: 'Flask',
autogenerate: {
directory: 'python/flask',
},
collapsed: true,
},
],
},
{
label: 'Game Design',
items: [
{
label: 'About',
link: 'game-design/index',
},
{
label: 'Godot',
items: [
{
label: 'Godot Basics',
link: 'game-design/godot/basics',
},
{
label: "2D Platformer",
link: "game-design/godot/2dplatformer/0-making-the-player/"
},
{
label: "2D Racing Game",
link: "game-design/godot/2dracing/0-making-the-cars/"
},
{
label: 'Universal Features',
link: 'game-design/godot/universal',
},
{
label: 'Survivors-Like',
link: 'game-design/godot/survivors/0-settingup/',
},
{
label: 'Top-down Dungeon Crawler',
link: 'game-design/godot/dungeoncrawler/0-scenesetup/',
},
{
label: '3D Intro',
link: 'game-design/godot/3d',
},
{
label: '3D Game',
link: 'game-design/godot/crystalgame/0-setup/',
},
{
label: 'Setting up C# For Godot',
link: 'game-design/godot/projectsetup',
},
{
label: '3D Racing Game',
link: 'game-design/godot/3dracinggame/0-main-scene/',
},
],
collapsed: true,
},
],
},
{
label: 'Blender',
autogenerate: {
directory: 'blender',
},
},
{
label: 'Cybersecurity',
vite: {
server: {
watch: {
usePolling: true,
},
},
},
site: 'https://wiki.tuhuratech.org.nz/',
integrations: [starlight({
title: 'Wiki',
description: 'A collection of guides and resources for learning technology targeted towards rangatahi and kura in Aotearoa',
logo: {
light: './src/assets/logo-light.png',
dark: './src/assets/logo-dark.png',
replacesTitle: true
},
lastUpdated: true,
editLink: {
baseUrl: 'https://github.com/Tuhura-Tech/Wiki/blob/main/'
},
social: {
mastodon: 'https://mastodon.nzoss.nz/@tuhuratech',
discord: 'https://discord.gg/PNxh7cwKfQ',
github: 'https://github.com/Tuhura-Tech/Wiki'
},
customCss: [
// Relative path to your custom CSS file
'./src/styles/custom.css',
],
sidebar: [
{
label: "Python", items: [{
label: "Python Basics",
link: 'python'
}, {
label: "Conditionals and Loops",
link: "python/conditionals-loops"
}, {
label: "Lists, Tuples, Dictionaries, and Sets",
link: "python/lists-tuples-dicts"
}, {
label: "Functions and Docstrings",
link: "python/functions"
}, {
label: "Classes and Object-Oriented Programming (OOP)",
link: "python/classes"
}, {
label: "Turtle",
link: "python/turtle/0-setup/"
}, {
label: "Setting Up",
link: 'python/setting-up'
}, {
label: "Flask",
autogenerate: {
directory: 'python/flask'
},
collapsed: true
}]
},
{
label: "Game Design",
items: [{
label: "About",
link: 'game-design/index'
}, {
label: "Godot", items: [{
label: "Godot Basics",
link: "game-design/godot/basics"
},{
label: "Universal Features",
link: "game-design/godot/universal"
},{
label: "Survivors-Like",
link: "game-design/godot/survivors"
},{
label: "Top-down Dungeon Crawler",
link: "game-design/godot/dungeoncrawler/0-scenesetup/"
},{
label: "3D Intro",
link: "game-design/godot/3d-intro/0-making-project/"
},{
label: "3D Game",
link: "game-design/godot/3dgame"
},{
label: "Setting up C# For Godot",
link: "game-design/godot/projectsetup"
},{
label: "3D Racing Game",
link: "game-design/godot/3dracinggame/0-main-scene/"
}],
collapsed: true
}],
},
{
label: "Blender",
autogenerate: {
directory: 'blender'
}
},
{
label: "Cybersecurity",
autogenerate: {
directory: 'cybersecurity'
}
},
{
label: "SQL",
autogenerate: {
directory: 'sql'
}
}, {
label: "Javascript",
items: [{
label: "Setting Up",
link: 'javascript/index'
}, {
label: "Creative Coding",
autogenerate: {
directory: 'javascript/creative-coding'
},
collapsed: true
}]
}, {
label: "Git",
autogenerate: {
directory: 'git'
}
}, {
label: "Tūhura Tech Resources",
autogenerate: {
directory: 'tuhura-tech'
}
}],
locales: {
root: {
label: 'English',
lang: 'en' // lang is required for root locales
},

autogenerate: {
directory: 'cybersecurity',
},
},
{
label: 'SQL',
autogenerate: {
directory: 'sql',
},
},
{
label: 'Javascript',
items: [
{
label: 'Setting Up',
link: 'javascript/index',
},
{
label: 'Creative Coding',
autogenerate: {
directory: 'javascript/creative-coding',
},
collapsed: true,
},
],
},
{
label: 'Git',
autogenerate: {
directory: 'git',
},
},
{
label: 'Tūhura Tech Resources',
autogenerate: {
directory: 'tuhura-tech',
},
},
],
locales: {
root: {
label: 'English',
lang: 'en', // lang is required for root locales
},

mi: {
label: 'Māori',
lang: 'mi',
},
},
favicon: '/images/favicon.svg',
head: [
// Add ICO favicon fallback for Safari.
{
tag: 'link',
attrs: {
rel: 'icon',
href: '/images/favicon.ico',
sizes: '32x32',
},
},
],
// plugins: [starlightLinksValidator({
// errorOnLocalLinks: false,
// })],
components: {
Hero: './src/components/starlight/Hero.astro',
TableOfContents: './src/components/starlight/TableOfContents.astro',
Pagination: './src/components/starlight/Pagination.astro',
MobileTableOfContents: './src/components/starlight/MobileTableOfContents.astro',
},
}),
],
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
},
});
mi: {
label: 'Māori',
lang: 'mi'
}
},
favicon: '/images/favicon.svg',
head: [
// Add ICO favicon fallback for Safari.
{
tag: 'link',
attrs: {
rel: 'icon',
href: '/images/favicon.ico',
sizes: '32x32'
}
}],
plugins: [starlightLinksValidator({
errorOnLocalLinks: false,
})],
components: {
Hero: './src/components/starlight/Hero.astro',
TableOfContents: './src/components/starlight/TableOfContents.astro',
Pagination: './src/components/starlight/Pagination.astro',
MobileTableOfContents: './src/components/starlight/MobileTableOfContents.astro',
},
})],
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
}
});
Loading
Loading