Skip to content

Commit 83121df

Browse files
committed
feat: initial setup
1 parent a26b15c commit 83121df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+15529
-0
lines changed

.env.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# It will force the user to add an e-mail for this project, before committing.
2+
COMMIT_MAIL=my.commit@mail.com
3+
4+
# Get credentials for public usage:
5+
# https://marketingportal.extranet.deutschebahn.com/marketingportal/Design-Anwendungen/db-ux-design-system/resources/db-theme
6+
ASSET_PASSWORD=ABC
7+
ASSET_INIT_VECTOR=ABC

LICENSE

Lines changed: 253 additions & 0 deletions
Large diffs are not rendered by default.

app.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const appConfig: AppConfig = {
2+
title: "Design System",
3+
hostname: "https://db-ux-design-system.github.io",
4+
basePath: "",
5+
sitemapBlacklist: [],
6+
language: "en",
7+
};

app.navigation.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
export const appNavigation: AppNavigation = [
2+
{
3+
title: "Products & Services",
4+
children: [
5+
{ title: "Foundations", path: "products-and-services/foundations" },
6+
{ title: "Components & Patterns", path: "products-and-services/components-and-patterns", },
7+
{ title: "Templates", path: "products-and-services/templates" },
8+
{ title: "Extensions", path: "products-and-services/extensions" },
9+
],
10+
},
11+
{
12+
title: "Resources",
13+
children: [
14+
{
15+
title: "Documentation",
16+
children: [
17+
{ title: "Getting Started", path: "resources/documentation/getting-started", },
18+
{ title: "Foundations", path: "resources/documentation/foundations", },
19+
],
20+
},
21+
],
22+
},
23+
{ title: "Community", iconTrailing: "lock_closed", path: "/", }
24+
];

astro.config.mjs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// @ts-check
2+
import { defineConfig } from "astro/config";
3+
import { appConfig } from "./app.config";
4+
import react from "@astrojs/react";
5+
import mdx from "@astrojs/mdx";
6+
import sitemap from "@astrojs/sitemap";
7+
import { filterSitemapBlacklist } from "./template/integrations/sitemap";
8+
import orama from "@orama/plugin-astro";
9+
10+
// https://astro.build/config
11+
export default defineConfig({
12+
site: appConfig.hostname,
13+
base: appConfig.basePath,
14+
integrations: [
15+
react({}),
16+
mdx(),
17+
sitemap({
18+
filter: filterSitemapBlacklist,
19+
}),
20+
orama({
21+
pages: {
22+
pathMatcher: /\/.+\//,
23+
language: "english",
24+
},
25+
}),
26+
],
27+
srcDir: "./content",
28+
outDir: "./public",
29+
publicDir: "./static",
30+
vite: {
31+
ssr: {
32+
noExternal: ["@db-ux/react-core-components"],
33+
},
34+
},
35+
devToolbar: {
36+
enabled: false,
37+
},
38+
build: {
39+
inlineStylesheets: "always",
40+
},
41+
});

content/pages/.gitkeep

Whitespace-only changes.

content/pages/index.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: "@template/layouts/default"
3+
toc: false
4+
---
5+
6+
import { appConfig } from "../../app.config";
7+
8+
# Das Design System für Customer und Enterprise. One Single Source for all.
9+
10+
Starte jetzt – und bringe Konsistenz, Effizienz und Qualität in jedes Projekt
11+
12+
<a className="db-button" href={`${appConfig.basePath}resources/documentation/getting-started`} data-variant="brand">
13+
Start now
14+
</a>
15+
<a className="db-button" data-variant="ghost">
16+
Contact
17+
</a>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: "@template/layouts/default"
3+
title: "Components & Patterns"
4+
toc: false
5+
---
6+
7+
XXX
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: "@template/layouts/default"
3+
title: "Extensions"
4+
toc: false
5+
---
6+
7+
XXX
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: "@template/layouts/default"
3+
title: "Foundations"
4+
toc: false
5+
---
6+
7+
XXX

0 commit comments

Comments
 (0)