documentation

How to automate documentation of a REST API (Jersey Implementation) [closed]

最后都变了- 提交于 2019-11-29 20:33:13
I have written a pretty extensive REST API using Java Jersey (and JAXB). I have also written the documentation using a Wiki, but its been a totally manual process, which is very error-prone, especially when we need to make modifications, people tend to forget to update the wiki. From looking around, most other REST API's are also manually creating their documentation. But I'm wondering if theres maybe a good solution to this. The kind of things which need to be documented for each endpoint are: Service Name Category URI Parameter Parameter Types Response Types Response Type Schema (XSD) Sample

Generating Javascript documentation [closed]

谁说胖子不能爱 提交于 2019-11-29 20:26:02
I'm looking for a way to generate documentation automatically from my Javascript project . Anyone know how can I do this? As far as I know, there're some tools like JSDoc but I want to know your opinion, your best choice and why. Thanks! EDIT: just to be clear, I need something like JavaDOC or PHPDocumentor but to use with my Javascript source code. Raynos There are tools like Natural Docs to do this. I've personally used it in the past and this works fine with javascript. There are also tools like docco to document source code. In general auto generated documentation tends to be too

Namespace documentation on a .Net project (Sandcastle)?

雨燕双飞 提交于 2019-11-29 20:25:03
I started using Sandcastle some time ago to generate a Documentation Website for one of our projects. It's working quite well but we've always only written documentation for classes, methods, properties (...) in our project and had completely separate documentation for the overall project and project parts/modules/namespaces. It would be nice if I could merge that documentation together and add respective documentation to the generated helper files but I can't figure out how to do it. Just adding comments to the namespace declaration doesn't seem to work (C#): /// <summary> /// My short

Documenting Scala 2.10 macros [closed]

落爺英雄遲暮 提交于 2019-11-29 20:07:00
I'll start with an example. Here's an equivalent of List.fill for tuples as a macro in Scala 2.10: import scala.language.experimental.macros import scala.reflect.macros.Context object TupleExample { def fill[A](arity: Int)(a: A): Product = macro fill_impl[A] def fill_impl[A](c: Context)(arity: c.Expr[Int])(a: c.Expr[A]) = { import c.universe._ arity.tree match { case Literal(Constant(n: Int)) if n < 23 => c.Expr( Apply( Select(Ident("Tuple" + n.toString), "apply"), List.fill(n)(a.tree) ) ) case _ => c.abort( c.enclosingPosition, "Desired arity must be a compile-time constant less than 23!" ) }

Is there something like the official C documentation? [closed]

两盒软妹~` 提交于 2019-11-29 19:51:27
I'm looking for the documentation of all the syntax and built-in functions in C, but I can't find any site online which seems like an ultimate official source of standard C knowledge . Apart from the famous book by Kernighan and Ritchie , isn't there any online C specification? Maybe there is, and I don't know how to find it. Or maybe the problem is that I don't exactly know what I'm looking for. You can obtain a PDF copy of the C99 standard (ISO/IEC 9899:1999) from ANSI (and other fine standards organizations) for your private use for a modest fee - I believe it was 18 USD when I bought mine.

How do I create documentation with Pydoc?

无人久伴 提交于 2019-11-29 19:51:16
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 create documentation from one file using python ... -w myModule\myFile.py it says wrote myFile.html ,

XCode 8.2.1 not showing documentation description on autocomplete

亡梦爱人 提交于 2019-11-29 19:25:07
问题 I'm having problems adding documentation to my code in XCode 8.2.1. Here's my code: /// Test documentation method /// /// - Parameter string: The input string /// - Returns: The output bool func testMethod(string:String) -> Bool { if string == "YES" { return true } return false } The documentation shows as expected in the quick help window but the description doesn't show in the code autocomplete window. Is there a way to get the description to show in the autocomplete box as in the image

How to document a method with parameter(s)?

落爺英雄遲暮 提交于 2019-11-29 19:23:44
How to document methods with parameters using Python's documentation strings? EDIT: PEP 257 gives this example: def complex(real=0.0, imag=0.0): """Form a complex number. Keyword arguments: real -- the real part (default 0.0) imag -- the imaginary part (default 0.0) """ if imag == 0.0 and real == 0.0: return complex_zero ... Is this the convention used by most Python developers ? Keyword arguments: <parameter name> -- Definition (default value if any) I was expecting something a little bit more formal such as def complex(real=0.0, imag=0.0): """Form a complex number. @param: real The real part

Offline documentation for various programming languages? [closed]

南楼画角 提交于 2019-11-29 18:45:58
I recently found this: http://php.net/get/php_manual_en.chm/from/a/mirror . It's a .chm file that contains all the documentation for PHP which you can normally find on their site. Handy for offline use. I'm wondering, does anybody know of similar things for other languages. Complete offline documentation that you can use if you don't have wireless for a while. For C#, Visual Studio gives you the option to download and install the entire online documentation as a part of the VS2008 install, so if you have Visual Studio 2008, then you have the C# offline documentation. EDIT: if you're gonna say

How do the Mogenerator parameters work, which can I send via Xcode? [closed]

风流意气都作罢 提交于 2019-11-29 18:35:08
The help for Mogenerator is very minimal. What do all the parameters do? Parameters that work both via the command line utility and Xcode: --base-class : The name af the base class which the "private class" (e.g. _MyObject.h ) will inherit from. This will also add an import in the form of #import "MyManagedObject.h" to the same .h file. Tip: if the class you want to inherit from is located in a library, the default import statement won't work. As a workaround, you could have an extra level of inheritance for each project you create and have that class inherit from the library on (e.g. set the