Skip to content

Commit

Permalink
Remove use of sudo in deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Chihurumnaya Ibiam <[email protected]>
  • Loading branch information
chimosky committed May 8, 2024
1 parent cf0b83e commit 0e6bf3b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ci/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ sudo make

# make documentation
show-green "Building documentation"
sudo ./make-doc.sh
sudo mkdir deploy
sudo mv doc/_build/html deploy/sugar3
sudo touch deploy/.nojekyll
./make-doc.sh
mkdir deploy
mv doc/_build/html deploy/sugar3
touch deploy/.nojekyll
# create an index.html so that users don't become confused
show-green "Writing index.html"
sudo echo "<h1>Page Moved</h1>" > deploy/index.html
sudo echo "<p>We have moved this page to <a href=\"https://github.com/sugarlabs/sugar-docs/blob/master/README.md\">GitHub</a>.</p>" >> deploy/index.html
sudo echo "<p>How did you get here? Please <a href=\"https://github.com/sugarlabs/sugar-docs/issues\">report</a> any lingering links.</p>" >> deploy/index.html
echo "<h1>Page Moved</h1>" > deploy/index.html
echo "<p>We have moved this page to <a href=\"https://github.com/sugarlabs/sugar-docs/blob/master/README.md\">GitHub</a>.</p>" >> deploy/index.html
echo "<p>How did you get here? Please <a href=\"https://github.com/sugarlabs/sugar-docs/issues\">report</a> any lingering links.</p>" >> deploy/index.html

show-green "Done"

0 comments on commit 0e6bf3b

Please sign in to comment.