<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 08/13/2015 12:15 AM, Nicola Nye wrote:<br>
<blockquote
cite="mid:1439442908.2065313.355003409.083DA734@webmail.messagingengine.com"
type="cite">
<div>Delicious victory is mine!<br>
</div>
<div> </div>
<div>We now have a :cyrusman: sphinx option which generates urls
into our docs.cyrus.foundation tree, performing string munging
magic to match the generated url to our directory and filename
structure.<br>
</div>
<div> </div>
<div>Now, to look at updating all the references in our existing
docs so that it uses the new tag...</div>
<div> </div>
</blockquote>
<br>
Nicola,<br>
Doesn't work for me.<br>
<br>
I pulled your changes, and then ran the following script to replace
all :manpage: references with :cyrusman:<br>
<blockquote>
<pre>$ for file in `grep -lR ":manpage:" source/imap`; do sed -i $file -e 's/:manpage:/:cyrusman:/g'; done
</pre>
</blockquote>
Then I ran a build:<br>
<blockquote>
<pre>$ make man html
sphinx-build -b cyrman -d build/doctrees source build/man
Running Sphinx v1.2.2
Initializing cyrusman plugin
loading pickled environment... done
building [cyrman]: all manpages
updating environment: [extensions changed] 274 added, 18 changed, 0 removed
reading sources... [ 3%] imap/admin/access-control/rights-reference
<font color="#cc0000">Exception occurred</font>:
File "/home/nic/Checkouts/cyrus.foundation/cyrus-docs/source/exts/sphinxlocal/writers/cyrusman.py", line 49, in man_role
manpage_num = m.group(2)
AttributeError: 'NoneType' object has no attribute 'group'
<font color="#cc0000">The full traceback has been saved in /tmp/sphinx-err-yWaXf3.log, if you want to report the issue to the developers.</font>
</pre>
</blockquote>
Full traceback is attached.<br>
<br>
Cheers,<br>
-nic<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight llc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
219 N. Milwaukee St., Ste. 2A         v. 414.272.4477
Milwaukee, Wisconsin 53202                 f. 414.290.0335
</pre>
</body>
</html>