Thejesh GN avatar Thejesh GN committed b7425f0

fixing the template for bread crumbs

Comments (0)

Files changed (6)

 #Welcome to markwiki
 This is markwiki. This documentation itself is maintained in version control for tracking and maintenance. This is based on the project called [markdoc](http://markdoc.org/).
 
-You can install marcdoc by running **`pip install Markdoc`**. The actual content of this wiki is stored as markdown files in [content](https://bitbucket.org/thejeshgn/markwiki/src/tip/content) folder. You  need to build the wiki before viewing. Go to the **`docs`** repo folder and **`markdoc build`** which should generate html. Now you can browse the contents in your html folder using browser. If you want to share the docs with team. Run  **`markdoc serve`**. Read this [help](/help/how) documentation before you start editing.
+You can install marcdoc by running **`pip install Markdoc`**. The actual content of this wiki is stored as markdown files in [content](https://bitbucket.org/thejeshgn/markwiki/src/tip/content) folder. You  need to build the wiki before viewing. Go to the **`docs`** repo folder and **`markdoc build`** which should generate html. Now you can browse the contents in your html folder using browser. If you want to share the docs with team. Run  **`markdoc serve`**. Read this [help](/help/how.html) documentation before you start editing.
 
 
 
 # Building
 document-extensions: [.md, .mdown, .markdown, .wiki, .text]
-generate-listing: sometimes
-listing-filename: "_list.html"
+generate-listing: "sometimes"
+listing-filename: "index.html"
 use-default-static: false
 use-default-templates: true
 

static/media/css/style.css

     padding: 0 20px 20px 20px ;
   }
 
-  body #header h1 { font-size: 25px; }
+  body #header #wiki_title { font-size: 25px; }
 
   body #footer {
     border-top: 8px solid #f6f6f6;
 
 
 
-table,td
+body #content table,td
 {
   border               : 1px solid #CCC;
   border-collapse      : collapse;
 }
-table
+body #content table
 {
   border                :none;
   border                :1px solid #CCC;
 }
-thead th,
-tbody th
+body #content thead th,
+body #content tbody th
 {
   background            : #CCC;
   color                 : #666;  
   padding               : 5px 10px;
   border-left           : 1px solid #CCC;
 }
-tbody th
+body #content tbody th
 {
   background            : #fafafb;
   border-top            : 1px solid #CCC;
   text-align            : left;
   font-weight           : normal;
 }
-tbody tr td
+body #content tbody tr td
 {
   padding               : 5px 10px;
   color                 : #666;
 }
-tbody tr:hover
+body #content tbody tr:hover
 {
  background                 : #eee;  
 }
 
-tbody tr:hover td
+body #content tbody tr:hover td
 {
   color                 : #333;
 }
-tfoot td,
-tfoot th
+body #content tfoot td,
+body #content tfoot th
 {
   border-left           : none;
   border-top            : 1px solid #CCC;
  
   color                 : #666;
 }
-caption
+body #content caption
 {
   text-align            : left;
   font-size             : 120%;
   padding               : 10px 0;
   color                 : #666;
 }
-table a:link
+body #content table a:link
 {
   color                 : #666;
 }
-table a:visited
+body #content table a:visited
 {
   color                 : #666;
 }
-table a:hover
+body #content table a:hover
 {
   color                 : #003366;
   text-decoration       : none;
 }
-table a:active
+body #content table a:active
 {
   color                 : #003366;
-}
+}
+

templates/macros/crumbs

           {% if not href %}
             {{ name|e }}
           {% else %}
-            <a href="{{ make_relative(href)|e }}">{{ name|e }}</a>
+            <a href="{{ make_relative(href)|e }}{{ config['listing-filename']|e }}">{{ name|e }}</a>
           {% endif %}
         </li>
       {% endfor %}

templates/markdoc-default/base.html

   <body {% block body_attrs %}{% endblock %}>
     {% block body %}
       <div id="header">
-          <h1>{% if 'wiki-name' in config %}{{ config['wiki-name']|e }}{% endif %}</h1>
+          <span id="wiki_title">{% if 'wiki-name' in config %}{{ config['wiki-name']|e }}{% endif %}</span>
           <hr class="clear" />
       </div>      
       {% block body_header %}
       
       {% block body_footer %}
       <div id="footer">
-        <table style="border: 1px solid #fff">
+        <table>
           <tr>
           <td style="border: 1px solid #fff">{% if 'wiki-footer-logo' in config %}  
                  <a href="{{ config['wiki-footer-logo-url']|e }}"><img height="30px" src="{{  make_relative(config['wiki-footer-logo'])  }}"/></a>

templates/markdoc-default/listing.html

       <tr>
         <td class="size">{{ page.humansize }}</td>
         <td class="name">
-          <a href="{{ make_relative(page.href)|e }}" title="{{ page.slug|e }}">
-            {{ page.slug|e }}
+          <a href="{{ make_relative(page.href)|e }}.html" title="{{ page.title|e }}">
+            {{ page.title|e }}
           </a>
         </td>
       </tr>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.