Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upd generator script #19

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ instances:
custom-domain: api.qdrant.tech
title: Qdrant | API Reference
versions:
- display-name: master
path: ./versions/master.yml
- display-name: v1.9.x
path: ./versions/v1.9.x.yml
- display-name: master
path: ./versions/master.yml
colors:
accentPrimary:
light: '#DC244C'
Expand Down
5 changes: 2 additions & 3 deletions tools/sync-openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,15 @@ VERSIONS_TMP_YAML=qdrant/versions.tmp.yml

echo "versions:" > $VERSIONS_TMP_YAML

echo " - display-name: master" >> $VERSIONS_TMP_YAML
echo " path: ./versions/master.yml" >> $VERSIONS_TMP_YAML

for version in $(ls $PROJECT_ROOT/fern/versions | grep -oP 'v\d.*' | sort -V); do
# cut the .yml extension
version=$(echo $version | sed 's/\.yml$//g')
echo " - display-name: $version" >> $VERSIONS_TMP_YAML
echo " path: ./versions/$version.yml" >> $VERSIONS_TMP_YAML
done

echo " - display-name: master" >> $VERSIONS_TMP_YAML
echo " path: ./versions/master.yml" >> $VERSIONS_TMP_YAML

# Join the versions with the existing docs.yml using `yq`

Expand Down