fix(docs): автоматически закрепляет index.md первым в сайдбаре

Добавлен Node-скрипт, который инжектит sidebar_position: 0
в front matter docs/index.md перед сборкой Docusaurus.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-13 22:08:32 +03:00
parent bd7b35c647
commit e99b5599a4
2 changed files with 36 additions and 1 deletions
+5 -1
View File
@@ -49,7 +49,11 @@ runs:
rm -rf "${DOCUSAURUS_DIR}/docs"
cp -r "${{ inputs.docs-path }}" "${DOCUSAURUS_DIR}/docs"
cp "${{ github.workspace }}/.docuservix.yml" "${DOCUSAURUS_DIR}"
- name: Prepare docs
shell: bash
working-directory: ${{ github.action_path }}/docusaurus
run: node scripts/prepare-docs.mjs
- name: Install Docusaurus dependencies
shell: bash