diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 42313a6..264342e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,7 +17,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.2 coverage: none env: COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -26,10 +26,10 @@ jobs: - uses: "ramsey/composer-install@v3" - name: Install rule doc generator - run: composer require symplify/rule-doc-generator --with-all-dependencies + run: composer require symplify/rule-doc-generator:^12.1 --with-all-dependencies - name: Generate documentation - run: composer docs + run: "composer docs:generate" - name: Uninstall rule doc generator run: composer remove symplify/rule-doc-generator diff --git a/composer.json b/composer.json index 296b740..f681b1d 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ ] }, "scripts": { - "docs": "@php vendor/bin/rule-doc-generator generate src --output-file docs/all_rectors_overview.md --ansi" + "docs:generate": "@php rule-doc-generator generate rules --output-file docs/all_rectors_overview.md --ansi --categorize 2" }, "minimum-stability": "dev", "prefer-stable": true