documentation

How to add copyright notice to sphinx-generated latex documentation?

牧云@^-^@ 提交于 2019-12-12 17:31:33
问题 I have set the copyright configuration value and it correctly appears in the HTML output. However, it does not appear at all in the LaTeX output, and I can't find any option for LaTeX output that will make it appear. How can I automatically include the copyright notice in the LaTeX output, using sphinx? Of course, I could manually add it or write a small script to add it, but I expect it should be possible within the sphinx framework. Apparently, there is a request for improvement to make

How to document multiple return values using reStructuredText in Python 2?

ぐ巨炮叔叔 提交于 2019-12-12 16:37:03
问题 The Python docs say that "the markup used for the Python documentation is reStructuredText". My question is: How is a block comment supposed to be written to show multiple return values? def func_returning_one_value(): """Return just one value. :returns: some value :rtype: str """ def func_returning_three_values(): """Return three values. How do I note in reStructuredText that three values are returned? """ I've found a tutorial on Python documentation using reStructuredText, but it doesn't

Common Lisp: Getting the documentation string of a macro

馋奶兔 提交于 2019-12-12 15:20:14
问题 In SBCL, I can get the documentation string for a function with something like this: (documentation #'mapcar t) However, I don't understand how to get the documentation string for a macro. For example, given the macro: (defmacro with-lines-in-file ((line filename) &body body) "Runs body for each line in the file specified by filename." (let ((file (gensym))) `(with-open-file (,file ,filename) (do ((,line (read-line ,file nil) (read-line ,file nil))) ((null ,line) nil) ,@body)))) I'm not able

Python Sphinx anchor on arbitrary line

久未见 提交于 2019-12-12 12:22:11
问题 How can I set an anchor reference at an arbitrary line in ReST using Sphinx? To be more clear, here is an example: A title with an anchor ---------------------- some stuff this will create a heading A title with an anchor and add an extra on-hover ¶ character at the end of the line, which will be an anchor reference to that line/heading. Now in the following case... ``some arbitrary line`` this is actually a definition ...I want to have an anchor for some arbitrary line , the same way as for

What's the best way to generate a REST API's documentation? [closed]

夙愿已清 提交于 2019-12-12 11:20:04
问题 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'm looking for a nice way to generate documentation for a REST API. It doesn't need to actually connect with the code or anything, but it'd be awesome to be able to write the documentation as text files, point the tool at it, and generate some docs from it. Anyone out there

How to JsDoc multiple inheritance or mixins?

妖精的绣舞 提交于 2019-12-12 11:06:10
问题 How do I document mixins or multiple inheritance? /** * @class Parent */ function Parent() { } Parent.prototype.parentTest = 5; /** * @class Mixin */ function Mixin() { } Mixin.prototype.mixinTest = 5; /** * @class Child * @augments Parent * @mixin Mixin */ function Child() { } Is there anything official from JsDoc? If not then how would you prefer it to be written? 回答1: Multiple @augments are actually supported by the JsDoc Toolkit (I haven't tried, but their unit tests suggest so, search

XML Documentation Comments with Interfaces and implementing class(es) [closed]

天大地大妈咪最大 提交于 2019-12-12 10:38:19
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I am documenting an assembly using XML Documentation Comments, from which a chm file will be created using Sandcastle. My assembly contains various interfaces, each of which is implemented by one class (in my scenario these are WCF services). I have added documentation to the

Possible to view method / function docs in NetBeans?

六月ゝ 毕业季﹏ 提交于 2019-12-12 09:08:19
问题 NetBeans 6.5 with Python support provides the docstring documentation for a function/method in a popup when auto-completing, but is there another way to view docstrings? Perhaps achieved by mousing over a function/method name, or clicking somewhere? The best I can seem to do is "Go to source" in the right-click menu. 回答1: I received the following answer from Tor Norbye at Sun: Hold the ctrl key (or Cmd on Mac) and then hover. Also, Ctrl-Shift-Space (e.g. code completion + shift) will display

What are these tags @ivar @param and @type in python docstring?

℡╲_俬逩灬. 提交于 2019-12-12 08:19:59
问题 The ampoule project uses some tags in docstring, like the javadoc ones. For example from pool.py line 86: def start(self, ampChild=None): """ Starts the ProcessPool with a given child protocol. @param ampChild: a L{ampoule.child.AMPChild} subclass. @type ampChild: L{ampoule.child.AMPChild} subclass """ What are these tags, which tool uses it. 回答1: Markup for a documentation tool, probably epydoc. 回答2: Just for fun I'll note that the Python standard library is using Sphinx/reStructuredText,

Where is the JetBrains IntelliJ openapi documentation? [closed]

蹲街弑〆低调 提交于 2019-12-12 08:17:17
问题 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 2 years ago . I have searched Google and JetBrains website, but I cannot find docs for the com.intellij packages. Any IDEAs (:-))? 回答1: Thanks to a comment from @Sorin, the official documentation is available here: http://www.jetbrains.org/intellij/sdk/docs/index.html Here are some docs: Lots of links here: http://confluence