Skip to content

SWEEP-Inc/DocuSWEEP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

DocuSWEEP

Official documentation for SWEEP - Automate your development workflows with AI-powered pull requests.

Built with Docusaurus 2 for fast, responsive documentation.

🔗 Links

🚀 Quick Start

Prerequisites

  • Node.js 14.0 or higher
  • Yarn or npm

Local Development

  1. Clone the repository:
git clone https://github.com/SWEEP-Inc/DocuSWEEP.git
cd DocuSWEEP
  1. Navigate to the website directory:
cd sweep-docs-website
  1. Install dependencies:
yarn install
  1. Start the development server:
yarn start

The site will open at http://localhost:3000 with hot reload enabled.

🏗️ Build and Deploy

Build for Production

cd sweep-docs-website
yarn build

This generates a static build in the build/ directory.

Test Production Build Locally

yarn serve

Access the production build at http://localhost:3000

Deploy to GitHub Pages

For Windows:

cmd /C "set "GIT_USER=<GITHUB_USERNAME>" && yarn deploy"

For Linux/macOS:

GIT_USER=<GITHUB_USERNAME> yarn deploy

The site will be deployed to the gh-pages branch.

📝 Creating Documentation Pages

1. Create a New Section

To create a new documentation section, create a folder under docs/ and add a _category_.json file:

{
  "label": "Getting Started",
  "position": 1
}

2. Create a Documentation Page

Create a Markdown file (e.g., installation.md) with optional frontmatter:

---
id: installation
title: Installation Guide
sidebar_position: 1
---

# Installation Guide

Your content here...

3. Frontmatter Options

Common frontmatter properties:

  • id - Unique document identifier
  • title - Document title
  • sidebar_label - Custom sidebar label
  • sidebar_position - Position in sidebar
  • description - SEO meta description
  • keywords - SEO keywords
  • hide_title - Hide the title header
  • hide_table_of_contents - Hide the table of contents

See Docusaurus Documentation for complete options.

🎨 Customization

Styling

Global styles are located in src/css/custom.css. Modify CSS variables to change the site appearance:

:root {
  --ifm-color-primary: #1ca4e8;
  /* ... other variables ... */
}

Navigation Bar

Edit the navbar configuration in docusaurus.config.js under themeConfig.navbar.

Footer

Customize the footer in docusaurus.config.js under themeConfig.footer.

📁 Project Structure

sweep-docs-website/
├── docs/                  # Documentation files
├── blog/                  # Blog posts
├── src/
│   ├── components/       # React components
│   ├── css/             # Stylesheets
│   └── pages/           # Custom pages
├── static/              # Static assets
├── docusaurus.config.js # Configuration
├── sidebars.js          # Sidebar configuration
└── package.json

🔧 Available Scripts

  • yarn start - Start development server
  • yarn build - Build for production
  • yarn serve - Serve production build locally
  • yarn swizzle - Customize Docusaurus components
  • yarn clear - Clear cache and build
  • yarn write-translations - Generate translation files
  • yarn write-heading-ids - Generate heading IDs

📚 Resources

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines.

📄 License

This documentation is part of SWEEP. See the LICENSE file for details.

💬 Support


Made with ❤️ by SWEEP, Inc.

About

SWEEP Documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors