[MKDoc-dev] [BUG] 1.6 & 1.8 [FIXED] "magic" hyperlinking should
ignore hidden child documents
Bruno Postle
bruno at webarchitects.co.uk
Tue Sep 28 15:53:02 BST 2004
MKDoc has a feature where internal links between documents are
"magically" created if the title of one document matches some text
in another (currently only child documents are linked this way
though it would be easy to extend it to siblings).
Both MKDoc-1.6 and 1.8 have a bug where even hidden documents are
linked-to, this patch fixes it (added to CVS). I've also taken the
opportunity to add a class to the hyperlink so it can be styled via
CSS.
--
Bruno
-------------- next part --------------
Index: flo/Editor.pm
===================================================================
RCS file: /var/spool/cvs/mkd/flo/Editor.pm,v
retrieving revision 1.12.2.38
diff -u -r1.12.2.38 Editor.pm
--- flo/Editor.pm 16 Sep 2004 09:55:44 -0000 1.12.2.38
+++ flo/Editor.pm 28 Sep 2004 14:38:55 -0000
@@ -184,9 +184,10 @@
}
# plus we want to hyperlink all the children
- foreach my $child ($document->children)
+ foreach my $child ($document->children_showable)
{
push @links, {
+ class => "mkdoc-name-". $child->name,
href => $child->uri,
desc => $child->description,
expr => $child->title,
More information about the MKDoc-dev
mailing list