Browse files

fixed filename variable to correct documentation links

  • Loading branch information...
1 parent 3fc0599 commit 320ce7e1ba399109feb91a5a959c7fe3b83f44b9 Cliff Wells committed May 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 doc2.py
  2. +1 −1 nginx-wiki.rules
View
2 doc2.py
@@ -268,7 +268,7 @@ def dd_newfile (self, t, newfile=False, debug=False, **_):
for filename in files:
if not fnmatch (filename, options.pattern):
continue
- processor.set_srcfile (filename)
+ processor.set_srcfile (os.path.join (root.replace (options.src_dir, ''), filename))
srcfile = os.path.join (root, filename)
tree = etree.parse (srcfile, parser)
logger.debug (" processing: {0}".format (os.path.basename (srcfile)))
View
2 nginx-wiki.rules
@@ -62,7 +62,7 @@ collapsible = "wikitable mw-collapsible mw-collapsed"
sanitize = True
collapse = True
_directive = elem.get ('name')
- _ref = '[http://nginx.org/en/docs/http/{filename}.html#{directive} {directive}]'.format (filename=filename, directive=_directive)
+ _ref = '[http://nginx.org/en/docs/{filename}.html#{directive} {directive}]'.format (filename=filename, directive=_directive)
suffix = "{cr}<tr><td>'''Reference:'''</td><td>{ref}</td></tr></table>{cr}".format (ref=_ref, cr=$cr)
newfile = True

0 comments on commit 320ce7e

Please sign in to comment.