autodoc

Swagger-PHP for generating JSON file for Swagger-UI

落花浮王杯 提交于 2019-12-04 15:55:37
I am trying to use Swagger-PHP for generating JSON files , so that I can use it with Swagger-UI for auto documentation. I tried the link :- https://github.com/zircote/swagger-php Also I tried to work around with there documentation at http://zircote.com/swagger-php/installation.html But my hard luck , I am unable to implement it. I am able to install composer correctly. Also the bundle of Swagger-PHP is installed correctly. But the problem is that I am unable to use/understand the test examples provided by them. So if anyone has worked it around please help !! Thanks in advance !! You just put

autodoc a class that extends a mocked class

你说的曾经没有我的故事 提交于 2019-12-04 07:12:31
I'm trying to run autodoc over a class that extends an external class. I've used mock so that the import is accepted. For that I used what was described in this blog http://blog.rtwilson.com/how-to-make-your-sphinx-documentation-compile-with-readthedocs-when-youre-using-numpy-and-scipy/ import mock MOCK_MODULES = ['de', 'de.xyz', 'de.xyz.class_that_is_extended'] for mod_name in MOCK_MODULES: sys.modules[mod_name] = mock.Mock() The python file I try to document looks like this: from de.xyz import class_that_is_extended class extending_class (class_that_is_extended): ''' docstring ''' After

How do I exclude jars from a leiningen project?

假如想象 提交于 2019-12-04 01:24:25
问题 While using Leiningen, I got the following abrupt error: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant/util/FileUtils; (core.clj:1) I found the following answer at https://github.com/technomancy/leiningen/issues/194: if ant version 1.6.1 is included in a project, lein fails. Autodoc "0.7.1" includes ant version 1.6.1. a work around is to exclude ant.1.6.1 in the project.clj. <--- *1* But a better solution is

Including docstring in Sphinx Documentation

℡╲_俬逩灬. 提交于 2019-12-03 06:38:03
I'd like to include just the docstring of a specific function in my Sphinx documentation. However there seem to be no options to just display these details without associated class and function definitions using http://sphinx.pocoo.org/ext/autodoc.html I've tried creating a class as outlined in show *only* docstring in Sphinx documentation but I'm not sure how this fits in with the templating. I've also tried the autodoc-process-docstring event handler with no luck. So rather than my documentation displaying (as it is currently): class module.MyClass(param) This is the class doc string my

How do I document members in specific sections using Sphinx?

北慕城南 提交于 2019-12-01 14:38:15
I'm struggling to figure out how to place the documentation for specific members of my Python class in specific sections of my Sphinx documentation, ideally while auto-documenting the rest in another section. I have a Python class class MyClass(object): def funky(self, arg): """Some docs.""" ... defined in my/module.py which works as expected and I can document without issues using *************************** MyModule - :mod:`my.module` *************************** .. automodule:: my.module .. autoclass:: MyClass :members: :undoc-members: :show-inheritance: But when I try to get more control

How do I document members in specific sections using Sphinx?

ぃ、小莉子 提交于 2019-12-01 13:21:52
问题 I'm struggling to figure out how to place the documentation for specific members of my Python class in specific sections of my Sphinx documentation, ideally while auto-documenting the rest in another section. I have a Python class class MyClass(object): def funky(self, arg): """Some docs.""" ... defined in my/module.py which works as expected and I can document without issues using *************************** MyModule - :mod:`my.module` *************************** .. automodule:: my.module ..

How do I exclude jars from a leiningen project?

て烟熏妆下的殇ゞ 提交于 2019-12-01 05:13:29
While using Leiningen, I got the following abrupt error: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant/util/FileUtils; (core.clj:1) I found the following answer at https://github.com/technomancy/leiningen/issues/194 : if ant version 1.6.1 is included in a project, lein fails. Autodoc "0.7.1" includes ant version 1.6.1. a work around is to exclude ant.1.6.1 in the project.clj. <--- *1* But a better solution is changing the order of lein classpath. from bin/lein <--- *2* CLASSPATH="$CLASSPATH:$LEIN_LIBS:$LEIN_DIR

(Python-Sphinx) How to generate HTML Documentation?

笑着哭i 提交于 2019-11-30 19:55:51
问题 I'm working on a Python project using PyCharm and now I need to generate the corresponding API documentation. I'm documenting the code methods and classes using docstrings . I read about Sphinx and Doxygen, with Sphinx being the most recommended right now. I tried to configure Sphinx whitin PyCharm but I had no luck in getting it working. This is the project structure : and this was the I/O interaction with the command Sphinx Quickstart C:\Python\Python36\Scripts\sphinx-quickstart.exe Welcome

What's the proper way to document callbacks with jsdoc?

不打扰是莪最后的温柔 提交于 2019-11-29 22:38:58
I've spent quite a while scouring the internet looking for the best way to properly document callbacks with jsdoc, but unfortunately, I haven't found a great one yet. Here's my question: I'm writing a Node.js library for developers. This library provides multiple classes, functions, and methods that developers will be working with. In order to make my code clear and understandable, as well as to (hopefully) auto-generate some API documentation in the future, I've started using jsdoc in my code to self-document what's happening. Let's say I define a function like the following: function

How to document nested classes with Sphinx's autodoc?

限于喜欢 提交于 2019-11-29 12:50:13
Is there any way to document a nested class with Sphinx's autodoc plugin? In: class A: class B: """ class B's documentation. """ # ... I want to use autoclass or something similar in my .rst file to document A.B specifically. I tried: .. currentmodule:: package.module .. autoclass:: A.B and .. autoclass:: package.module.A.B without success: /path/to/file.rst:280: WARNING: autodoc: failed to import class 'B' from module 'package.module.A'; the following exception was raised: ... Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/sphinx/ext/autodoc.py", line 335, in import