1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

Moved README.md to BRANCHES.md

This commit is contained in:
Aditya Kumar 2024-11-27 17:06:30 +05:30
parent 047ecea79b
commit 9a2384c859
No known key found for this signature in database

View file

@ -41,18 +41,18 @@ jobs:
rm -rf versioned_docs # Clean up
rm -rf target # Clean up
- name: Generate README.md
- name: Generate BRANCHES.md
run: |
VERSIONS=$(ls -d */ | sed 's#/##' | sort -r) # Get all version directories and sort them (latest first)
rm README.md # Delete README.md and generate a new one
echo "# Azalea Docs" > README.md
echo "Welcome to the documentation for Azalea Crate." >> README.md
echo "" >> README.md
echo "# Azalea Docs" > BRANCHES.md
echo "Welcome to the documentation for Azalea Crate." >> BRANCHES.md
echo "" >> BRANCHES.md
# Update README.md with available versions
echo "## Available Versions" >> README.md
echo "## Available Versions" >> BRANCHES.md
for VERSION in $VERSIONS; do
echo "- [$VERSION](./$VERSION/index.html)" >> README.md
echo "- [$VERSION](https://azalea.matdoes.dev/$VERSION/index.html)" >> BRANCHES.md
done
echo "README.md updated successfully."