doc.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: doc</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>doc</strong></big></big></font></td
  8. ><td align=right valign=bottom
  9. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/hollis/Desktop/nakedmud/lib/pymodules/doc.py">/Users/hollis/Desktop/nakedmud/lib/pymodules/doc.py</a></font></td></tr></table>
  10. <p><tt>doc.py<br>
  11. &nbsp;<br>
  12. This&nbsp;module&nbsp;allows&nbsp;documentation&nbsp;for&nbsp;Python&nbsp;classes&nbsp;and&nbsp;modules&nbsp;to&nbsp;be&nbsp;viewed<br>
  13. in-game&nbsp;via&nbsp;the&nbsp;'doc'&nbsp;command.</tt></p>
  14. <p>
  15. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  16. <tr bgcolor="#aa55cc">
  17. <td colspan=3 valign=bottom>&nbsp;<br>
  18. <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  19. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  20. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="display.html">display</a><br>
  21. </td><td width="25%" valign=top><a href="mudsys.html">mudsys</a><br>
  22. </td><td width="25%" valign=top><a href="os.html">os</a><br>
  23. </td><td width="25%" valign=top><a href="pydoc.html">pydoc</a><br>
  24. </td></tr></table></td></tr></table><p>
  25. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  26. <tr bgcolor="#eeaa77">
  27. <td colspan=3 valign=bottom>&nbsp;<br>
  28. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  29. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  30. <td width="100%"><dl><dt><a name="-cmd_doc"><strong>cmd_doc</strong></a>(ch, cmd, arg)</dt><dd><tt>Return&nbsp;Python&nbsp;documentation&nbsp;for&nbsp;the&nbsp;specified&nbsp;module,&nbsp;class,&nbsp;function,<br>
  31. etc...&nbsp;for&nbsp;example:<br>
  32. &nbsp;<br>
  33. &gt;&nbsp;doc&nbsp;char.Char<br>
  34. &nbsp;<br>
  35. Will&nbsp;return&nbsp;all&nbsp;available&nbsp;documentation&nbsp;for&nbsp;the&nbsp;Char&nbsp;class.</tt></dd></dl>
  36. <dl><dt><a name="-cmd_htmldoc"><strong>cmd_htmldoc</strong></a>(ch, cmd, arg)</dt><dd><tt>Creates&nbsp;html&nbsp;documentation&nbsp;for&nbsp;all&nbsp;registered&nbsp;modules.&nbsp;html&nbsp;files&nbsp;will<br>
  37. be&nbsp;saved&nbsp;to&nbsp;html/pydocs/</tt></dd></dl>
  38. <dl><dt><a name="-register_module_doc"><strong>register_module_doc</strong></a>(modname, package<font color="#909090">=None</font>, root<font color="#909090">='pymodules'</font>)</dt><dd><tt>Add&nbsp;a&nbsp;new&nbsp;module&nbsp;name&nbsp;to&nbsp;suggested_reading.&nbsp;If&nbsp;modname&nbsp;is&nbsp;a&nbsp;package,<br>
  39. recursively&nbsp;add&nbsp;its&nbsp;packages&nbsp;as&nbsp;well</tt></dd></dl>
  40. </td></tr></table><p>
  41. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  42. <tr bgcolor="#55aa55">
  43. <td colspan=3 valign=bottom>&nbsp;<br>
  44. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  45. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  46. <td width="100%"><strong>HTML_DOC_DIR</strong> = '../html/pydocs'<br>
  47. <strong>builtins</strong> = ['char', 'room', 'obj', 'exit', 'account', 'mudsock', 'mud', 'mudsys', 'hooks', 'event', 'auxiliary', 'storage', 'olc']<br>
  48. <strong>fname</strong> = 'utils.pyc'<br>
  49. <strong>mod</strong> = 'olc'<br>
  50. <strong>modname</strong> = 'utils'<br>
  51. <strong>shortcuts</strong> = {'ch': 'char', 'sock': 'mudsock'}<br>
  52. <strong>suggested_reading</strong> = ['char', 'room', 'obj', 'exit', 'account', 'mudsock', 'mud', 'mudsys', 'hooks', 'event', 'auxiliary', 'storage', 'olc', 'account_handler', 'char_gen', 'cmd_admin', 'cmd_comm', 'cmd_inform', 'cmd_manip', 'cmd_misc', ...]</td></tr></table>
  53. </body></html>