Problem/Motivation
It would be nice if we could add the steps to add the Ttocbot library that is used by this module with composer.
Proposed resolution
Update the Readme file and project detail page on drupal.org
Remaining tasks
Create a patch, if you are open to this suggestion I don't mind creating and posting the patch.
As I see it now the following steps are needed:
INSTALLATION VIA COMPOSER
1. It is assumed you are installing Drupal with Composer (
https://www.drupal.org/download →
).
2. Add the following entry in the "repositories" section of your main composer.json file.
{
"type": "package",
"package": {
"name": "tscanlin/tocbot",
"version": "4.30.0",
"type": "drupal-library",
"source": {
"url": "https://github.com/tscanlin/tocbot",
"type": "git",
"reference": "v4.30.0"
}
}
}
Now you can run the following command to install chosen in the right folder:
composer require tscanlin/tocbot
3. Clear the cache
4. Configure the module (as you normally would).