Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-06-20 12:53:14 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2017-06-21 10:52:46 -0400
commitf873da092855ce1cffebba66bf42cd4ec4fa765d (patch)
tree9af837534a72238beeb24fed587246a26b454b61 /doc
parent83b5f1ab74f76b360889f7fae2cbe5a0c6f2f750 (diff)
downloadliza-f873da092855ce1cffebba66bf42cd4ec4fa765d.tar.gz
liza-f873da092855ce1cffebba66bf42cd4ec4fa765d.tar.bz2
liza-f873da092855ce1cffebba66bf42cd4ec4fa765d.zip
doc: Add @srcrefjs macros
* doc/macros.texi (srcrefjs): Add macros when src is both available and not
Diffstat (limited to 'doc')
-rw-r--r--doc/macros.texi14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/macros.texi b/doc/macros.texi
index 46a4c15..7eb428b 100644
--- a/doc/macros.texi
+++ b/doc/macros.texi
@@ -140,11 +140,15 @@ This system has maintenance concerns.
@c the path to the file
@ifset SRCURI
@macro srcref{path, display}
-@url{@value{SRCURI}/\path\, @code{\display\}}
+@url{@value{SRCURI}/\path\, @file{\display\}}
@end macro
@macro srcrefraw{path}
-@url{@value{SRCURI}/\path\, @code{\path\}}
+@url{@value{SRCURI}/\path\, @file{\path\}}
+@end macro
+
+@macro srcrefjs{base,module}
+@srcref{src/\base\/\module\.js, \module\}
@end macro
@end ifset
@@ -156,6 +160,12 @@ This system has maintenance concerns.
@macro srcrefraw{path}
@file{\path\}
@end macro
+
+@c intended to display a name without JS,
+@c so just do that rather than the actual path
+@macro srcrefjs{base,path}
+@srcrefraw{\base\/\path\}
+@end macro
@end ifclear