You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2002/01/24 17:30:43 UTC
cvs commit: modperl-docs/tmpl/custom/html download index_body index_toc menu_top_level navbar_global page_body
stas 02/01/24 08:30:43
Modified: tmpl/custom/html index_body index_toc menu_top_level
navbar_global page_body
Added: tmpl/custom/html download
Log:
- introduce .stitle attribute for the menu and breadcrumb
- add the PDF and SRC download widget
Revision Changes Path
1.3 +2 -0 modperl-docs/tmpl/custom/html/index_body
Index: index_body
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/index_body,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- index_body 18 Jan 2002 02:23:09 -0000 1.2
+++ index_body 24 Jan 2002 16:30:42 -0000 1.3
@@ -16,6 +16,8 @@
"<p>${doc.meta.abstract}</p>";
END;
+ INCLUDE download;
+
PROCESS index_toc toc=doc.toc;
IF doc.body.bot;
1.4 +1 -1 modperl-docs/tmpl/custom/html/index_toc
Index: index_toc
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/index_toc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- index_toc 15 Jan 2002 15:39:27 -0000 1.3
+++ index_toc 24 Jan 2002 16:30:42 -0000 1.4
@@ -1,6 +1,6 @@
[% #
# expected args:
- # toc - an array with keys: link, title, abstract, subs
+ # toc - an array with keys: link, stitle, title, abstract, subs
# (subs is optional and includes a similar array)
%]
1.3 +1 -1 modperl-docs/tmpl/custom/html/menu_top_level
Index: menu_top_level
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/menu_top_level,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- menu_top_level 15 Jan 2002 13:26:25 -0000 1.2
+++ menu_top_level 24 Jan 2002 16:30:42 -0000 1.3
@@ -32,7 +32,7 @@
WHILE p;
count = count + 1;
link = INCLUDE link prefix=prefix link=p.meta.link;
- buttons.push({link => link, text => p.meta.title});
+ buttons.push({link => link, text => p.meta.stitle});
IF p.id == current.id;
selected = count;
END;
1.2 +2 -2 modperl-docs/tmpl/custom/html/navbar_global
Index: navbar_global
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/navbar_global,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- navbar_global 5 Jan 2002 19:29:53 -0000 1.1
+++ navbar_global 24 Jan 2002 16:30:42 -0000 1.2
@@ -26,13 +26,13 @@
END;
nav_not_empty = 1;
link = path.join("/");
- sects.push({link => "$link/index.html", text => p.index_node.title});
+ sects.push({link => "$link/index.html", text => p.index_node.stitle});
END;
# a page has index as its parent, so we push it here
IF rel_doc_root.defined;
nav_not_empty = 1;
sects.push({link => "$rel_doc_root/index.html",
- text => nav.index_node.title});
+ text => nav.index_node.stitle});
END;
-%]
[% IF nav_not_empty == 1 %]
1.5 +2 -1 modperl-docs/tmpl/custom/html/page_body
Index: page_body
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/page_body,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- page_body 18 Jan 2002 02:23:09 -0000 1.4
+++ page_body 24 Jan 2002 16:30:42 -0000 1.5
@@ -16,9 +16,10 @@
INCLUDE page_toc toc=doc.toc;
- menu="<a href='#top'><img src='${doc.dir.abs_doc_root}/images/top.gif' width=54 heigth=21 border='0' alt='TOP'></a>";
+ INCLUDE download;
# render the content
+ menu="<a href='#top'><img src='${doc.dir.abs_doc_root}/images/top.gif' width=54 heigth=21 border='0' alt='TOP'></a>";
FOREACH sec = doc.body;
sec;
menu;
1.1 modperl-docs/tmpl/custom/html/download
Index: download
===================================================================
[%
# link to the pdf, source and other variants of the doc
# pdf block
IF doc.pdf_doc;
INCLUDE pdf_doc;
END;
# pdf block
IF doc.src_doc;
INCLUDE src_doc;
END;
-%]
[% BLOCK pdf_doc %]
<a href="[% doc.pdf_doc.link -%]">[PDF]</a> ([% doc.pdf_doc.size %])
[% END %]
[% BLOCK src_doc %]
<a href="[% doc.src_doc.link -%]">[SRC]</a> ([% doc.src_doc.size %])
[% END %]
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org