Great, thanks for the hint. If I manage to produce something, I'll try to publish it as a reusable tool.<div><br></div><div>Igor<br><br><div class="gmail_quote">On Thu, Sep 1, 2011 at 2:06 PM, Michael Foord <span dir="ltr"><<a href="mailto:mfoord@python.org">mfoord@python.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000"><div><div></div><div class="h5">
On 01/09/2011 10:04, Igor Brejc wrote:
<blockquote type="cite">Hi,
<div><br>
</div>
<div>I plan to write a wrapper API in C# that will be used by
IronPython scripts. The API will adhere to Python's coding &
design style etc.</div>
<div><br>
</div>
<div>My question: what would be the best approach for generating
code documentation in HTML that would look & feel like it's
for native Python API? Sandcastle seems a bit too .NETish, is
there something that would resemble sphinx's generated
documentation?</div>
</blockquote>
<br></div></div>
You could use reflection to pull out the types / call signatures
from the assembly and use that to generate a restructured text
skeleton for pulling into sphinx.<br>
<br>
There's a script here that generates skeleton python files (just
containing the api) from .net assemblies. This script is used by the
Wing IDE for providing code completion for .NET, but it should be
possible to "repurpose" it:<br>
<br>
<a href="http://www.voidspace.org.uk/ironpython/wing-how-to.shtml#generating-pi-files" target="_blank">http://www.voidspace.org.uk/ironpython/wing-how-to.shtml#generating-pi-files</a><br>
<br>
All the best,<br>
<br>
Michael Foord<br>
<blockquote type="cite"><div class="im">
<div><br>
</div>
<div>Thanks for any hints,</div>
<div>Igor Brejc</div>
<br>
<fieldset></fieldset>
<br>
</div><pre>_______________________________________________
Ironpython-users mailing list
<a href="mailto:Ironpython-users@python.org" target="_blank">Ironpython-users@python.org</a>
<a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a>
</pre>
</blockquote><font color="#888888">
<br>
<br>
<pre cols="72">--
<a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a>
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing <a href="http://www.sqlite.org/different.html" target="_blank">http://www.sqlite.org/different.html</a>
</pre>
</font></div>
</blockquote></div><br></div>