Skip to content

Commit

Permalink
fix: make english root lang for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanenkoStud committed Dec 13, 2023
1 parent 2754cf0 commit 81f3c5c
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 51 deletions.
5 changes: 3 additions & 2 deletions packages/kite-chat-docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ export default defineConfig({
directory: 'reference'
}
}],
defaultLocale: 'en',
defaultLocale: 'root', // optional
locales: {
// English docs
en: {
root: {
label: 'English',
lang: 'en', // lang is required for root locales
},
// Ukranian docs
ua: {
Expand Down
46 changes: 0 additions & 46 deletions packages/kite-chat-docs/src/content/docs/en/index.mdx

This file was deleted.

47 changes: 44 additions & 3 deletions packages/kite-chat-docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
---
title: 1# Live Chat Widget
title: "#1 Live Chat Widget"
banner:
content: |
You are viewing the test version of docs!
<a href="/">Check out the stable version</a>
branch: test
description: Get started building your docs site with Starlight.
template: splash
hero:
tagline: This project includes kite-chat web component and a protocol driver to communicate with the chat backend.
image:
light: ../../assets/kite-chat-screenshot-en-light.png
dark: ../../assets/kite-chat-screenshot-en-dark.png
video:
light:
src: __BASE_URL__/videos/hero-en-light.mp4
dark:
src: __BASE_URL__/videos/hero-en-dark.mp4
actions:
- text: Getting Started
link: __BASE_URL__/start/getting-started/
icon: right-arrow
variant: primary
- text: View on GitHub
link: https://github.com/pragmasoft-ua/kite-chat-frontend
icon: external
---
//https://docs.astro.build/en/recipes/i18n/#set-up-pages-for-each-language
<meta http-equiv="refresh" content="0;url=__BASE_URL__/en/" />

import { CardGrid } from '@astrojs/starlight/components';
import LinkCard from '@components/LinkCard.astro';

<CardGrid stagger>
<LinkCard title="Documentation" icon="pencil" href="__BASE_URL__/reference/elements/">
Kite Chat has detailed documentation and examples.
</LinkCard>
<LinkCard title="Easy Setup" icon="puzzle" href="__BASE_URL__/start/getting-started/">
No installation needed, just use package cdn link.
</LinkCard>
<LinkCard title="Live Demo" icon="rocket" href="__BASE_URL__/start/demo/">
Get familiar with widget using Kite Chat Sandbox.
</LinkCard>
<LinkCard title="Open source" icon="github" href="https://github.com/pragmasoft-ua/kite-chat-frontend/">
Learn more at the Kite Chat GitHub.
</LinkCard>
</CardGrid>

0 comments on commit 81f3c5c

Please sign in to comment.