Welcome to the LingoKen documentation. This guide covers setup, development, and usage for building, exploring, and expanding the language resources across Kenya's diverse dialects. Follow these instructions to get started and understand how to manage content across various language pages.
LingoKen is a Kenyan language platform designed to provide resources for learning and enjoying the cultural richness of Kenya's 42+ languages. The primary languages available include Borana, Luhya, Meru, Swahili, Kamba, Kalenjin, Turkana, Orma, Dholuo, and Kikuyu. Each language has a dedicated page with sub-pages for more in-depth exploration of specific topics, like grammar, vocabulary, and pronunciation.
To set up LingoKen locally, follow these steps:
-
Clone the repository:
git clone https://github.com/YourUsername/LingoKen.git
-
Navigate to the project directory:
cd LingoKen
-
Install dependencies:
npm install
LingoKen uses VitePress as a static site generator to power the documentation.
To preview changes locally:
npm run docs:dev
To generate static files for deployment:
npm run build
To preview the site as it will appear after deployment:
npm run serve
The content is organized into primary language directories. Each language will have its main page and corresponding sub-pages covering various aspects of learning the language.
Below is a sample folder structure to guide organization:
src/
├── .vitepress/
├── index.md # Landing page for LingoKen
├── borana/
│ ├── index.md # Main page for Borana language
│ ├── grammar.md
│ ├── vocabulary.md
│ └── pronunciation.md
├── luhya/
│ ├── index.md
│ ├── grammar.md
│ ├── vocabulary.md
│ └── pronunciation.md
└── ...
Each primary language page (index.md
) serves as an introduction to the language, and the sub-pages (grammar.md
, vocabulary.md
, pronunciation.md
) offer specific lessons and resources.
To add a new language:
- Create a new directory in
src/
named after the language. - Within this directory, add an
index.md
file for the main page and additional markdown files (e.g.,grammar.md
,vocabulary.md
) for sub-topics.
src/borana/index.md
# Borana Language
Welcome to the Borana language page. Explore the basics of grammar, vocabulary, pronunciation, and cultural insights.
src/borana/grammar.md
# Borana Grammar
This section covers the fundamental grammar rules of the Borana language.
To deploy LingoKen:
-
Build the project:
npm run build
-
Deploy the generated files in
docs/.vitepress/dist
to your hosting provider.
We welcome contributions to expand LingoKen! Whether it’s adding new languages or improving the content, your help is appreciated.
- Fork the repository and create a new branch.
- Make your changes, following the file structure guidelines above.
- Submit a pull request with a description of your updates.