Skip to content

Commit

Permalink
Updated timestamp on resources and changed some RDFa code
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Oct 7, 2008
1 parent 8e1e62e commit 5e03717
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion bin/yuidoc_generate.py
Expand Up @@ -4,7 +4,7 @@
import const
from cStringIO import StringIO
from Cheetah.Template import Template
from sets import Set
from sets import Set

try:
logging.config.fileConfig(os.path.join(sys.path[0], const.LOGCONFIG))
Expand Down Expand Up @@ -273,6 +273,7 @@ def allprop_sort(x, y):
self.classnames.sort(soft_sort)

t = Template(file=os.path.join(self.templatepath, "main.tmpl"))
t.timestamp = time.time()

self.modulename = mname
self.moduletitle = mname
Expand Down Expand Up @@ -609,6 +610,7 @@ def allprop_sort(x, y):
# index
log.info("Generating index")
t = Template(file=os.path.join(self.templatepath, "main.tmpl"))
t.timestamp = time.time()
self.modulename = ""
self.moduletitle = ""
self.classname = ""
Expand All @@ -630,6 +632,7 @@ def allprop_sort(x, y):

# map all classes to the corresponding module for external loaders
t = Template(file=os.path.join(self.templatepath, "classmap.tmpl"))
t.timestamp = time.time()
pkgMap = {}
keys = self.data[const.CLASS_MAP].keys()
keys.sort()
Expand Down
14 changes: 7 additions & 7 deletions template/main.tmpl
Expand Up @@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>API: $modulename #if $classname# $classname #end if# #if $filename# $filename #end if# (YUI Library)</title>

<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
<link rel="stylesheet" type="text/css" href="assets/api.css" />
<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=$timestamp" />
<link rel="stylesheet" type="text/css" href="assets/api.css?stamp=$timestamp" />

<script type="text/javascript" src="assets/api-js"></script>
<script type="text/javascript" src="assets/ac-js"></script>
<script type="text/javascript" src="assets/api-js?stamp=$timestamp"></script>
<script type="text/javascript" src="assets/ac-js?stamp=$timestamp"></script>
</head>

<body id="yahoo-com">
Expand Down Expand Up @@ -144,7 +144,7 @@
#for $param in $constructor.params
<dd rel="yui:parameter">
<code><span property="yui:name">$param.name</span>
<span property="yui:type">&lt;$param.type&gt;</span>
&lt;<span property="yui:type">$param.type</span>&gt;
</code>
<span property="yui:description">$param.description</span>
</dd>
Expand Down Expand Up @@ -270,7 +270,7 @@
#for $param in $method.params
<dd rel="yui:parameter">
<code><span property="yui:name">$param.name</span>
<span property="yui:type">&lt;$param.type&gt;</span>
&lt;<span property="yui:type">$param.type</span>&gt;
</code>
<span property="yui:description">$param.description</span>
</dd>
Expand Down Expand Up @@ -380,7 +380,7 @@
#for $param in $event.params
<dd rel="yui:parameter">
<code><span property="yui:name">$param.name</span>
<span property="yui:type">&lt;$param.type&gt;</span>
&lt;<span property="yui:type">$param.type</span>&gt;
</code>
<span property="yui:description">$param.description</span>
</dd>
Expand Down

0 comments on commit 5e03717

Please sign in to comment.