documentation-generation

How do you write your package documentation? [closed]

余生长醉 提交于 2019-12-20 08:58:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I haven't quite figured out a sensible workflow for building packages and writing their documentation. I want as much of the process (and the documentation) as possible to be automatically generated. The obvious way to do this seems to be to use package.skeleton to create the basic package files, then

How to use valadoc?

我的梦境 提交于 2019-12-20 04:53:24
问题 I am currently writing a library in Vala. I have come to a point where I would like to generate some documentation from my sources. valadoc seems to be the right tool to do this, but there is not much information on how to use it, the manpage is very short. I tried to run it with valadoc -o doc src/*.{vala,vapi} which gives me these error messages: unixodbc.vala:21.7-21.9: error: The namespace name `Gee' could not be found unixodbc.vala:40.9-40.27: error: The type name `Map' could not be

How do I create documentation with Pydoc?

南楼画角 提交于 2019-12-18 10:02:30
问题 I'm trying to create a document out of my module. I used pydoc from the command-line in Windows 7 using Python 3.2.3: python "<path_to_pydoc_>\pydoc.py" -w myModule This led to my shell being filled with text, one line for each file in my module, saying: no Python documentation found for '<file_name>' It's as if Pydoc's trying to get documentation for my files, but I want to autocreate it. I couldn't find a good tutorial using Google. Does anyone have any tips on how to use Pydoc? If I try to

JSDoc: Return object structure

▼魔方 西西 提交于 2019-12-18 09:59:10
问题 How can I tell JSDoc about the structure of an object that is returned. I have found the @return {{field1: type, field2: type, ...}} description syntax and tried it: /** * Returns a coordinate from a given mouse or touch event * @param {TouchEvent|MouseEvent|jQuery.Event} e * A valid mouse or touch event or a jQuery event wrapping such an * event. * @param {string} [type="page"] * A string representing the type of location that should be * returned. Can be either "page", "client" or "screen".

JSDoc: Return object structure

会有一股神秘感。 提交于 2019-12-18 09:58:56
问题 How can I tell JSDoc about the structure of an object that is returned. I have found the @return {{field1: type, field2: type, ...}} description syntax and tried it: /** * Returns a coordinate from a given mouse or touch event * @param {TouchEvent|MouseEvent|jQuery.Event} e * A valid mouse or touch event or a jQuery event wrapping such an * event. * @param {string} [type="page"] * A string representing the type of location that should be * returned. Can be either "page", "client" or "screen".

Automatic PHP Documentation Generation? [closed]

点点圈 提交于 2019-12-17 17:28:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . For ActionScript 2, I've used NaturalDocs. However it has pretty poor support for PHP. I've looked so far at doxygen and phpDocumentor, but their output is pretty ugly in my opinion. Does anyone have any experience with automatic documentation generation for PHP? I'd prefer to be able to use javadoc-style tags,

Generating JSON from java file

China☆狼群 提交于 2019-12-13 20:50:38
问题 Is there a standard or existing way to generate 'something' from an uncompiled java class based on its contents? So basically something like this: @MakeJsonDocumentation public class ExistingClass{ private name = ""; public ExistingClass(String name){ this.name = name; } @JsonField public String getName(){ return this.name; } @JsonField public void setName(String name){ this.name = name; } @JsonMethod public void someMethod(String text){ System.out.println("someMethod " + text) } @JsonMethod

How to generate HTML for JSDoc

让人想犯罪 __ 提交于 2019-12-13 14:09:56
问题 I'd like to create an auto generating JSDoc documentation file for a framework I'm building but can't seem to find a way to output the documentation. Is it possible to output the doc to JSON or HTML? Or will I have to build my own JSDoc parser with RegExp? I've looked all over the web and can't find anything on the subject. Thank you. 回答1: A big thanks to Felix Kling for pointing me the official documentation: usejsdoc.com The documentation has been moved to https://jsdoc.app/ 来源: https:/

Retaining inline code inside references in Sphinx

风流意气都作罢 提交于 2019-12-13 11:51:55
问题 In Sphinx, if I have the following heading declaration: .. _somestuff: ``this is code``, this is not! ============================== It renders, like this: this is code , this is not! Which is good, but, if I use the reference, e.g: Have a look at :ref:`somestuff` It loses the code formatting and renders like: Have a look at this is code, this is not! instead of: Have a look at this is code, this is not! Is it possible to retain the code formatting in the reference? And how would I go about

Include client SDK usage sample in SwaggerUI

天大地大妈咪最大 提交于 2019-12-12 22:21:08
问题 I've been searching for a tool which could help me parse my JSON swagger file (or even YAML file) and generate code sample resources in my UI based on this example of API doc. I've already tried : codegen (So I do have the code samples in a github repo, but I don't know how to get it on my UI dynamically) slate, but i'm trying to go on with swagger Widdershins Does someone knows about a third-party-tool able to produce such a feature or did I miss something from codegen or swagger-UI ? Or