Skip to content

Commit ee73737

Browse files
committed
Fix documentation build script
1 parent b9895b8 commit ee73737

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ sed -i 's/margin: 5px 0px;/margin: 20px 0px 5px 0px;/' book/css/general.css
4141
# Set up for easier distribution:
4242
mv book autocycler_docs
4343
mv autocycler_docs/index.html autocycler_docs.html
44-
sed -i 's|href="|href="autocycler_docs/|g' autocycler_docs.html
45-
sed -i 's|src="|src="autocycler_docs/|g' autocycler_docs.html
46-
sed -i 's|var path_to_root = "";|var path_to_root = "autocycler_docs/";|' autocycler_docs.html
44+
sed -i '/<head>/a<base href="autocycler_docs/">' autocycler_docs.html
4745
tar -zcvf autocycler_docs.tar.gz --owner=0 --group=0 autocycler_docs.html autocycler_docs/
4846

4947
# Clean up:

0 commit comments

Comments
 (0)