Skip to content

Commit

Permalink
move docs to doc/ on gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nilclass committed Aug 6, 2023
1 parent aab8168 commit 5b8beb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/prepare-docs-for-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ set -x
# verify that gh-pages directory does not exist
[ ! -e gh-pages ]

mkdir gh-pages

# copy doc directory
cp -a target/doc gh-pages
cp -a target/doc gh-pages/

# create index.html to redirect to the proper location
# (source: https://dev.to/deciduously/prepare-your-rust-api-docs-for-github-pages-2n5i)
echo '<meta http-equiv="refresh" content="0; url=usbh">' > gh-pages/index.html
echo '<meta http-equiv="refresh" content="0; url=doc/usbh">' > gh-pages/index.html

0 comments on commit 5b8beb2

Please sign in to comment.