changeset 2593:e61209c0f871 octave-forge

Added clickable See also links in the function reference
author hauberg
date Thu, 05 Oct 2006 11:20:30 +0000
parents aeec4097c132
children e5040404f1c8
files www/Makefile www/macros.m4 www/octave-forge.css
diffstat 3 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/www/Makefile	Thu Oct 05 10:44:49 2006 +0000
+++ b/www/Makefile	Thu Oct 05 11:20:30 2006 +0000
@@ -26,8 +26,8 @@
 
 html: $(IMG_HTML)
 	
-doc/f/edit.html:
-	@echo Skipping edit.html
+#doc/f/edit.html:
+#	@echo Skipping edit.html
 
 %.html : %.in
 	$(M4) $(M4_OPTIONS) $(MACRO_FILE) $< > $@
--- a/www/macros.m4	Thu Oct 05 10:44:49 2006 +0000
+++ b/www/macros.m4	Thu Oct 05 11:20:30 2006 +0000
@@ -308,4 +308,10 @@
 m4_dnl
 m4_dnl
 m4_dnl
+m4_define(`seealso_body', `m4_ifelse(`$#', `0', , `$#', `1', ``<a href="$1.html">$1</a>'',
+                               `<a href="$1.html">`$1'</a>, seealso_body(m4_shift($@))')')
+m4_define(`seealso', `<div class="see_also">See also: seealso_body($@)</div>')
+m4_dnl
+m4_dnl
+m4_dnl
 m4_changequote([[[, ]]])
--- a/www/octave-forge.css	Thu Oct 05 10:44:49 2006 +0000
+++ b/www/octave-forge.css	Thu Oct 05 11:20:30 2006 +0000
@@ -188,3 +188,10 @@
   color: black;
   text-decoration: none;
 }
+
+div.see_also {
+  color: black;
+  background-color: #d3d7cf;
+  font-family: sans-serif;
+  font-weight: bold;
+}