Skip to content

Commit

Permalink
Use sudo
Browse files Browse the repository at this point in the history
Signed-off-by: Chihurumnaya Ibiam <ibiam@sugarlabs.org>
  • Loading branch information
chimosky committed May 8, 2024
1 parent 4fb2ddc commit cf0b83e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ci/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ show-green () {

# make source
show-green "Compiling"
./autogen.sh --with-python3
make
sudo ./autogen.sh --with-python3
sudo make

# make documentation
show-green "Building documentation"
./make-doc.sh
mkdir deploy
mv doc/_build/html deploy/sugar3
touch deploy/.nojekyll
sudo ./make-doc.sh
sudo mkdir deploy
sudo mv doc/_build/html deploy/sugar3
sudo touch deploy/.nojekyll
# create an index.html so that users don't become confused
show-green "Writing 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
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

show-green "Done"

0 comments on commit cf0b83e

Please sign in to comment.