Welcome to DocStack #
DocStack is a simple, flat-file documentation system built with PHP. No database required.
Features #
- Flat-file storage - Your content lives in markdown files
- Zero configuration - Works out of the box
- Admin editing - Built-in Monaco editor for content management
- Customizable - Branding, colors, and custom CSS/JS support
- Dark mode - Automatic theme detection
- Responsive - Works on desktop and mobile
Getting Started #
- Copy
.env.exampleto.env - Customize your settings
- Add your content to the
content/directory - Run with the PHP development server
php -S localhost:8000 -t public public/router.php
For production, use Apache or Nginx with the included .htaccess rules.
Directory Structure #
your-docs/
├── content/ # Your markdown files
│ ├── 01-section/ # Sections appear as tabs
│ │ ├── index.md # Section landing page
│ │ └── 01-page.md # Pages in sidebar
│ └── 02-section/
├── public/
│ └── assets/
│ ├── custom.css # Your custom styles
│ └── custom.js # Your custom scripts
└── .env # Your configuration