This directory contains the source code for the Structus documentation website, built with Docusaurus 3.
- Node.js 18.0 or higher
- npm 10.0 or higher
npm installnpm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
npm run buildThis command generates static content into the build directory and can be served using any static contents hosting service.
npm run serveThis command serves the built website locally for testing.
.
├── blog/ # Blog posts
│ ├── authors.yml # Blog authors
│ └── *.md # Blog post files
├── docs/ # Documentation files
│ ├── intro.md # Introduction page
│ ├── getting-started/ # Getting started guides
│ ├── architecture/ # Architecture documentation
│ ├── advanced/ # Advanced topics
│ ├── best-practices/ # Best practices
│ └── reference/ # API reference
├── src/
│ ├── components/ # React components
│ ├── css/ # Custom CSS
│ └── pages/ # Custom pages (homepage, etc.)
├── static/
│ └── img/ # Static images
├── docusaurus.config.ts # Docusaurus configuration
├── sidebars.ts # Sidebar configuration
├── package.json # Dependencies
└── tsconfig.json # TypeScript configuration
Edit src/css/custom.css to customize the color scheme. The current theme uses a purple/indigo palette inspired by detekt.dev.
Edit src/pages/index.tsx to customize the homepage content and layout.
Edit docusaurus.config.ts to modify the navbar and footer links.
Edit sidebars.ts to organize the documentation structure.
- Create a new
.mdfile in the appropriatedocs/subdirectory - Add frontmatter at the top:
---
sidebar_position: 1
title: Your Title
---
# Your Content- The file will automatically appear in the sidebar based on the directory structure
- Create a new
.mdfile inblog/with the formatYYYY-MM-DD-slug.md - Add frontmatter:
---
slug: your-slug
title: Your Title
authors: [melsardes]
tags: [tag1, tag2]
---
Your content here
<!-- truncate -->
More content after the foldThe site can be deployed to GitHub Pages using:
npm run deployMake sure to configure the organizationName, projectName, and url in docusaurus.config.ts.
The built site in the build/ directory can be deployed to:
- Netlify
- Vercel
- AWS S3
- Any static hosting service
Contributions to the documentation are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Structus was created by Mel Sardes.
This documentation is part of the Structus project and is licensed under the MIT License.