documentation

Documenting multiple Python packages on one Sphinx page

拜拜、爱过 提交于 2020-03-05 03:53:30
问题 I'm trying to create Sphinx documentation for several Python packages. I've been able to make a main page that lists the two packages I've made, like so: However, when I click through either of the packages, The modules are listed, but without any of their docstrings/documentation: When I make documentation for one of the folders ( data-analytics-bc3-api , for example), I can make a single page without issue, following the instructions here. However, when I try to make one page that covers

When documenting in Roxygen: How do I make an itemized list in @details?

删除回忆录丶 提交于 2020-02-26 10:49:09
问题 What is the appropriate syntax to add an itemized list to roxygen2, for instance, in the @details section? Can I create a latex list environment? It seems that line breaks are simply ignored, i.e. #' @details text describing parameter inputs in more detail #' #' parameter 1: stuff #' #' parameter 2: stuff thanks! 回答1: Here is a roxygen2 example following your problem formulation. ##' ##' @details text describing parameter inputs in more detail. ##' \itemize{ ##' \item{"parameter 1"}{Stuff} ##

Document structure of a value for arbitrary keys in an Object in JSDoc

旧城冷巷雨未停 提交于 2020-02-16 04:43:33
问题 I have a function factory : function factory(events) { for(const key in events) { const { before, after } = events[key] } } Where the argument events is typically: { only: { before(){} after(){} }, except: { before(){} after(){} }, } Where the keys only , except can be anything but the values are always (must be) of type {before, after} where both before , after are functions. How do I document this structure for events argument in my factory function using JSDoc? The only solution I can

Get “flat” member output for sphinx automodule

巧了我就是萌 提交于 2020-01-31 06:47:04
问题 I'm using the Sphinx autodoc extension to document a module, and I'd like to get a flat list of the module's members in the documentation output. I tried using the following: .. automodule:: modname :members: However, there are two problems with this: It includes the module's docstring, which I don't want here. The name of each entry is prefixed with "modname.", which is completely redundant (since this page is specifically for documenting this module) However, I haven't been able to find any

Use Sphinx to generate standalone html files

老子叫甜甜 提交于 2020-01-25 07:33:27
问题 I'm quite new to Sphinx and I'm trying to create the docs for my application. It would be nice to generate a "standalone" html file for each topic. I mean: Sphinx creates a useful navigation panel on the left, with some modules (toc, next topic, search, etc..). But this is placed in every html! I would like to add a contextual help inside my application: whenever the user set the focus on a (relevant) widget, the related html is shown in a box. Of course I don't want to show the navigation

Prevent section heading to subtitle transformation in reStructuredText

被刻印的时光 ゝ 提交于 2020-01-25 07:13:07
问题 In reStructuredText, a heading followed by a lower-level heading is read as a subtitle: Section 1 ========= Subtitle -------- However, what if I actually want a subsection heading to follow immediately after a section heading? According to the the docs, an empty comment "serves to terminate a preceding construct" , but this doesn't seem to apply here, as Section 1 ========= .. Section 2 --------- still gets turned into a heading for Section 1 , followed by a subtitle Section 2 by, for example

Prevent section heading to subtitle transformation in reStructuredText

社会主义新天地 提交于 2020-01-25 07:12:24
问题 In reStructuredText, a heading followed by a lower-level heading is read as a subtitle: Section 1 ========= Subtitle -------- However, what if I actually want a subsection heading to follow immediately after a section heading? According to the the docs, an empty comment "serves to terminate a preceding construct" , but this doesn't seem to apply here, as Section 1 ========= .. Section 2 --------- still gets turned into a heading for Section 1 , followed by a subtitle Section 2 by, for example

Prevent section heading to subtitle transformation in reStructuredText

空扰寡人 提交于 2020-01-25 07:11:40
问题 In reStructuredText, a heading followed by a lower-level heading is read as a subtitle: Section 1 ========= Subtitle -------- However, what if I actually want a subsection heading to follow immediately after a section heading? According to the the docs, an empty comment "serves to terminate a preceding construct" , but this doesn't seem to apply here, as Section 1 ========= .. Section 2 --------- still gets turned into a heading for Section 1 , followed by a subtitle Section 2 by, for example

Link of the JSTL 1.2 Tag reference documentation [closed]

喜欢而已 提交于 2020-01-24 13:58:30
问题 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 . In JavaEE 6 the JSTL version is 1.2. I am trying to find the link to the taglib documentation for this version. I have found the link for 1.1. However unable to find it for 1.2. I came to know that JSTL 1.2 is managed by java.net; but didn't find the documentation there. Also the Technical Documentation for

How do I document a constructor for a class using Python dataclasses?

南笙酒味 提交于 2020-01-24 02:09:13
问题 I have some existing Python 3.6 code that I'd like to move to Python 3.7 dataclasses. I have __init__ methods with nice docstring documentation, specifying the attributes the constructors take and their types. However, if I change these classes to use the new Python dataclasses in 3.7, the constructor is implicit. How do I provide constructor documentation in this case? I like the idea of dataclasses, but not if I have to forego clear documentation to use them. edited to clarify I'm using