187b25ff6e1a

Update the docs to work with the new version of Markdoc.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 15 Dec 2009 20:42:27 -0500
parents 037b7d29d984
children 48b02f459ac0
branches/tags (none)
files docs/.templates/404.html docs/.templates/base.html docs/.templates/document.html docs/.templates/listing.html docs/.templates/macros/html docs/.templates/markdoc-default/404.html docs/.templates/markdoc-default/base.html docs/.templates/markdoc-default/document.html docs/.templates/markdoc-default/listing.html docs/markdoc.yaml docs/publish.sh docs/static/media/css/layout.css docs/wiki/documentation/index.mdown docs/wiki/documentation/keywords/index.mdown docs/wiki/documentation/usage/index.mdown docs/wiki/index.mdown docs/wiki/installation/index.mdown docs/wiki/quickstart/index.mdown

Changes

--- a/docs/.templates/404.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-{% extends 'markdoc-default/404.html' %}
--- a/docs/.templates/base.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-{% extends 'markdoc-default/base.html' %}
--- a/docs/.templates/document.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-{% extends 'markdoc-default/document.html' %}
--- a/docs/.templates/listing.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-{% extends 'markdoc-default/listing.html' %}
--- a/docs/.templates/macros/html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-{% macro cssimport(css_href, document_root="", media="screen, projection") -%}
-    <link rel="stylesheet" type="text/css" href="{{ document_root }}{{ css_href }}" {% if media %}media="{{ media }}" {% endif %}/>
-{%- endmacro %}
-
-{% macro css() -%}
-    <style type="text/css">
-        {{ caller() }}
-    </style>
-{%- endmacro %}
-
-{% macro jsimport(js_href, document_root="") -%}
-    <script type="application/javascript" src="{{ document_root }}{{ js_href }}"></script>
-{%- endmacro %}
-
-{% macro js() -%}
-    <script type="text/javascript">
-        {{ caller() }}
-    </script>
-{%- endmacro %}
--- a/docs/.templates/markdoc-default/404.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-{% extends 'base.html' %}
-
-{% block body %}
-<h1>Not Found: <code>{{ request.path_info|e }}</code></h1>
-<p>
-  We couldn&#8217;t find what you were looking for.
-  {% if not is_index %}You could try going <a href="{{ document_root }}/">home</a>.{% endif %}
-</p>
-{% endblock %}
--- a/docs/.templates/markdoc-default/base.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
-    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-  <head>
-    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
-    
-    <title>
-      {% if 'wiki-name' in config %}{{ config['wiki-name']|e }} ยป {% endif -%}
-      {% block title %}{{ title }}{% endblock %}
-    </title>
-    
-    {% import "macros/html" as html -%}
-    
-    {{ html.cssimport("/media/css/reset.css", document_root) }}
-    {{ html.cssimport("/media/css/layout.css", document_root) }}
-    {{ html.cssimport("/media/css/typography.css", document_root) }}
-    {{ html.cssimport("/media/css/pygments.css", document_root) }}
-  </head>
-  
-  <body>
-    {% if crumbs %}
-        <div id="breadcrumbs">
-          <p>
-              {% for name, href in crumbs %}
-                {% if href == None %}
-                  {{ name|e }}
-                {% else %}
-                  <a href="{{ document_root }}{{ href|e }}">{{ name|e }}</a>{% if loop.revindex0 %} &#187;{% endif %}
-                {% endif %}
-              {% endfor %}
-          </p>
-        </div> <!-- div#breadcrumbs -->
-      {% endif %}
-      
-    <div id="content">
-      
-      {% block body %}
-      {% endblock %}
-    
-    </div> <!-- div#content -->
-    <div id="footer">
-        <p>
-            {% if 'wiki-name' in config %}
-            {{ config['wiki-name']|e }} &mdash;
-            {% endif %}
-            Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
-        </p>
-    </div>
-    
-  </body>
-</html>
--- a/docs/.templates/markdoc-default/document.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-{% extends 'base.html' %}
-
-{% block body %}
-  {{ content }}
-{% endblock %}
--- a/docs/.templates/markdoc-default/listing.html	Wed Dec 02 02:13:03 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-{% extends 'base.html' %}
-
-{% block title %}ls /{{ directory|e }}{% endblock %}
-
-{% block body %}
-  <h1><code>ls /{{ directory|e }}</code></h1>
-
-  {% if sub_directories %}
-  <h2>Directories</h2>
-
-  <table id="subdirs">
-    {% for subdir in sub_directories %}
-      <tr>
-        <td class="name">
-          <a class="dirlink" href="{{ document_root }}{{ subdir.href|e }}">
-            {{ subdir.basename|e }}/
-          </a>
-        </td>
-      </tr>
-    {% endfor %}
-  </table>
-  {% endif %}
-
-  {% if pages %}
-  <h2>Pages</h2>
-
-  <table id="pages">
-    {% for page in pages %}
-      <tr>
-        <td class="size">{{ page.humansize }}</td>
-        <td class="name">
-          <a href="{{ document_root }}{{ page.href|e }}.html" title="{{ page.title|e }}">
-            {{ page.title|e }}
-          </a>
-        </td>
-      </tr>
-    {% endfor %}
-  </table>
-  {% endif %}
-
-  {% if files %}
-  <h2>Files</h2>
-
-  <table id="files">
-    {% for file in files %}
-      <tr>
-        <td class="size">{{ file.humansize }}</td>
-        <td class="name">
-          <a href="{{ document_root }}{{ file.href|e }}">
-            <code>{{ file.basename|e }}</code>
-          </a>
-        </td>
-      </tr>
-    {% endfor %}
-  </table>
-  {% endif %}
-{% endblock %}
--- a/docs/markdoc.yaml	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/markdoc.yaml	Tue Dec 15 20:42:27 2009 -0500
@@ -1,7 +1,6 @@
 wiki-name: "hg-prompt"
 
 
-template-dir: ".templates"
 static-dir: "static"
 
 hide-prefix: "."
@@ -10,7 +9,6 @@
 listing-filename: "list.html"
 
 use-default-static: false
-use-default-templates: false
 
 markdown:
   safe_mode: false
--- a/docs/publish.sh	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/publish.sh	Tue Dec 15 20:42:27 2009 -0500
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-markdoc build --document-root '/hg-prompt/'
+markdoc build
 rsync --delete -az .html/ ~/src/sjl.bitbucket.org/hg-prompt
 hg -R ~/src/sjl.bitbucket.org commit -Am 'hg-prompt: Update documentation.'
 hg -R ~/src/sjl.bitbucket.org push
--- a/docs/static/media/css/layout.css	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/static/media/css/layout.css	Tue Dec 15 20:42:27 2009 -0500
@@ -1,3 +1,4 @@
+/* @override http://localhost:8008/media/css/layout.css */
 body, html {
 	background-color: #226F89;
 	margin: 0;
@@ -6,22 +7,21 @@
 
 div#breadcrumbs {
 	border-bottom: 4px dashed #265565;
-	border-left: 1px solid #265565;
 	border-right: 1px solid #265565;
-	margin: 0 auto;
-	padding: 0.5em 1.5em;
+	padding: 0em 1.5em;
 	background-color: #fff;
 	width: 55em;
+	margin: 0em 0em 0em -1.5em;
 }
 div#breadcrumbs p {
-	margin-bottom: 0.2em;
+	margin: 0.5em auto;
 }
 div#content {
 	background-color: #fff;
 	height: 100%;
-	margin: 0 auto;
+	margin: 0 auto 3em;
 	overflow: hidden;
-	padding: 1em 1.5em 1.5em 1.5em;
+	padding: 0em 1.5em 0em 1.5em;
 	width: 55em;
 	border-left: 1px solid #265565;
 	border-right: 1px solid #265565;
@@ -47,20 +47,15 @@
 	color: #F14800;
 }
 
-div#footer {
+p#footer {
 	background-color: #fff;
-	border: 1px solid #265565;
 	border-top: 4px dashed #265565;
 	width: 55em;
-	padding: 1em 1.5em;
-	margin: 0 auto;
-	margin-bottom: 3em;
+	padding: 0.75em 1.5em;
 	text-align: center;
 	color: #666;
-}
-div#footer p {
-    margin: 0;
-    padding: 0;
+	margin-left: -1.5em;
+	margin-bottom: 0em;
 }
 
 ul {
--- a/docs/wiki/documentation/index.mdown	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/wiki/documentation/index.mdown	Tue Dec 15 20:42:27 2009 -0500
@@ -1,14 +1,14 @@
 Documentation
 =============
 
-##[Usage](/hg-prompt/documentation/usage/)##
+##[Usage](/documentation/usage/)##
 
 How the `hg prompt` command can be used.
 
-##[Keywords](/hg-prompt/documentation/keywords/)##
+##[Keywords](/documentation/keywords/)##
 
 Keywords available to use with the command.
 
-##[Sample Prompts](/hg-prompt/documentation/samples/)##
+##[Sample Prompts](/documentation/samples/)##
 
 Some sample prompts to get you started.
\ No newline at end of file
--- a/docs/wiki/documentation/keywords/index.mdown	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/wiki/documentation/keywords/index.mdown	Tue Dec 15 20:42:27 2009 -0500
@@ -3,7 +3,7 @@
 
 There a number of keywords available.  If you have any suggestions for more please [let me know][issues].
 
-[issues]: http://bitbucket.org/sjl/hg-prompt/issues
+[issues]: http://bitbucket.org/sjl/issues
 
 Some of the keywords support filters.  These filters can be combined when it makes sense.  If in doubt, try it!
 
--- a/docs/wiki/documentation/usage/index.mdown	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/wiki/documentation/usage/index.mdown	Tue Dec 15 20:42:27 2009 -0500
@@ -34,4 +34,4 @@
 
 Take a look at the [keywords][] documentation to see all the keywords `hg-prompt` supports.
 
-[keywords]: /hg-prompt/documentation/keywords/
\ No newline at end of file
+[keywords]: /documentation/keywords/
\ No newline at end of file
--- a/docs/wiki/index.mdown	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/wiki/index.mdown	Tue Dec 15 20:42:27 2009 -0500
@@ -15,10 +15,10 @@
 [Code][]
 --------
 
-[Installation]: /hg-prompt/installation/
-[Quick Start]: /hg-prompt/quickstart/
-[Full Documentation]: /hg-prompt/documentation/
-[Code]: http://bitbucket.org/sjl/hg-prompt/
+[Installation]: /installation/
+[Quick Start]: /quickstart/
+[Full Documentation]: /documentation/
+[Code]: http://bitbucket.org/sjl
 
 Screenshot
 ----------
--- a/docs/wiki/installation/index.mdown	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/wiki/installation/index.mdown	Tue Dec 15 20:42:27 2009 -0500
@@ -8,13 +8,13 @@
 First, clone the repository:
 
     :::console
-    $ hg clone http://bitbucket.org/sjl/hg-prompt/
+    $ hg clone http://bitbucket.org/sjl/
 
 Edit the `[extensions]` section in your `~/.hgrc` file:
 
     :::cfg
     [extensions]
-    prompt = (path to)/hg-prompt/prompt.py
+    prompt = (path to)/prompt.py
 
 Make sure everything is working:
 
@@ -24,4 +24,4 @@
 
 Take a look at the [Quick Start][] guide to learn how to put some useful information into your shell prompt.
 
-[Quick Start]: /hg-prompt/quickstart/
\ No newline at end of file
+[Quick Start]: /quickstart/
\ No newline at end of file
--- a/docs/wiki/quickstart/index.mdown	Wed Dec 02 02:13:03 2009 -0500
+++ b/docs/wiki/quickstart/index.mdown	Tue Dec 15 20:42:27 2009 -0500
@@ -5,7 +5,7 @@
 
 If you haven't already [installed][install] it, do that now.
 
-[install]: /hg-prompt/installation/
+[install]: /installation/
 
 A Simple (But Useful) Prompt
 ----------------------------
@@ -49,4 +49,4 @@
 
 From here you can take a look at the [full documentation][] to see all the interesting things `hg-prompt` can do.
 
-[full documentation]: /hg-prompt/documentation/
\ No newline at end of file
+[full documentation]: /documentation/
\ No newline at end of file