Skip to content

SWEEP-Inc/DocuSWEEP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37 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

0 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors