Add Website to monorepo and adapt CI

This commit is contained in:
Kjeld Schouten
2024-10-17 17:29:05 +02:00
parent 15fdf88b78
commit 800b35c58e
718 changed files with 44659 additions and 19 deletions
+22
View File
@@ -0,0 +1,22 @@
# build output
dist/
build/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store
+4
View File
@@ -0,0 +1,4 @@
# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
MD013:
line_length: 150
MD033: false
+1
View File
@@ -0,0 +1 @@
save-exact=true
+1
View File
@@ -0,0 +1 @@
20.18.0
+14
View File
@@ -0,0 +1,14 @@
{
"recommendations": [
"astro-build.astro-vscode",
"redhat.vscode-yaml",
"mrmlnc.vscode-duplicate",
"mhutchie.git-graph",
"eamodio.gitlens",
"yzhang.markdown-all-in-one",
"searKing.preview-vscode",
"DavidAnson.vscode-markdownlint",
"IgorSbitnev.error-gutters",
"usernamehw.errorlens"
]
}
+11
View File
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
+3
View File
@@ -0,0 +1,3 @@
{
}
+22
View File
@@ -0,0 +1,22 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Install All Recommended Extensions",
"type": "shell",
"windows": {
"command": "foreach ($ext in (Get-Content -Raw .vscode/extensions.json | ConvertFrom-Json).recommendations) { Write-Host Installing $ext; code --install-extension $ext; }"
},
"linux": {
"command": "cat .vscode/extensions.json | jq .recommendations[] | xargs -n 1 code . --install-extension"
},
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"reveal": "silent"
},
"problemMatcher": []
}
]
}
+6
View File
@@ -0,0 +1,6 @@
Copyright (C) The TrueCharts Project and it's owner(s) - All Rights Reserved
Unauthorized copying of any file, via any medium is strictly prohibited
Additional rights might be granted on a case-by-base basis.
Owners of TrueCharts and it's intellectual property:
Kjeld Schouten <info@kjeldschouten.nl>
View File
+39
View File
@@ -0,0 +1,39 @@
# Chart Docs
## News
- To add new authors, add their username in the `authors.ts` file in `src/content/docs/news/authors.ts`.
- News Posts **must** have these fields in the `frontmatter`:
- `title`
- `slug` (must start with `news/`)
- `date`
- `authors` (The key in the `authors` object in `src/content/docs/news/authors.ts`)
## Supported Code Block Languages
Check upstream [docs](https://github.com/shikijs/textmate-grammars-themes/blob/main/packages/tm-grammars/README.md#grammars)
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run dev-windows` | Starts local dev server on windows machines |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name.
Images can be added to `src/assets/` and embedded in Markdown with a relative link.
Static assets, like favicons, can be placed in the `public/` directory.
## 👀 Want to learn more?
Check out [Starlights docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build),
or jump into the [Astro Discord server](https://astro.build/chat).
+190
View File
@@ -0,0 +1,190 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
// https://starlight.astro.build/guides/css-and-tailwind/#tailwind-css
import tailwind from "@astrojs/tailwind";
// https://github.com/HiDeoo/starlight-links-validator
import starlightLinksValidator from "starlight-links-validator";
// https://github.com/HiDeoo/starlight-image-zoom
import starlightImageZoom from "starlight-image-zoom";
// https://github.com/HiDeoo/starlight-blog
import starlightBlog from "starlight-blog";
// https://docs.astro.build/en/guides/integrations-guide/sitemap/
import sitemap from "@astrojs/sitemap";
// https://github.com/alextim/astro-lib/tree/main/packages/astro-robots-txt#readme
import robotsTxt from "astro-robots-txt";
// https://github.com/giuseppelt/astro-lottie
import lottie from "astro-integration-lottie";
// https://github.com/risu729/astro-better-image-service
import betterImageService from "astro-better-image-service";
// https://github.com/Playform/Compress
import playformCompress from "@playform/compress";
// Configure global authors here
import { authors } from "./src/content/docs/news/authors";
const site = "https://truecharts.org";
// https://astro.build/config
export default defineConfig({
site: site,
base: "/",
output: "static",
outDir: "build",
cacheDir: ".astro/cache",
trailingSlash: "ignore",
compressHTML: true,
prefetch: {
prefetchAll: true,
},
build: {
output: "directory",
},
experimental: {
contentCollectionCache: false,
},
integrations: [
starlight({
title: "TrueCharts Charts",
customCss: ["./src/tailwind.css"],
tagline: "Awesome Helm Charts",
pagefind: true,
logo: {
src: "./src/assets/with-text.svg",
replacesTitle: true,
},
head: [
{
tag: "script",
attrs: {
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9270569596814796",
crossorigin: "anonymous",
defer: true,
},
},
{
tag: "script",
attrs: {
src: "https://www.googletagmanager.com/gtag/js?id=G-Q9NT692BZZ",
defer: true,
},
},
{
tag: "script",
content:
"window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-Q9NT692BZZ');",
},
],
tableOfContents: {
maxHeadingLevel: 6,
},
social: {
github: "https://github.com/truecharts",
facebook: "https://www.facebook.com/truecharts",
"x.com": "https://twitter.com/useTrueCharts",
discord: "https://discord.gg/tVsPTHWTtr",
telegram: "https://t.me/s/truecharts",
openCollective: "https://opencollective.com/truecharts",
patreon: "https://patreon.com/truecharts",
},
editLink: {
baseUrl: "https://github.com/truecharts/website/tree/main/",
},
components: {
Header: "./src/components/CustomHeader.astro",
Hero: "./src/components/CustomHero.astro",
},
plugins: [
starlightBlog({
prefix: "news",
title: "TrueCharts News",
postCount: 5,
recentPostCount: 10,
authors: authors,
}),
// Do not put that before starlightBlog
starlightImageZoom(),
starlightLinksValidator({
errorOnRelativeLinks: false,
errorOnFallbackPages: false,
exclude: [
"/s/charts",
"/s/discord",
"/s/fb",
"/s/ghs",
"/s/git",
"/s/oc",
"/s/patreon",
"/s/shop",
"/s/tg",
"/s/twitter",
],
}),
],
sidebar: [
{
label: "General",
collapsed: false,
autogenerate: {
directory: "general",
collapsed: true
},
},
{
label: "Common Chart Options",
collapsed: true,
autogenerate: {
directory: "common",
},
},
{
label: "Guides",
collapsed: true,
autogenerate: {
directory: "guides",
},
},
{
label: "ClusterTool",
collapsed: true,
autogenerate: {
directory: "clustertool",
},
},
{
label: "Charts",
collapsed: true,
autogenerate: {
directory: "charts",
},
},
{
label: "Development",
collapsed: true,
autogenerate: {
directory: "development",
},
},
{
label: "Deprecated",
collapsed: true,
autogenerate: {
directory: "deprecated",
},
},
],
}),
sitemap(),
robotsTxt(),
tailwind({
// Disable the default base styles:
applyBaseStyles: false,
}),
lottie(),
betterImageService(),
playformCompress({
HTML: false,
CSS: true,
JavaScript: true,
Image: true,
SVG: true,
}),
],
});
+70
View File
@@ -0,0 +1,70 @@
words:
- alfi
- APPNAME
- archivebox
- astro
- astrojs
- automount
- Bitnami
- bitpushr
- cloudnative
- clusterissuer
- Clustertool
- CNPG
- codespace
- Codespaces
- Collabora
- configmap
- crossorigin
- Dockerhub
- downscaling
- Dragonfish
- fluxcd
- frontmatter
- gitops
- heavyscript
- hyperconverged
- iscsi
- Jagr
- jagrbombs
- Jailman
- Jellyfin
- Kjeld
- kofeh
- kqmaverick
- kubeapps
- Merch
- metallb
- Minio
- mountpoint
- Nextcloud
- Noob
- notoriosly
- ornias
- pagefind
- Photoprism
- Pihole
- playform
- Postgreqsql
- preconfigured
- Prowlarr
- PVCPATH
- Radarr
- Schouten
- sdimovv
- shadofall
- shoutout
- showstealers
- Sidero
- statefulset
- statefulsets
- Syncthing
- tailscale
- TCCR
- templating
- Traefik
- truecharts
- upscaling
- Vaultwarden
- Xstar
- Xsystems
+10092
View File
File diff suppressed because it is too large Load Diff
+39
View File
@@ -0,0 +1,39 @@
{
"name": "website",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "export NODE_OPTIONS=--max-old-space-size=22000 && astro dev",
"start": "export NODE_OPTIONS=--max-old-space-size=22000 && astro dev",
"check": "export NODE_OPTIONS=--max-old-space-size=22000 && astro check",
"build": "export NODE_OPTIONS=--max-old-space-size=22000 && astro build",
"preview": "export NODE_OPTIONS=--max-old-space-size=22000 && astro preview",
"astro": "export NODE_OPTIONS=--max-old-space-size=22000 && astro",
"dev-windows": "set NODE_OPTIONS=--max-old-space-size=22000 && astro dev",
"start-windows": "set NODE_OPTIONS=--max-old-space-size=22000 && astro dev",
"check-windows": "set NODE_OPTIONS=--max-old-space-size=22000 && astro check",
"build-windows": "set NODE_OPTIONS=--max-old-space-size=22000 && astro build",
"preview-windows": "set NODE_OPTIONS=--max-old-space-size=22000 && astro preview",
"astro-windows": "set NODE_OPTIONS=--max-old-space-size=22000 && astro"
},
"dependencies": {
"@astrojs/check": "0.9.3",
"@astrojs/sitemap": "3.1.6",
"@astrojs/starlight": "0.27.1",
"@astrojs/starlight-tailwind": "2.0.3",
"@astrojs/tailwind": "5.1.0",
"@playform/compress": "0.1.1",
"astro": "4.15.4",
"astro-better-image-service": "2.0.29",
"astro-integration-lottie": "0.3.0",
"astro-robots-txt": "1.0.0",
"lottie-web": "5.12.2",
"prettier": "3.3.3",
"sharp": "0.33.5",
"starlight-blog": "0.12.0",
"starlight-image-zoom": "0.8.0",
"starlight-links-validator": "0.11.0",
"tailwindcss": "3.4.10",
"typescript": "5.6.2"
}
}
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
truecharts.org
+44
View File
@@ -0,0 +1,44 @@
# Changes in this file should preferably be reflected in docs/s/
# social
/s/discord https://discord.gg/tVsPTHWTtr 308
/s/twitter https://twitter.com/useTrueCharts 308
/s/fb https://www.facebook.com/truecharts 308
/s/tg https://t.me/s/truecharts 308
# sponsor
/s/oc https://opencollective.com/truecharts 308
/s/patreon https://patreon.com/truecharts 308
/s/ghs https://github.com/sponsors/truecharts 308
# other
/s/git https://github.com/truecharts 308
/s/charts https://github.com/truecharts/charts 308
/s/shop https://www.etsy.com/shop/TrueCharts 308
# truecharts
/s /general/sponsor/ 308
/blog/* /news/:splat 308
# big chart-changes
/charts/operators/* /charts/system/:splat 308
/charts/enterprise/* /charts/premium/:splat 308
# Cover for .md linknames
/*.md /:splat 301
# Cover for intro pages now being index
/*/intro /:splat/ 301
# old->new website
/manual/* /general/:splat 301
/platforms/* /:splat 301
/general/common/* /common/:splat 301
/sponsor /general/sponsor/
# SCALE guides and deprecation redirects
/scale/guides/getting-started/ /deprecated/scale
/scale /deprecated/scale
/scale/* /deprecated/scale/:splat 301
# HELM is now found under "Guides"
/helm /guides
+1
View File
@@ -0,0 +1 @@
google.com, pub-9270569596814796, DIRECT, f08c47fec0942fa0
Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 B

Some files were not shown because too many files have changed in this diff Show More