aliarteo / ali-docs-bundle
A Symfony Bundle to build documentation websites from Markdown files.
Package info
github.com/benaliart/AliDocsBundle
Type:symfony-bundle
pkg:composer/aliarteo/ali-docs-bundle
Requires
- php: >=8.2
- erusev/parsedown: ^1.7
- symfony/asset: ^6.4|^7.0
- symfony/console: ^6.4|^7.0
- symfony/filesystem: ^6.4|^7.0
- symfony/finder: ^6.4|^7.0
- symfony/form: ^6.4|^7.0
- symfony/framework-bundle: ^6.4|^7.0
- symfony/html-sanitizer: ^6.4|^7.0
- symfony/mime: ^6.4|^7.0
- symfony/security-bundle: ^6.4|^7.0
- symfony/security-csrf: ^6.4|^7.0
- symfony/string: ^6.4|^7.0
- symfony/translation: ^6.4|^7.0
- symfony/twig-bundle: ^6.4|^7.0
- symfony/validator: ^6.4|^7.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A Symfony bundle to publish documentation websites from Markdown files.
A documentation is a folder of Markdown files and sub-folders. The bundle builds the website from it: navigation, search, breadcrumb, previous / next links and an edit page. No database is needed.
Requirements
- PHP 8.2 or higher
- Symfony 6.4 or 7.x
Quick start
composer require aliarteo/ali-docs-bundle php bin/console ali-docs:install php bin/console assets:install public
See the installation guide for the details.
Configuration example
# config/packages/ali_docs.yaml ali_docs: layout: home_url: '/' # link back to the application logo: '/images/logo.svg' # logo of the application in the header favicon: '/favicon.ico' extra_css: ['/css/docs.css'] # ex: colors documentations: user-guide: doc_dir: '%kernel.project_dir%/docs/user-guide' title: User guide view_security: ROLE_USER edit_security: ROLE_ADMIN
The colors are CSS variables declared on the .ali-docs container (not on :root). Override them with the same selector:
/* public/css/docs.css */ .ali-docs { --ali-docs-accent: #7647f7; --ali-docs-accent-soft: #f1ecfe; }
All the options: Configuration.
Documentation
- Introduction: features
- Installation
- Configuration
- Writing a documentation: files, order, Markdown, media, editor
- Changelog: changes of each version, upgrade notes
License
MIT License. See the LICENCE file.