Skip to content

Gthulhu/docs

Repository files navigation

Gthulhu Documentation

This repository contains the official documentation for Gthulhu and SCX GoLand Core projects, built with MkDocs and Material theme.

🌐 Live Documentation

Visit the documentation at: https://gthulhu.github.io/docs

📚 Documentation Structure

The documentation is available in both Chinese and English:

Chinese (中文)

English

🛠️ Local Development

Prerequisites

  • Python 3.7+
  • pip

Setup

  1. Clone the repository:
git clone https://github.com/Gthulhu/docs.git
cd docs
  1. Install dependencies:
pip install mkdocs mkdocs-material mkdocs-mermaid2-plugin
  1. Start the development server:
mkdocs serve
  1. Open your browser and visit http://127.0.0.1:8000

Build Documentation

To build the static site:

mkdocs build

The built site will be in the site/ directory.

🚀 Deployment

Using the Deploy Script

We provide a convenient deployment script:

# Build documentation
./deploy.sh

# Build and serve locally
./deploy.sh --serve

# Build and deploy to GitHub Pages
./deploy.sh --deploy

Manual Deployment

GitHub Pages

mkdocs gh-deploy

Other Platforms

  1. Build the documentation:
mkdocs build
  1. Upload the site/ directory to your hosting provider.

📝 Contributing to Documentation

We welcome contributions to improve the documentation! Here's how:

  1. Fork this repository
  2. Create a new branch for your changes
  3. Edit the Markdown files in the docs/ directory
  4. Test your changes locally with mkdocs serve
  5. Submit a pull request

Adding New Pages

  1. Create a new Markdown file in the docs/ directory
  2. For bilingual support, create both .md (Chinese) and .en.md (English) versions
  3. Add the new page to mkdocs.yml in the nav section

Writing Guidelines

  • Use clear, concise language
  • Include code examples where appropriate
  • Add diagrams using Mermaid syntax for complex concepts
  • Ensure both Chinese and English versions are consistent
  • Test all code examples before submitting

🔧 Configuration

The documentation is configured through mkdocs.yml. Key features enabled:

  • Material Theme: Modern, responsive design
  • Bilingual Support: Chinese and English content
  • Mermaid Diagrams: Support for flowcharts and diagrams
  • Code Highlighting: Syntax highlighting for multiple languages
  • Search: Full-text search in both languages
  • Dark/Light Mode: Theme switching

📄 License

This documentation is licensed under the same terms as the Gthulhu project - GNU General Public License version 2.

🤝 Support

If you have questions about the documentation:


Made with ❤️ by the Gthulhu community

Releases

No releases published

Packages

No packages published