documentation

What tools does your team use for writing user manuals? [closed]

只愿长相守 提交于 2019-12-02 15:09:11
Basic requests are: human readable / text format (for easy version control) online (for collaboration) easy formatting (markdown ok, html is too much) strict formatting (so authors don't invent new types of titles, bullets etc.) exportable to PDF, HTML easy backup and deployment (so we can "deploy" to customers site as read only version) We are thinking about using some kind of wiki engine, but it would need to use files for storage or have other means of "deployment" to customer and be easy to install/maintan. Also, it would have to be free / cheap (confluence is way too expensive) Any

How to specify resolution and rejection type of the promise in JSDoc?

跟風遠走 提交于 2019-12-02 15:02:19
I have some code that returns a promise object, e.g. using Q library for NodeJS. var Q = require('q'); /** * @returns ??? */ function task(err) { return err? Q.reject(new Error('Some error')) : Q.resolve('Some result'); } How to document such a return value using JSDoc? Even if they don't exist in Javascript, I found that JSdoc understands "generic types". So you can define your custom types and then use /* @return Promise<MyType> */ . The following result in a nice TokenConsume(token) → {Promise.<Token>} with a link to your custom Token type in the doc. /** * @typedef Token * @property {bool}

What is the correct way to document a **kwargs parameter?

徘徊边缘 提交于 2019-12-02 14:47:57
I'm using sphinx and the autodoc plugin to generate API documentation for my Python modules. Whilst I can see how to nicely document specific parameters, I cannot find an example of how to document a **kwargs parameter. Does anyone have a good example of a clear way to document these? I think subprocess -module's docs is a good example. Give an exhaustive list of all parameters for a top/parent class . Then just refer to that list for all other occurrences of **kwargs . After finding this question I settled on the following, which is valid Sphinx and works fairly well: def some_function(first,

chapters in R reference manual and documentation using roxygen2

巧了我就是萌 提交于 2019-12-02 14:34:14
问题 Once I've seen a package supporting R program in which his documentation and reference manual was divided into chapters ( they were called by the consecutive letters of the alphabet ) so that an user could see that functions presented by that package are divided into groups. Now I'm trying to do the same. I'm building package using roxygen2 package but can not deal with that problem. Can any1 has any solution ? So in that case my documentation will be split to a file like this: Group1: funAX

Are there any real alternatives to reStructuredText for Python documentation? [closed]

好久不见. 提交于 2019-12-02 14:16:56
I'm starting an open source Python project shortly and I'm trying to decide in advance how to write my docstrings. The obvious answer would be using reStructuredText and Sphinx with autodoc, because I really like the idea of simply properly documenting my code in my docstrings then have Sphinx automatically construct an API doc for me. The problem is the reStructuredText syntax it uses - I think it's completely unreadable before it's rendered. For instance: :param path: The path of the file to wrap :type path: str :param field_storage: The :class:`FileStorage` instance to wrap :type field

Advanced documentation for node.js developer [closed]

淺唱寂寞╮ 提交于 2019-12-02 14:08:50
Recently our team is working on a new project with node.js. It is not difficult to start working with node.js. But now we're all just start to use this new technique and have little experience in such event-based development. So I am wondering if there are any books, blogs or other materials covering the topics of "best practice" of node.js, just like "effective c++", "effective java", etc. schaermu Well, i can just support you with the findings that helped me the most when learning "how to node": DailyJS : JavaScript in general, contains a lot of node.js specific posts/tutorials HowToNode :

Documenting Node.js projects [closed]

风流意气都作罢 提交于 2019-12-02 14:06:21
I'm currently using JSDoc Toolkit to document my code, but it doesn't quite fit - namely, it seem to struggle with describing namespaces properly. Say you have two simple classes in each their files: lib/database/foo.js : /** @class */ function Foo(...) {...} /** @function ... */ Foo.prototype.init(..., cb) { return cb(null, ...); }; module.exports = foo; And then something inherited lib/database/bar.js : var Foo = require('./foo'); /** * @class * @augments Foo */ function Bar(....) {...} util.inherits(Bar, Foo); Bar.prototype.moreInit(..., cb) { return cb(null, ...); }; In the generated

Standard methods for documenting a RESTful API [closed]

强颜欢笑 提交于 2019-12-02 13:55:12
I'm writing a specification for a RESTful API for a new internal web service. It's not hugely long and fairly simple, but even so, it's my first time using strict REST (as opposed to cheating for practical reasons - avoiding PUT and DELETE because they're a pain in PHP, and so on). I was wondering if there were any standard methods or best practices for documenting a REST interface? I want the rest of the team to understand it at a glance, and for anyone that wants to write a client to be able to do so without understanding the underlying code. Sure, REST APIs should ideally use HATEOAS and be

Compare and contrast the lightweight markup languages [closed]

情到浓时终转凉″ 提交于 2019-12-02 13:49:35
Please identify the most popular lightweight markup languages and compare their strengths and weaknesses. These languages should be general-purpose markup for technical prose, such as for documentation (for example, Haml doesn't count). See also: Markdown versus ReStructuredText JasonSmith I know of three main languages used commonly in the greater programming and tech community: Textile, Markdown, and reStructuredText. All three can be learned in a couple of hours or "winged" with the cheat sheet nearby. Textile Used by Redmine and the Ruby community 113 questions currently tagged on Stack

Is a successor for TeX/LaTeX in sight? [closed]

穿精又带淫゛_ 提交于 2019-12-02 13:48:52
TeX/LaTeX is great, I use it in many ways. Some of its advantages are: it uses text files, this way the input-files can be diffed and many tools exist to work with text it is very flexible it has a stable layout: if I change something at the start of the document, it doesn't affect other things at the end of the document it has many extensions to reach different goals (a successor would start without extensions, but would have a good extension-system) you can use standard build control tools to support complicated documents (thanks dmckee) you can encapsulate solutions and copy&paste them to