Skip to content

ifBars/S1API-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S1API Documentation

Build Status pages-build-deployment

📚 Overview

This repository contains the official documentation for S1API, a Schedule One Mono/Il2Cpp cross-compatibility layer. The documentation is built using VitePress, a modern static site generator powered by Vue.js.

🚀 Quick Start

Prerequisites

Setup

# Clone the repository
git clone https://github.com/ifBars/S1API-docs.git
cd S1API-docs

# Install dependencies
npm install

# Start the development server
npm run docs:dev

The development server will be available at http://localhost:5173 (or another port if 5173 is in use).

🏗️ Project Structure

S1API-docs/
├── .vitepress/            # VitePress configuration
│   ├── config.mjs         # Site configuration
│   ├── theme/             # Custom theme components
│   └── docs/              # Documentation content
│       ├── guide/         # User guides and tutorials
│       ├── api/           # API reference documentation
│       └── public/        # Static assets (images, etc.)
├── .github/workflows/     # GitHub Actions workflows
└── package.json           # Project dependencies

📝 Writing Documentation

Documentation files are written in Markdown (.md). VitePress enhances standard Markdown with:

Front Matter

---
title: Page Title
description: Page description for SEO
---

Code Blocks with Syntax Highlighting

```csharp
// C# code here with syntax highlighting
var api = new S1API();
api.Initialize();
```

Custom Containers

::: tip
Helpful tips and information
:::

::: warning
Important warnings
:::

::: danger
Critical information
:::

Internal Links

[Getting Started Guide](/guide/getting-started)

🔄 Development Workflow

  1. All development happens on the dev branch
  2. Push changes to the dev branch to trigger the automatic build
  3. The CI/CD pipeline builds and deploys to the prod branch
  4. GitHub Pages serves content from the prod branch

👥 Contributing

We welcome contributions to improve the S1API documentation!

Contribution Process

  1. Fork the repository and create a branch:

    git checkout dev
    git checkout -b feature/my-documentation-update
  2. Make your changes, commit, and push:

    git add .
    git commit -m "Add documentation for feature X"
    git push origin feature/my-documentation-update
  3. Open a pull request against the dev branch

Style Guide

  • Use clear, concise language
  • Include code examples where appropriate
  • Follow the existing document structure
  • Test all code snippets to ensure they work correctly

🔗 Useful Links