mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-07 13:22:32 +02:00
update config options naming, move scripts to own folder.
This commit is contained in:
parent
e3a1929f7f
commit
0e3bcedcd4
10 changed files with 96 additions and 52 deletions
17
webpage/scripts/gen-api-docs.sh
Executable file
17
webpage/scripts/gen-api-docs.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue