Skip to content

Commit 124712e

Browse files
committed
feat: Enhance Astro configuration with new SiteTitle component, update project title, and add new documentation on security infrastructure. Upgrade dependencies and introduce CNAME for custom domain.
1 parent 425f722 commit 124712e

8 files changed

Lines changed: 375 additions & 25 deletions

File tree

astro.config.mjs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import starlightBlog from 'starlight-blog';
5+
import starlightThemeFlexoki from 'starlight-theme-flexoki';
56

67
// https://astro.build/config
78
export default defineConfig({
89
integrations: [
910
starlight({
10-
title: 'JibbScript',
11+
title: 'Yarp.Cloud',
1112
plugins: [
13+
starlightThemeFlexoki(),
1214
starlightBlog(),
1315
],
14-
// Add logo
15-
logo: {
16-
src: './src/assets/yarpdotcloudpokemonlogo.svg',
17-
},
16+
// Logo now handled by custom SiteTitle component
1817
social: [
19-
{ icon: 'github', label: 'GitHub', href: 'https://github.com/jibbscript' },
20-
{ icon: 'linkedin', label: 'LinkedIn', href: 'https://linkedin.com/in/gibran.iqbal' },
18+
{ icon: 'github', label: 'GitHub', href: 'https://www.github.com/jibbscript' },
19+
{ icon: 'linkedin', label: 'LinkedIn', href: 'https://www.linkedin.com/in/gibran-iqbal/' },
2120
{ icon: 'email', label: 'Email', href: 'mailto:giqbal@gibraniq.com' },
2221
],
2322
sidebar: [
@@ -27,11 +26,14 @@ export default defineConfig({
2726
// Each item here is one entry in the navigation menu.
2827
{ label: 'Rangency', slug: 'reflections/rangency' },
2928
{ label: 'FedRAMP Data Mesh Reference Architecture', slug: 'fedramp/fedramp-datamesh' },
30-
{ label: 'Security Infrastructure MVP Collection', slug: 'security/security-infrastructure-mvp-collection/security-infra-mvp-product-req-docs' },
29+
{ label: 'Security Infrastructure MVP Collection', slug: 'security/security-infrastructure-mvp-collection/infra-security-projects' },
3130
],
3231
},
3332
],
3433

34+
components: {
35+
SiteTitle: './src/components/SiteTitle.astro',
36+
},
3537
}),
3638
],
3739
site: 'https://www.yarp.cloud',

package-lock.json

Lines changed: 31 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/starlight": "^0.34.3",
14-
"astro": "^5.8.0",
14+
"astro": "^5.9.2",
1515
"better-sqlite3": "^11.9.1",
1616
"sharp": "^0.32.5",
17-
"starlight-blog": "^0.21.0"
17+
"starlight-blog": "^0.21.0",
18+
"starlight-theme-flexoki": "^0.1.0"
1819
}
1920
}

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarp.cloud

src/components/SiteTitle.astro

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
import { Image } from "astro:assets";
3+
import config from "virtual:starlight/user-config";
4+
import logo from "../assets/yarpdotcloudpokemonlogo.svg";
5+
6+
const { locale } = Astro.props;
7+
// Get the site title from config, handling localization
8+
const siteTitle =
9+
typeof config.title === "string"
10+
? config.title
11+
: config.title?.[locale] || config.title?.["en"] || "YarpDotCloud";
12+
---
13+
14+
<a href={import.meta.env.BASE_URL} class="site-title">
15+
<Image
16+
src={logo}
17+
alt="YarpDotCloud Logo"
18+
width={93}
19+
height={93}
20+
loading="eager"
21+
decoding="async"
22+
class="logo"
23+
/>
24+
</a>
25+
26+
<style>
27+
.site-title {
28+
align-items: center;
29+
color: inherit;
30+
display: flex;
31+
font-size: var(--sl-text-h4);
32+
font-weight: 600;
33+
gap: 0.5rem;
34+
text-decoration: none;
35+
}
36+
37+
.logo {
38+
flex-shrink: 0;
39+
max-height: 100%;
40+
object-fit: contain;
41+
}
42+
43+
@media (min-width: 50rem) {
44+
.site-title {
45+
font-size: var(--sl-text-h3);
46+
}
47+
}
48+
</style>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Example Guide
3+
description: A guide in my new Starlight docs site.
4+
---
5+
6+
Guides lead a user through a specific task they want to accomplish, often with a sequence of steps.
7+
Writing a good guide requires thinking about what your users are trying to do.
8+
9+
## Further reading
10+
11+
- Read [about how-to guides](https://diataxis.fr/how-to-guides/) in the Diátaxis framework

0 commit comments

Comments
 (0)