1
0
Fork 0

{man=>manual}.html and {manual=>manual/easejs}.html

This is more consistent with GNU recommendations (though not exact).
website
Mike Gerwitz 2013-12-24 15:07:06 -05:00
parent cc077eeccd
commit 3f1a9c3607
3 changed files with 9 additions and 7 deletions

View File

@ -17,7 +17,7 @@
<li id="about"><a href="./">About</a></li> <li id="about"><a href="./">About</a></li>
<li id="news"><a href="news.html">News</a></li> <li id="news"><a href="news.html">News</a></li>
<li id="download"><a href="download.html">Download</a></li> <li id="download"><a href="download.html">Download</a></li>
<li id="manual"><a href="man.html">Manual</a></li> <li id="manual"><a href="manual.html">Manual</a></li>
<li id="source"><a href="source.html">Source Code</a></li> <li id="source"><a href="source.html">Source Code</a></li>
<li id="bugs"> <li id="bugs">
<a href="https://savannah.nongnu.org/projects/easejs/"> <a href="https://savannah.nongnu.org/projects/easejs/">

View File

@ -6,7 +6,7 @@
<ul> <ul>
<li><a href="manual/">Multiple Pages (HTML)</a></li> <li><a href="manual/">Multiple Pages (HTML)</a></li>
<li><a href="manual.html">Single Page (HTML)</a></li> <li><a href="manual/easejs.html">Single Page (HTML)</a></li>
</ul> </ul>
Additional formats are available, including PDF, Info, plain text and the source Additional formats are available, including PDF, Info, plain text and the source

View File

@ -6,7 +6,7 @@
# (apart from the website) to have its own style; that makes sense, considering # (apart from the website) to have its own style; that makes sense, considering
# the master branch should have no knowledge of the website. # the master branch should have no knowledge of the website.
# #
# Copyright (C) 2010 Mike Gerwitz # Copyright (C) 2012, 2013 Mike Gerwitz
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
@ -20,6 +20,10 @@
# #
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# This will produce documentation in the following format:
# manual/ multi-page HTML
# manual/easejs.html single-page HTML
## ##
# ensure that we are within the git repository (otherwise, we cannot generate # ensure that we are within the git repository (otherwise, we cannot generate
@ -100,11 +104,9 @@ webify()
git checkout "${WEBDOC_BRANCH:-origin/master}" \ git checkout "${WEBDOC_BRANCH:-origin/master}" \
&& make doc-html \ && make doc-html \
&& git checkout - \ && git checkout - \
&& webify "$path_doc_single" \ && ln -sf "../manual.html" "$path_doc_multi/easejs.html" \
&& for path in $( find "$path_doc_multi" -name '*.htm?' ) && for path in $( find "$path_doc_multi" -name '*.htm?' )
do do
webify "$path" "../" webify "$path" "../"
done \ done \
&& ln -sf \ && ln -sf "../$path_img" "../$path_js" "../$path_doc_multi" "$path_dest/"
"../$path_doc_single" "../$path_img" "../$path_js" "../$path_doc_multi" \
"$path_dest/"