Added footer

This commit is contained in:
Anatoliy Chakkaev 2013-03-25 15:03:50 +04:00
parent f35160d5e5
commit ef11311e42
2 changed files with 16 additions and 1 deletions

14
docs/footer.html Normal file
View File

@ -0,0 +1,14 @@
<script>
var filename = location.href.match(/([^\/]+)?\.3.html$/)[1];
var div = document.createElement('div');
div.innerHTML = 'Found a typo? ' +
linkTo('View', 'blob') + ' and ' +
linkTo('edit', 'edit') + ' this file online at GitHub.';
document.getElementById('man').appendChild(div);
function linkTo(text, dir) {
return '<a href="https://github.com/1602/jugglingdb/' +
dir + '/master/docs/' + filename + '.md">' + text + '</a>';
}
</script>

View File

@ -23,7 +23,8 @@ case $dest in
--style='print toc'\
--organization=1602\ Software\
--manual=JugglingDB &&\
cat docs/ga.html) > $2
cat docs/ga.html &&\
cat docs/footer.html) > $2
exit $?
;;
esac