dauxio / daux.io

Daux.io is an documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly. It helps you create great looking documentation in a developer friendly way.

Home Page:https://daux.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutolinkExtension not found / CommonMark version constraint

mjaschen opened this issue · comments

Describe the bug

Generating docs with daux 0.14.0 doesn't work as CommonMark's Autolink extension cannot be found:

PHP Fatal error:  Uncaught Error: Class 'League\CommonMark\Extension\Autolink\AutolinkExtension' 
not found in $HOME/vendor/daux/daux.io/libs/ContentTypes/Markdown/CommonMarkConverter.php:20

Reason seems to be the CommonMark dependency. It's required with the version constraint ^1.0.0. in composer.json (Link to source).

CommonMark in version 1.0.0 doesn't provide the AutolinkExtension (Link), it was introduced with with CommonMark 1.3.0 (Link)

To Reproduce

Steps to reproduce the behavior:

  1. Run daux: php vendor/bin/daux generate -d build/daux
  2. See error

Expected behavior

The docs should be generated successfully.

Desktop (please complete the following information):

  • OS: macOS 10.15.5
  • PHP 7.4.6:
PHP 7.4.6 (cli) (built: Jun  4 2020 15:48:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans

Never mind, it was a configuration error on my side.