Search by

aliarteo / ali-docs-bundle

benaliart

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

Statistics

Installs: 17

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v1.3.0 2026-11-24 18:06 UTC

This package is auto-updated.

Last update: 2026-11-24 18:07:27 UTC


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

License

MIT License. See the LICENCE file.