documentation

Using JsDoc3 for large apps, How to group modules into sections/categories/submodules

萝らか妹 提交于 2019-12-21 10:51:50
问题 I am working on an app wich will become quite huge in time. I have decided to use JsDoc3 and DocStrap to document all modules. Modules are defined via require.js and in some places they are nested up to 3 or 4 levels deep. Untill now I understand that JsDoc documentation is split into four main sections: Modules, Classes, Tutorials, Globals. Each section has a header dropdown menu and a sidebar each of them listing all of the modules in liniar fashion, alphabetically. I was wondering if there

Using JsDoc3 for large apps, How to group modules into sections/categories/submodules

人走茶凉 提交于 2019-12-21 10:50:52
问题 I am working on an app wich will become quite huge in time. I have decided to use JsDoc3 and DocStrap to document all modules. Modules are defined via require.js and in some places they are nested up to 3 or 4 levels deep. Untill now I understand that JsDoc documentation is split into four main sections: Modules, Classes, Tutorials, Globals. Each section has a header dropdown menu and a sidebar each of them listing all of the modules in liniar fashion, alphabetically. I was wondering if there

How to specify in which order to load S4 methods when using roxygen2

荒凉一梦 提交于 2019-12-21 09:13:07
问题 I ran into following problem already multiple times. Say you have two classes, classA and classB described in the following files classA.R : #' the class classA #' #' This is a class A blabla #' \section{Slots}{\describe{\item{\code{A}}{a Character}}} #' @ name classA #' @rdname classA #' @exportClass classA setClass("classA",representation(A="character")) And classB.R #' the class classB #' #' This is a class B blabla #' \section{Slots}{\describe{\item{\code{B}}{an object of class A}}} #' @

PhpDoc for interface and class implementing interface - difference [closed]

走远了吗. 提交于 2019-12-21 08:07:52
问题 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 . The question is quite simple - how should I differ phpdoc for interface and for class implementing interface? Should/Can they be the same or maybe interface documentation should be as general as possible and class implementing this interface more specific? I include one method

Sphinx doesn't find Python packages when using autodoc

主宰稳场 提交于 2019-12-21 07:24:38
问题 I'm trying to create documentation for test Python project before doing it for the real project. My system : Win7 64 bit, python 2.7.5 64 bit. My project name is testDoc . It includes python pakage, named t , which includes 2 modules t1 and t2 and __init__.py . __init__.py contains: import t1 import t2 t1.py contains: ''' Created on 27 2013 @author: ''' class MyClass(object): ''' Hi ''' def __init__(self,selfparams): ''' Constructor ''' pass To create docs I run in the command line in testDoc

How to document makefile templates and include *.mk file interfaces?

廉价感情. 提交于 2019-12-21 05:46:11
问题 We have a number of makefile templates, that realize certain build actions by setting a few parameter makefile variables, and applying a makefile template via inclusion like GENERIC_PARAM1-y := paramA GENERIC_PARAM2-y := paramB include $(MAKE_TOOLS)/doaction.mk And files like doaction.mk contain make templates to generate standard rule definitions that are applied when just including the action make step. Now we want to document these interfaces for the *.mk snippets using Doxygen like ##

What is the markup format for documentation on the parameters of a block in Swift?

混江龙づ霸主 提交于 2019-12-21 05:02:18
问题 The parameters of a block in Swift shows up with a table for parameters of the block if you add markup for documentation but I can not figure out how to fill out this table. I have searched for it in the Xcode markup reference formatting but I couldn't find anything on it. Example: /** Foo - parameter completion: A block to execute */ func foo(completion: (Bool) -> Void) { // do something } This is what shows up if I option + click in Xcode on the function above to view documentation: Apple's

Replacing python docstrings [closed]

假如想象 提交于 2019-12-21 04:57:24
问题 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 have written a epytext to reST markup converter, and now I want to convert all the docstrings in my entire library from epytext to reST format. Is there a smart way to read the all the docstrings in a module and write back the replacements? ps: ast module perhaps? 回答1: Pyment

Exclude base library inclusions from Doxygen dependency graph?

守給你的承諾、 提交于 2019-12-21 04:29:30
问题 I'm documenting a c++ project for college with Doxygen, and everything is correct, but the dependency graph shows like this: I would like that the graph doesn't show inclusions such as list, map or string, and only includes custom Classes i created for the project, but i can't find anything online or on the docs. Does anyone know how to do this? 回答1: Since you want to exclude the stdlib container classes, you should probably add the std:: namespace to your doxyfile: EXCLUDE_SYMBOLS = std::*

Documenting function closures

柔情痞子 提交于 2019-12-21 04:11:13
问题 Suppose I have a function closure in my package, for example f = function(x) { x = x g = function(y) x <<- y h = function() x list(g = g, h = h) } l = f(5) l$g(10) l$h() What is the correct (in the official CRAN sense) way of documenting this function? In particular, I would like to use roxygen2 I would like to provide documentation for the functions g and h 回答1: One way would be to do something similar to ?family where you document g() and h() in the Value section of the .Rd file. Then