~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/bazaar-vcs.org.kid

  • Committer: Aaron Bentley
  • Date: 2006-11-03 22:20:59 UTC
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: abentley@panoramicfeedback.com-20061103222059-274e84bc160b7fed
Add makefile for generating rest/kid docs, use .htm extension

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
2
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
3
<?python
4
 
   def local_link(item):
5
 
      if item.tag != '{http://www.w3.org/1999/xhtml}a':
6
 
         return False
7
 
      elif 'href' not in item.attrib:
8
 
         return False
9
 
      elif item.attrib['href'].startswith('http://'):
10
 
         return False 
11
 
      elif item.attrib['href'].startswith('/'):
12
 
         return False
13
 
      elif not item.attrib['href'].endswith('.htm'):
14
 
         return False
15
 
      
16
 
   def fixlink(attrib):
17
 
      attrib = dict(attrib)
18
 
      attrib['href'] = attrib['href'] + 'l'
19
 
      return attrib
20
 
 
21
4
   def update_attrib(attrib, **kwargs):
22
5
      attrib = dict(attrib)
23
6
      attrib.update(kwargs)
243
226
<a name="skipToContent" id="skipToContent"></a>
244
227
<div class="inside" >
245
228
<!--<img id="navProtection" width="1" height="1" border="0" src="/htdocs/bazaarNew/css/spacer.gif" alt="" style="height: 1px"/>-->
246
 
<span py:match="item.tag == 'local_link(item)'" 
247
 
py:strip="True" style='display:None'><a py:attrs="fixlink(item.attrib)">${item.text}${item[:]}</a>${item.tail}</span>
248
229
<a py:match="item.tag == '{http://www.w3.org/1999/xhtml}a' and 'href' not in item.attrib" py:content="item.text" py:attrs="update_attrib(item.attrib, style='color: black')"/>
249
230
<div dir="ltr" id="content" lang="en" xml:lang="en" py:content="body[:]"><span
250
231
class="anchor" id="top"></span> <span class="anchor" id="line-8"></span>