Permalink
Browse files

Updated timestamp on resources and changed some RDFa code

  • Loading branch information...
1 parent 8e1e62e commit 5e03717ab39665a19afcb23700fc695dadef2708 @davglass davglass committed Oct 7, 2008
Showing with 11 additions and 8 deletions.
  1. +4 −1 bin/yuidoc_generate.py
  2. +7 −7 template/main.tmpl
View
5 bin/yuidoc_generate.py
@@ -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))
@@ -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
@@ -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 = ""
@@ -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()
View
14 template/main.tmpl
@@ -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">
@@ -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>
@@ -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>
@@ -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>

0 comments on commit 5e03717

Please sign in to comment.