A modern documentation website boilerplate powered by Docusaurus and Tailwind CSS
Janus is a powerful documentation website boilerplate that combines the robust features of Docusaurus with the utility-first approach of Tailwind CSS. It's designed to help you create beautiful, functional, and multilingual documentation websites with minimal setup.
- π Docusaurus Foundation: Built on top of Docusaurus, providing a stable and feature-rich documentation framework
- π¨ Tailwind CSS Integration: Modern, responsive styling with the utility-first CSS framework
- π Search Functionality: Offline/local search capabilities to help users find content quickly
- π Internationalization: Full i18n support with easy translation management
- π± Mobile Responsive: Looks great on devices of all sizes
- π³ Docker Support: Easy development and deployment with Docker
- Clone the repository:
git clone https://github.com/ayoub3bidi/janus.git
cd janus
- Install dependencies:
pnpm install
- Start the development server:
pnpm start
Your site should now be running at http://localhost:3000
All commands are run from the root of the project:
Command | Description |
---|---|
pnpm install |
Installs project dependencies |
pnpm start |
Starts development server at localhost:3000 |
pnpm build |
Builds production site to ./dist/ |
pnpm serve |
Previews production build locally |
Command | Description |
---|---|
pnpm run write-translations --locale fr |
Generates translation fields in i18n folder for French |
pnpm run start --locale fr |
Runs the French version locally |
Command | Description |
---|---|
docker-compose -f docker-compose-local.yml up --build -d |
Runs development environment in Docker |
Janus comes with built-in support for multiple languages. To add translations:
- Wrap your text in
<Translate>
tags - Generate translation files using the translation command
- Add translations to the generated files
- Run the site in your desired language
Contributions are welcome! Please feel free to submit a Pull Request.
- Built with Docusaurus
- Styled with Tailwind CSS
- Offline/local search with easyops-cn/docusaurus-search-local