try move website to website repo

This commit is contained in:
Kjeld Schouten
2025-10-09 16:01:21 +02:00
parent 44b936b506
commit d5f6706aa6
661 changed files with 16 additions and 130696 deletions
+16 -84
View File
@@ -175,6 +175,14 @@ jobs:
if: github.event_name == 'push'
run: helm registry logout quay.io
- name: Checkout website repo
uses: actions/checkout@v3
with:
repository: trueforge-org/website
path: website # checkout into ./website
ref: main # branch to push to
token: "${{ secrets.BOT_TOKEN }}"
- name: Copy docs to website
if: needs.check_changes.outputs.changes_detected == 'true'
shell: bash
@@ -251,88 +259,12 @@ jobs:
#
#done < src/assets/contributors.json
- name: Setup Node
if: needs.check_changes.outputs.changes_detected == 'true' && needs.check_changes.outputs.changes_detected == 'true'
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version-file: ./website/.nvmrc
- name: Commit and push changes
run: |
cd website
git config user.name "TrueForge-Bot"
git config user.email "bot@trueforge.org
- name: Fix Package-Lock
if: needs.check_changes.outputs.changes_detected == 'true'
run: cd website && npm i --package-lock-only
- name: Setup astro Cache
if: needs.check_changes.outputs.changes_detected == 'true'
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
# Cache for build and optimized images.
key: astro-${{ hashFiles('website/package-lock.json') }}
path: ./website/.astro
restore-keys: astro-
- name: Setup npm Cache
if: needs.check_changes.outputs.changes_detected == 'true'
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
# Cache for npm
path: ~/website/.npm
key: npm-${{ hashFiles('website/package-lock.json') }}
restore-keys: npm-
- name: Setup node_modules Cache
id: modulescache
if: needs.check_changes.outputs.changes_detected == 'true'
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
# Cache for npm and optimized images.
path: ./website/node_modules
key: modules-${{ hashFiles('website/package-lock.json') }}
- name: Install Packages
if: steps.modulescache.outputs.cache-hit != 'true' && needs.check_changes.outputs.changes_detected == 'true'
run: cd website && npm ci
- name: Check
if: needs.check_changes.outputs.changes_detected == 'true'
run: cd website && npm run check
- name: Build
if: needs.check_changes.outputs.changes_detected == 'true'
run: cd website && npm run build
- name: Publish to Cloudflare Pages
if: needs.check_changes.outputs.changes_detected == 'true'
id: cloudflare
continue-on-error: true
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# By default Cloudflare marks `main` as the "production" branch.
# So when this workflow is pushed to refs/heads/main, we set the branch to `main`/"production".
branch: ${{ github.ref == 'refs/heads/master' && 'main' || github.head_ref }}
# The project name in Cloudflare
projectName: website
directory: ./website/build
wranglerVersion: "3"
- name: Comment deploy url
if: github.event_name != 'push' && needs.check_changes.outputs.changes_detected == 'true'
continue-on-error: true
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
with:
message-id: cloudflare-deploy
message: |
### ✅ Deploy Preview ready!
| Name | Link |
|----------------------|-------------------------------------------------------------------------------|
|🔨 Latest commit | ${{ github.sha }} |
|🔍 Latest deploy log | https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} |
|😎 Deploy Preview Url | [${{ steps.cloudflare.outputs.url }}](${{ steps.cloudflare.outputs.url }}) |
|🌳 Environment | ${{ steps.cloudflare.outputs.environment }} |
---
- name: Release-and-Website Completed
if: needs.check_changes.outputs.changes_detected == 'true'
run: echo "DONE"
git add .
git diff-index --quiet HEAD || git commit -m "Update website with latest charts and docs"
git push origin main
-22
View File
@@ -1,22 +0,0 @@
# 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
@@ -1,4 +0,0 @@
# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
MD013:
line_length: 150
MD033: false
-1
View File
@@ -1 +0,0 @@
save-exact=true
-1
View File
@@ -1 +0,0 @@
22.20.0
-14
View File
@@ -1,14 +0,0 @@
{
"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
@@ -1,11 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
-3
View File
@@ -1,3 +0,0 @@
{
}
-22
View File
@@ -1,22 +0,0 @@
{
"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
@@ -1,6 +0,0 @@
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
@@ -1,39 +0,0 @@
# 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).
-183
View File
@@ -1,183 +0,0 @@
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: {
},
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/trueforge-org",
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/trueforge-org/truecharts/tree/master/website",
},
components: {
Header: "./src/components/CustomHeader.astro",
Hero: "./src/components/CustomHero.astro",
MarkdownContent: "./src/components/CustomMarkdownContent.astro",
},
plugins: [
starlightBlog({
prefix: "news",
title: "TrueCharts News",
postCount: 5,
recentPostCount: 10,
authors: authors,
}),
starlightImageZoom(),
starlightLinksValidator({
errorOnRelativeLinks: false,
errorOnFallbackPages: false,
errorOnLocalLinks: 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",
},
},
],
}),
sitemap(),
robotsTxt(),
tailwind({
// Disable the default base styles:
applyBaseStyles: false,
}),
lottie(),
betterImageService(),
playformCompress({
HTML: false,
CSS: true,
JavaScript: true,
Image: true,
SVG: true,
}),
],
});
-10085
View File
File diff suppressed because it is too large Load Diff
-39
View File
@@ -1,39 +0,0 @@
{
"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.4",
"@astrojs/sitemap": "3.6.0",
"@astrojs/starlight": "0.31.1",
"@astrojs/starlight-tailwind": "3.0.1",
"@astrojs/tailwind": "6.0.2",
"@playform/compress": "0.2.0",
"astro": "5.14.1",
"astro-better-image-service": "2.1.9",
"astro-integration-lottie": "0.3.2",
"astro-robots-txt": "1.0.0",
"lottie-web": "5.13.0",
"prettier": "3.6.2",
"sharp": "0.34.4",
"starlight-blog": "0.16.1",
"starlight-image-zoom": "0.10.1",
"starlight-links-validator": "0.14.3",
"tailwindcss": "3.4.18",
"typescript": "5.9.3"
}
}
Binary file not shown.
-1
View File
@@ -1 +0,0 @@
truecharts.org
-44
View File
@@ -1,44 +0,0 @@
# 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/trueforge-org 308
/s/charts https://github.com/trueforge-org/truecharts/tree/master/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
@@ -1 +0,0 @@
google.com, pub-9270569596814796, DIRECT, f08c47fec0942fa0
Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 838 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 590 B

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