Skip to content
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
10 changes: 2 additions & 8 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@ import { starlightPluginSmokeTest } from './config/plugins/smoke-test';
import { rehypeTasklistEnhancer } from './config/plugins/rehype-tasklist-enhancer';
import { remarkFallbackLang } from './config/plugins/remark-fallback-lang';

const previewBranch = process.env.GITHUB_HEAD_REF;
const previewSite = previewBranch
? `https://${previewBranch}.previews.docs.astro.build/`
: undefined;

const site = previewSite || 'https://v6.docs.astro.build/';

// https://astro.build/config
export default defineConfig({
site,
site: 'https://docs.astro.build/',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be v6.docs.astro.build unless we want the head links to point back to the main site.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's for the canonical link, we want it to target our current docs! Chris left a similar comment on the v5 archive: #13369 (comment)

integrations: [
devServerFileWatcher([
'./config/**', // Custom plugins and integrations
Expand All @@ -32,6 +25,7 @@ export default defineConfig({
expressiveCode: {
plugins: [pluginCollapsibleSections()],
},
customCss: ['./src/styles/custom.css'],
components: {
EditLink: './src/components/starlight/EditLink.astro',
Hero: './src/components/starlight/Hero.astro',
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint-linkcheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class LinkChecker {

// Use our class to check for link issues
const linkChecker = new LinkChecker({
baseUrl: 'https://docs.astro.build',
baseUrl: 'https://v6.docs.astro.build',
buildOutputDir: './dist',
pageSourceDir: './src/content/docs',
checks: [
Expand Down
5 changes: 5 additions & 0 deletions src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { AstroDocsI18nSchema } from './content/i18n-schema';
import { logoKeys } from './data/logos';

export const baseSchema = z.object({
// ADD A SITE-WIDE BANNER TO SHOW THESE ARE OLD DOCS.
banner: z.object({ content: z.string() }).default({
content:
'This is an unmaintained snapshot of the Astro v6 docs. <a href="https://docs.astro.build/">View the latest docs.</a>',
}),
type: z.literal('base').optional().default('base'),
i18nReady: z.boolean().default(false),
githubURL: z.url().optional(),
Expand Down
5 changes: 1 addition & 4 deletions src/content/docs/ar/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ i18nReady: true
tableOfContents: false
editUrl: false
next: false
banner:
content: |
الإصدار 6 منAstro وصل! <a href="/ar/guides/upgrade-to/v6/">تعرف على كيفية ترقية موقعك</a>
hero:
title: وثائق Astro
tagline: إرشادات وموارد ومراجع API لمساعدتك في البناء باستخدام Astro.
Expand Down Expand Up @@ -64,4 +61,4 @@ import Discord from '~/components/Landing/Discord.astro'
</ListCard>
</CardGrid>

<Discord title="هل لديك سؤال أو تريد المشاركة؟" cta="انضم إلى Discord الخاص بنا"/>
<Discord title="هل لديك سؤال أو تريد المشاركة؟" cta="انضم إلى Discord الخاص بنا"/>
3 changes: 0 additions & 3 deletions src/content/docs/es/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ i18nReady: true
tableOfContents: false
editUrl: false
next: false
banner:
content: |
¡Astro v6 está aquí! <a href="/es/guides/upgrade-to/v6/">Aprende a actualizar tu sitio</a>
hero:
title: Docs de Astro
tagline: Guías, recursos y referencias de API para ayudarte a construir con Astro.
Expand Down
3 changes: 0 additions & 3 deletions src/content/docs/es/upgrade-astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
title: Actualizando Astro
description: Conoce cómo actualizar Astro
i18nReady: true
banner:
content: |
¡Ya está aquí Astro v5! <a href="/es/guides/upgrade-to/v5/">Aprenda a actualizar su sitio web</a>
---
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro';
import Version from '~/components/Version.astro';
Expand Down
3 changes: 0 additions & 3 deletions src/content/docs/hi/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ i18nReady: true
tableOfContents: false
editUrl: false
next: false
banner:
content: |
Astro v6 आ गया है! <a href="/hi/guides/upgrade-to/v6/">अपनी साइट को उन्नत करना सीखें</a>
hero:
title: Astro दस्तावेज़
tagline: Astro के साथ निर्माण में आपकी सहायता के लिए मार्गदर्शिकाएँ, संसाधन और API संदर्भ।
Expand Down
3 changes: 0 additions & 3 deletions src/content/docs/zh-cn/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ i18nReady: true
tableOfContents: false
editUrl: false
next: false
banner:
content: |
Astro v6 已发布!<a href="/zh-cn/guides/upgrade-to/v6/">了解如何升级你的网站</a>
hero:
title: Astro 文档
tagline: 指南、资源和 API 参考,帮助你使用 Astro 进行构建。
Expand Down
4 changes: 4 additions & 0 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:root {
--sl-color-banner-bg: var(--sl-color-orange);
--sl-color-banner-text: #000;
}
Loading