-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathgenerate-readme.sh
More file actions
38 lines (26 loc) · 910 Bytes
/
generate-readme.sh
File metadata and controls
38 lines (26 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
cat > README.md <<'EOF'
# Novita AI Python SDK
This SDK is based on the official [API documentation](https://docs.novita.ai/).
**Join our discord server for help:**
[](https://discord.com/invite/Mqx7nWYzDF)
## Installation
```bash
pip install novita-client
```
## Examples
- [fine tune example](https://colab.research.google.com/drive/1j_ii9TN67nuauvc3PiauwZnC2lT62tGF?usp=sharing)
EOF
for FILE in $(ls examples/ | grep py | sort -V); do
NAME=$(echo "$FILE" | sed 's/.py//')
echo "- [$NAME](./examples/$FILE)" >> README.md
done
echo "## Code Examples" >> README.md
for FILE in $(ls examples/ | grep py | sort -V); do
NAME=$(echo "$FILE" | sed 's/.py//')
echo "" >> README.md
echo "### $NAME" >> README.md
echo "\`\`\`python" >> README.md
cat examples/$FILE >> README.md
echo "\`\`\`" >> README.md
done