documentation

Sphinx :ivar tag goes looking for cross-references

给你一囗甜甜゛ 提交于 2019-12-01 03:06:43
I want to document Python object attributes with Sphinx. I understand I should use :ivar varname: description :ivar type varname: description However I'm seeing a weird behaviour, that is Sphinx searches my project for the variable name and tries to create symlinks. E.g. this code: class A(object): """ :ivar x: some description """ def __init__(self, x): self.x = x class B(object): def x(self): return 1 class C(object): def x(self): return 2 will cause this error: module1.py:docstring of mylibrary.module1.A:None: WARNING: more than one target found for cross-reference u'x': mylibrary.module1.C

How to document my method in Java like Java docs?

丶灬走出姿态 提交于 2019-12-01 03:06:01
I want that when i mouse over a method i would be able to see my documentation of what the method does like when i put the mouse over Java's method I know that /** */ is how its done but: How do you explain what the Params Stands for? How do you create a new line, or make a word bold or italic? Peter Ilfrich If you're using Eclipse as IDE, you just need to create a comment with /** and press enter and it will generate your code for your Javadoc, including parameters, return values, etc. You just need to put in the descriptions. The same applies for class declarations (the Javadoc comment

Why is CPython not using `sphinx.autodoc` for the standard library? [closed]

吃可爱长大的小学妹 提交于 2019-12-01 02:51:21
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I am developing a python library and I am using sphinx.autodoc to generate the documentation as I think that this is a good way to don`t repeat yourself and to have documentation and code in agreement. In a comment to Emit reStructuredText from sphinx autodoc? I learned that

How to decorate Objective C methods with documentation?

烂漫一生 提交于 2019-12-01 02:48:23
问题 When I'm typing up a Cocoa object and calling a selector on that object, I sometimes can see 'documentation' or 'help' information about that method. For instance, as I type [NSArray alloc] , I see two help hints. One for NSArray , and one for alloc . Both of these appear in the popup autocomplete suggestions listbox as I type the code. How do I produce similar method/class decorated help hints which will appear when I type? I want to see my comments as I type my custom class name and custom

How to add class-specific alias without generic alias using Roxygen2?

断了今生、忘了曾经 提交于 2019-12-01 02:45:32
A simple example is that I have created an extension to show , which is a S4 base method. I don't want to cause a disambiguation fork by re-documenting show in my package, and I also want to consolidate the documentation of my extension to show in the documentation for the new class, myPkgSpClass , by adding an alias for show,myPkgSpClass-method . #' @export #' @aliases show,myPkgSpClass-method #' @rdname myPkgSpClass-class setMethod("show", "myPkgSpClass", function(object){ show(NA) }) The problem I'm having, is that this results in an serious warning during documentation-build by roxygen2,

Where is the documentation for Fragment.onCreateAnimator()? [closed]

末鹿安然 提交于 2019-12-01 02:23:01
The entire documentation for the Fragment.onCreateAnimator(int, boolean, int) method consists of the following text: "Called when a fragment loads an animation." That's it. No explanation about the parameters. What do the parameters mean? Even the source code doesn't reveal much. The onCreateAnimator method is odd. The prototype I've seen is this: public Animator onCreateAnimator(int transit, boolean enter, int nextAnim) int transit - transition type, as sandrstar said above boolean enter - true if 'entering,' false otherwise int nextAnim - The resource ID of the animation that is about to

Creating Documentation from VB Script Code [closed]

早过忘川 提交于 2019-12-01 01:18:20
We have a large framework created using VB Script, which has been created and then maintained for the past few years. This code was initially well documented and all the initial functions and variables and files had good headers in them. Later in maintainence, the code got obfuscated by the coders not keeping track of new and changed functionality and the final result now in my hands is a code which has around ~600 files and none of them have the proper description of the functions and variables in them :-( Could someone inform if they have created documents (on the fly types - dOxygen, etc.)

Doxygen and add a value of an attribute to the output documentation

倖福魔咒の 提交于 2019-12-01 01:00:40
问题 ServiceStack marks rest paths for web services using c# attributes. For example [RestService("/hello1")] [RestService("/hello2")] public class Hello I would like to make Doxygen include values of the RestService attribute in the doxygen output for the Hello class. I'm not concerned too much with pretty formattin if the full line with brackets is included in the output document. Any suggestions? A quick and dirty trick would be a preferable to writing a Doxygen extension ;) Cheers Tymek ===

How does Haskell deal with documentation?

风格不统一 提交于 2019-11-30 22:41:45
问题 How do I get online documentation in Haskell? Are there anything as elegant/handy as what Python does below? >>> help([].count) Help on built-in function count: count(...) L.count(value) -> integer -- return number of occurrences of value 回答1: Currently, there is no way to view the Haddock documentation within ghci, but there is a ticket for it. You can however get a small bit of info using the :info command, e.g. ghci> :i nub nub :: (Eq a) => [a] -> [a] -- Defined in Data.List so that you at

What is the best way to store software documentation? [closed]

半腔热情 提交于 2019-11-30 22:33:30
An obvious answer is "an internal wiki". What are the pros and cons of a wiki used for software documentation? Any other suggestions? What are you using for your software documentation? Loren Segal - Unfortunately we don't have support for any doc tool to compile information from the source code comments but I agree it would be the best way to store technical documentation. My question was about every kind of documentation tho - from sysadmin type to user documentation. That's a very open ended question, and depends on many factors. Generally speaking, if you use a language that has good