Skip to content

Commit

Permalink
[docs] Add redirects for latest page
Browse files Browse the repository at this point in the history
Redirects now use jekyll directly rather than using HTML, since
the documentation was unclear at first.
  • Loading branch information
gregnazario committed Feb 16, 2024
1 parent 30e6832 commit a5ad809
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion docs/@aptos-labs/.nojekyll

This file was deleted.

5 changes: 0 additions & 5 deletions docs/@aptos-labs/index.html

This file was deleted.

5 changes: 5 additions & 0 deletions docs/@aptos-labs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
permalink: /@aptos-labs
redirect_to:
- ./ts-sdk-latest
---
1 change: 0 additions & 1 deletion docs/@aptos-labs/ts-sdk-latest/.nojekyll

This file was deleted.

5 changes: 0 additions & 5 deletions docs/@aptos-labs/ts-sdk-latest/index.html

This file was deleted.

5 changes: 5 additions & 0 deletions docs/@aptos-labs/ts-sdk-latest/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
permalink: /ts-sdk-latest
redirect_to:
- ../ts-sdk-1.7.0
---
2 changes: 1 addition & 1 deletion scripts/generateDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ else
fi

# Now update the redirect
REDIRECT_FILE='docs/@aptos-labs/ts-sdk-latest/index.html';
REDIRECT_FILE='docs/@aptos-labs/ts-sdk-latest/index.md';
$(sed -i.bak "s/- ts-sdk-.*/- ts-sdk-$npm_package_version/" $REDIRECT_FILE)
echo "Updated redirect $REDIRECT_FILE with version $npm_package_version for latest";

0 comments on commit a5ad809

Please sign in to comment.