documentation

Referring to javascript instance methods with a pound/hash sign

和自甴很熟 提交于 2019-11-28 09:57:29
This question is similar to Why are methods in Ruby documentation preceded by a hash sign? I understand why in Ruby instance methods are proceeded with a pound sign, helping to differentiate talking about SomeClass#someMethod from SomeObject.someMethod and allowing rdoc to work. And I understand that the authors of PrototypeJS admire Ruby (with good reason) and so they use the hash mark convention in their documentation . My question is: is this a standard practice amongst JavaScript developers or is it just Prototype developers who do this? Asked another way, is it proper for me to refer to

Using source subdirectories within R packages with roxygen2

ぃ、小莉子 提交于 2019-11-28 09:13:17
I would like to use a directory structure within the R folder for the source code of a package. For example, within my R folder I have an algos folder with functions I want to export and document. However roxygen2 by default does not seem to go through the subfolders of the R folder. I tried to use the @include keyword as follows for a file at `R/algos/algo1.r' #' @include algos/algo1.r but without success. Is there a simple way to use subfolder for the R source code? Writing R Extensions has this to say (in Section 1.1.5 ) about subdirectories under the R directory: The R and man

Sphinx and argparse - autodocumenting command line scripts?

…衆ロ難τιáo~ 提交于 2019-11-28 08:57:45
I'm building a Python package, and using Sphinx to create the docs. Aside from my package code, I also include a lot of command line Python scripts, which use argparse. I was wondering if there is a way to get Sphinx to autodocument these scripts? The end goal would be a pretty-printed list of scripts, with the associated help print, arguments and options. And to be clear, I'm looking for a pre-existing way to do this, not a way to implement this myself. This isn't as specific of a question as I usually ask on S.O., if there is a more appropriate S.E. site to post this question, please let me

Render output from markdown file inside .rst file

旧时模样 提交于 2019-11-28 07:44:42
问题 I am using Sphinx for documenting a Python project and would like to have content from an existing .md file display inside of a .rst file. ( I have already set up my conf.py to allow for markdown). For example, I have a file called tutorial.md . I also have a .rst file as follows: ml == w2v ^^^ .. automodule:: package.ml.w2v :members: I would like be able to include a link to tutorial.md as follows, such that the content of tutorial.md will display in the file upon rendering. This can be

Is there a more comprehensive JavaScript function reference than w3schools? [closed]

依然范特西╮ 提交于 2019-11-28 07:36:25
I've been searching around online for a while now and I can't seem to find any particularly impressive function references for JavaScript. Of course, QuirksMode and w3schools have good information, but they're not as complete for JavaScript as the flash component reference and jQuery API are for flash and jQuery. So does anyone know of a good JavaScript reference with some or all of the following qualities? Documentation on most functions/objects/packages/prototypes Browser compatibility examples of usage clean layout community comments/examples library APIs Mozilla has very complete docs:

Conditional output in Sphinx Documentation

有些话、适合烂在心里 提交于 2019-11-28 07:27:37
I'm writing some documentation with Sphinx and I'd like to print out a certain block of text only for HTML documentation, not for LaTeX documentation. Something tells me I should be able to do this with sphinx.ext.ifconfig but I can't figure out how. Does anyone know how to do this? No extension is required. Just use the only directive . It works like this: .. only:: latex The stuff in here only appears in the latex output. .. only:: html The stuff in this block only appears in the HTML output. It's often useful to use this directive with it: .. raw:: html It's good for embedding stuff, like

Don't show declarator blocks with p6doc

时光总嘲笑我的痴心妄想 提交于 2019-11-28 07:22:06
问题 I've written a small example file to learn more about Perl 6 POD, and I'm using p6doc to render a small manual page from the POD document. However, p6doc also tries to parse the declarator blocks outside the POD document. This doesn't look particularly great in the output. Is there a way to ignore the declarator blocks when using p6doc ? The code sample I'm using is: #! /usr/bin/env perl6 use v6.c; #| Greet people on the command line. sub MAIN ( #| A name to greet. $names, #| Optional.

Python Sphinx referencing long names

与世无争的帅哥 提交于 2019-11-28 07:20:48
问题 I'm working on documentation for my Python module (using Sphinx and reST), and I'm finding that when cross-referencing other Python objects (modules, classes, functions, etc) the full object name ends up being incredibly long. Often it is longer than 80 characters, which I would like to avoid at all costs. Here is an example: def exampleFunction(): '''Here is an example docstring referencing another :class:`module1.module2.module3.module4.module5.ReallyLongExampleClassName` ''' The issue is

How to write C++ comments that show up in Intellisense?

旧城冷巷雨未停 提交于 2019-11-28 07:08:15
I'm programming in C++ using Visual Studio 2010 Ultimate. I want to document some functions and I want the documentation to show up in Intellisense. According to MSDN , I just need to put the comment before the declaration or after it on the same line. So I tried this: // This is a test. void foo(); void bar() { foo(); } When moving my mouse over foo() , the comment doesn't appear in the tooltip. I also tried: /// <summary></summary> tags Building with /doc (by setting the "Generate XML documentation files" option in the project settings) I've had no luck so far. Does anyone know a way to make

Where can I find good, solid documentation for the C++0x synchronization primitives? [closed]

半世苍凉 提交于 2019-11-28 06:54:53
I've seen articles on ::std::thread and ::std::forward and such, but I have seen no good articles on ::std::atomic . There is, of course, the standards proposal paper , but I haven't seen any good documentation for someone who just wanted to use the facility. Is there any? Where can I find it? Fred Nurk The just::thread library has decent documentation and was developed by Anthony Williams , author of C++ Concurrency in Action and maintainer of the Boost thread library. There's also the C++ Concurrency in Action book by Anthony Williams. 来源: https://stackoverflow.com/questions/4938258/where