[MKDoc-commit] Sitemap tweaks

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Tue Aug 9 13:34:37 BST 2005


Log Message:
-----------
Sitemap tweaks

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/skin:
        public.css
        colours.css
    mkd/templates/dynamic_sitemap:
        en.html
        document.html

-------------- next part --------------
Index: colours.css
===================================================================
RCS file: /var/spool/cvs/mkd/skin/Attic/colours.css,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -Lskin/colours.css -Lskin/colours.css -u -r1.1.2.6 -r1.1.2.7
--- skin/colours.css
+++ skin/colours.css
@@ -83,6 +83,22 @@
   background: transparent;
 }
 
+/* dynamic sitemap expand and contract linsk styling */
+ul.sitemap {
+  color: #000;
+  background: #FFF;
+}
+ul.sitemap tt {
+  color: #FFF;
+  background; transparent;
+}
+ul.sitemap tt span.bullet {
+  color: #000;
+  background: #FFF;
+}
+
+
+
 /* This is for the bars on the poll results page */
 table td small.poll {
   background: red;
Index: public.css
===================================================================
RCS file: /var/spool/cvs/mkd/skin/Attic/public.css,v
retrieving revision 1.1.2.37
retrieving revision 1.1.2.38
diff -Lskin/public.css -Lskin/public.css -u -r1.1.2.37 -r1.1.2.38
--- skin/public.css
+++ skin/public.css
@@ -194,6 +194,14 @@
   text-decoration: none; 
 }
 
+/* dynamic sitemap expand and contract link styling */
+ul.sitemap {
+  list-style-type: none; 
+}
+ul.sitemap tt {
+  font-size: large;
+}
+
 /* This is for the bars on the poll results page */
 table td small.poll {
   padding-top: 0.5em;
@@ -249,3 +257,4 @@
   border-style: solid;
   font-size: smaller;
 }
+
Index: document.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/dynamic_sitemap/Attic/document.html,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -Ltemplates/dynamic_sitemap/document.html -Ltemplates/dynamic_sitemap/document.html -u -r1.1.2.2 -r1.1.2.3
--- templates/dynamic_sitemap/document.html
+++ templates/dynamic_sitemap/document.html
@@ -1,36 +1,40 @@
-<li xmlns:petal="http://purl.org/petal/1.0/">
-  <b petal:omit-tag="false:child/is_selected">  
-    <span
-      petal:condition="child/has_children"
-      petal:omit-tag="string:1"
-    >
-      <a 
-        href="#"
-        hreflang="en"
-        lang="en"
-        xml:lang="en"
-        petal:attributes="href string:${child/doc/Full_Path}.dynamic-sitemap.html; 
-                          hreflang child/doc/Lang; 
-                          lang child/doc/Lang;
-                          xml:lang child/doc/Lang"
-        petal:condition="false:child/is_selected"
-      >
-        [+]
-      </a>
-      <a 
-        href="#"
-        hreflang="en"
-        lang="en"
-        xml:lang="en"
-        petal:attributes="href string:${child/doc/Full_Path}../.dynamic-sitemap.html; 
-                          hreflang child/doc/Lang; 
-                          lang child/doc/Lang;
-                          xml:lang child/doc/Lang"
-        petal:condition="true:child/is_selected"
-      >
-        [&#8211;]
-      </a>
-    </span>
+<li 
+  xmlns:petal="http://purl.org/petal/1.0/"
+>
+  <tt 
+    class="expand"
+    petal:condition="false: child/is_selected;
+                     true:  child/has_children"
+  >[<a 
+      href="#"
+      hreflang="en"
+      lang="en"
+      xml:lang="en"
+      title="Expand sitemap for ${child/doc/Title}"
+      petal:attributes="href string:${child/doc/Full_Path}.dynamic-sitemap.html; 
+                        hreflang child/doc/Lang; 
+                        lang child/doc/Lang;
+                        xml:lang child/doc/Lang"
+    >+</a>]</tt>
+  <tt
+    class="contract"
+    petal:condition="true: child/is_selected;
+                     true: child/has_children"
+  >[<a 
+      href="#"
+      hreflang="en"
+      lang="en"
+      xml:lang="en"
+      title="Contract sitemap for ${child/doc/Title}"
+      petal:attributes="href string:${child/doc/Full_Path}../.dynamic-sitemap.html; 
+                        hreflang child/doc/Lang; 
+                        lang child/doc/Lang;
+                        xml:lang child/doc/Lang"
+    >&#8211;</a>]</tt>
+  <tt
+    petal:condition="false: child/has_children"
+  >[<span class="bullet">&#8226;</span>]</tt> 
+  <strong petal:omit-tag="false: child/is_selected">  
     <a 
       href="#"
       hreflang="en"
@@ -38,10 +42,11 @@
       xml:lang="en"
       petal:attributes="href child/doc/Full_Path; 
                         hreflang child/doc/Lang; 
+                        title child/doc/Description; 
                         lang child/doc/Lang;
                         xml:lang child/doc/Lang"
       petal:content="child/doc/Title"
-      petal:condition="true:child/accessible"
+      petal:condition="true: child/accessible"
     >
         Accessible Child Document Title
     </a>
@@ -49,12 +54,13 @@
       petal:attributes="lang child/doc/Lang;
                         xml:lang child/doc/Lang"
       petal:content="child/doc/Title"
-      petal:condition="false:child/accessible"
+      petal:condition="false: child/accessible"
     >
         Inaccessible Child Document Title
     </span>
-  </b>
+  </strong>
   <ul 
+    class="sitemap"
     petal:define="children child/children"
     petal:condition="children"
     petal:repeat="child children"
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/dynamic_sitemap/Attic/en.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -Ltemplates/dynamic_sitemap/en.html -Ltemplates/dynamic_sitemap/en.html -u -r1.1.2.1 -r1.1.2.2
--- templates/dynamic_sitemap/en.html
+++ templates/dynamic_sitemap/en.html
@@ -28,36 +28,36 @@
 <!--? public file header ?-->
 <?include file="/fragments/head_public/"?>
 
-<body 
-  lang="en"
-  xml:lang="en"
-  dir="ltr"
-  petal:attributes="lang lang; xml:lang lang; dir dir;"
-  petal:set="child root"
->
-
-<!--? navigation header ?-->
-<?include file="/fragments/header/"?>
-
-<div class="content">
-  <h1 
+  <body 
     lang="en"
     xml:lang="en"
     dir="ltr"
-    align="left"
-    petal:attributes="align align"
-    petal:define="child self/nodes"
+    petal:attributes="lang lang; xml:lang lang; dir dir;"
+    petal:set="child root"
   >
-    Sitemap
-  </h1>
 
-  <ul>
-     <?include file="/dynamic_sitemap/document.html"?>
-  </ul>
-
-</div>    
+<!--? navigation header ?-->
+<?include file="/fragments/header/"?>
 
-</body>
+  <div class="content">
+    <h1 
+      lang="en"
+      xml:lang="en"
+      dir="ltr"
+      align="left"
+      petal:attributes="align align"
+      petal:define="child self/nodes"
+    >
+      Sitemap
+    </h1>
+ 
+    <ul 
+      class="sitemap"
+    >
+       <?include file="/dynamic_sitemap/document.html"?>
+    </ul>
+  </div>    
 
+  </body>
 </html>
 


More information about the MKDoc-commit mailing list