diff options
author | Mike Gerwitz <mike@mikegerwitz.com> | 2013-06-16 12:41:55 -0400 |
---|---|---|
committer | Mike Gerwitz <mike@mikegerwitz.com> | 2013-06-16 12:41:55 -0400 |
commit | 2edfd71d364942b12f3f72d9a01829f58d64413e (patch) | |
tree | 41cc89c98a91f30451052a8cccc24367f4e6bd6e /tools | |
parent | 3c2e2daacdbccd335e24e5d701e8dcd62f194b04 (diff) | |
download | thoughts-2edfd71d364942b12f3f72d9a01829f58d64413e.tar.gz thoughts-2edfd71d364942b12f3f72d9a01829f58d64413e.tar.bz2 thoughts-2edfd71d364942b12f3f72d9a01829f58d64413e.zip |
:Correcting relative paper URLs
This absolute path will ensure that the link will work correctly regardless of
whether papers happens to end in a trailing slash or not.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/doclist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doclist b/tools/doclist index 78dbf77..d94da7f 100755 --- a/tools/doclist +++ b/tools/doclist @@ -36,7 +36,7 @@ while read f; do # will be taken from the first line of the source file; the source file is # guessed by simply stripping the html suffix off of the filename and # globbing for any non-html suffix - printf '<li><a href="%s">%s</a></li>\n' \ + printf '<li><a href="/papers/%s">%s</a></li>\n' \ "${fn#docs/papers/}" \ "$( head -n1 $src | sed 's/^% //' )" done |