update config options naming, move scripts to own folder.

This commit is contained in:
Miroslav Šedivý 2025-04-05 16:53:37 +02:00
parent e3a1929f7f
commit 0e3bcedcd4
10 changed files with 96 additions and 52 deletions

17
webpage/scripts/gen-api-docs.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
cd "$(dirname "$0")/.."
# Clean the API docs
docusaurus clean-api-docs all
# Generate the API docs
docusaurus gen-api-docs all
# Create README.md
mv docs/api/neko-api.info.mdx docs/api/README.mdx
# Replace all occurences of docs/api/neko-api with docs/v3/api
find docs/api -type f -exec sed -i 's/docs\/api\/neko-api/docs\/v3\/api/g' {} \;
# This regex removes (multiline) any span tag that contains "theme-doc-version-badge":
sed -i '/<span/{:a;N;/<\/span>/!ba;/theme-doc-version-badge/d}' docs/api/README.mdx