BO
bobrossrtx/demi-website
The official website for the Demi programming language
Demi Programming Language Website
The official website and documentation for the Demi programming language.
๐ Overview
This repository contains the source code for the Demi programming language's official website and documentation. The website serves as the primary resource for learning and understanding Demi.
๐ Project Structure
demi-website/
โโโ frontend/ # React frontend application
โโโ backend/ # Backend static content
โ โโโ static/
โ โโโ docs/ # Documentation markdown files
โโโ .github/
โโโ prompts/ # Documentation generation prompts
๐ ๏ธ Development
Prerequisites
- Node.js
- npm/yarn
- Git
- Rust (latest stable)
- cargo
Setup
# Clone the repository
git clone https://github.com/yourusername/demi-website.git
cd demi-website
# Install Node dependencies (in /frontend directory)
cd frontend
npm install
# Install Rust dependencies (in /backend directory)
cd ../backend
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
rustup update stable
cargo build --releaseDevelopment Environment
# Terminal 1 - Watch frontend changes (in /frontend directory)
cd demi-website
npm run watch-build
# Terminal 2 - Watch Rust changes (in /backend directory)
cd backend
cargo watch -x runDirectory-Specific Commands
-
Frontend (
/frontenddirectory):npm install # Install dependencies npm run build # Build for production
-
Backend (
/backenddirectory):cargo build # Build Rust components cargo watch -x run # Watch for changes cargo test # Run tests
๐ Documentation
Documentation is written in Markdown and organized by categories:
- Getting Started (catid: 0)
- Basics (catid: 1)
- Advanced (catid: 2)
- Standard Library (catid: 3)
- Tools & Ecosystem (catid: 4)
Adding New Documentation
- Use the documentation generator prompt
- Create new markdown file in appropriate category
- Update pages.json with new entry
- Update changelog
๐ค Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
๐ License
This project is licensed under the MIT License. See the LICENSE file for details.