From 513b204d80ccfe7f327fcb9876e1e0d0635cac27 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Fri, 16 May 2014 17:40:03 +0300 Subject: [PATCH] first cut at reducing the boilerplate in api doc entries: Prototype, Stack, and Summary are pretty self-evident; Example and See also are still left as headings --- website/buildsite.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/buildsite.py b/website/buildsite.py index 38f206b6..b51af558 100644 --- a/website/buildsite.py +++ b/website/buildsite.py @@ -223,7 +223,7 @@ def processApiDoc(parts, funcname, testrefs, used_tags): if parts.has_key('proto'): p = parts['proto'] - res.append('

Prototype

') + #res.append('

Prototype

') res.append('
')
 		for i in p:
 			res.append(htmlEscape(i))
@@ -234,20 +234,20 @@ def processApiDoc(parts, funcname, testrefs, used_tags):
 
 	if parts.has_key('stack'):
 		p = parts['stack']
-		res.append('

Stack

') + #res.append('

Stack

') for line in p: res.append('
' + \
 			           '%s' % htmlEscape(line) + \
 			           '
') res.append('') else: - res.append('

Stack

') - res.append('

No effect.

') + #res.append('

Stack

') + res.append('

(No effect on value stack.)

') res.append('') if parts.has_key('summary'): p = parts['summary'] - res.append('

Summary

') + #res.append('

Summary

') # If text contains a '

', assume it is raw HTML; otherwise # assume it is a single paragraph (with no markup) and generate