Rich Trott
7e739ae159
test,tools: adjust function argument alignment
...
In preparation for a lint rule enforcing function argument alignment,
adjust function arguments to be aligned.
PR-URL: https://github.com/nodejs/node/pull/7100
Refs: https://github.com/nodejs/node/pull/6390
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Imran Iqbal <imran@imraniqbal.org >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
2016-06-23 17:26:37 -07:00
Rich Trott
aaeeec4765
lib,test,tools: alignment on variable assignments
...
Correct alignment on variable assignments that span multiple lines in
preparation for lint rule to enforce such alignment.
PR-URL: https://github.com/nodejs/node/pull/6869
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-06-23 16:59:37 -07:00
firedfox
4c73ab4302
tools,doc: fix json for grouped optional params
...
Current tools/doc/json.js only supports one bracket style for optional
params methodName(param0[,param1],param2). Add support to other styles
such as methodName(param0,[param1,]param2) or
methodName(param0[,param1,param2]) or
methodName(param0[,param1[,param2]]).
PR-URL: https://github.com/nodejs/node/pull/5977
Fixes: https://github.com/nodejs/node/issues/5976
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-05-17 17:24:39 -07:00
Alexander Makarenko
c893cd33d1
tools,doc: parse types in braces everywhere
...
Also add `EvalError`, `RangeError`, `ReferenceError`, `SyntaxError`,
`TypeError`, `URIError` to list of global types. Fix errors.markdown
copy accordingly.
Fixes: https://github.com/nodejs/node/issues/5325 .
PR-URL: https://github.com/nodejs/node/pull/5329
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-05-17 17:24:38 -07:00
firedfox
6f0bd64122
tools,doc: fix incomplete json produced by doctool
...
Doc tool produces incomplete json when it meets unordered lists that
directly following a heading. Add a default case to processList function
to handle the lists.
PR-URL: https://github.com/nodejs/node/pull/5966
Fixes: https://github.com/nodejs/node/issues/1545
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-04-11 12:12:05 -04:00
firedfox
c33a23fd1e
tools: fix json doc generation
...
Current processList function in tools/doc/json.js does not recognise
{"type":"loose_item_start"}. Fix it.
PR-URL: https://github.com/nodejs/node/pull/5943
Fixes: https://github.com/nodejs/node/issues/5942
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com >
2016-04-11 12:06:40 -04:00
firedfox
8c24bd25a6
doc: fix order of end tags of list after heading
...
Current html result of a list after heading is <div
class="signature"><ul>...</div></ul>. Correct it to <div
class="signature"><ul>...</ul></div>.
PR-URL: https://github.com/nodejs/node/pull/5874
Fixes: https://github.com/nodejs/node/issues/5873
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-30 13:12:17 -07:00
Mithun Patel
20539954ff
docs: fix man pages link if tok type is code
...
Do not call the linkManPages if the tok type is code
Fixes: https://github.com/nodejs/node/issues/5686
PR-URL: https://github.com/nodejs/node/pull/5721
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-21 13:07:07 -07:00
Rich Trott
a5d57f447b
doc: remove out-of-date matter from internal docs
...
Remove out-of-date stability index material from `tools/doc/README.md`.
The stability index is documented in `doc/api/documentation.markdown`.
PR-URL: https://github.com/nodejs/node/pull/5421
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-03-02 14:01:11 -08:00
dcposch@dcpos.ch
a44aa39136
doc: link to man pages
...
This changes the doc generator to automatically link references such as
`open(2)` to a man page on man7.org or freebsd.org
PR-URL: https://github.com/nodejs/node/pull/5073
Reviewed-By: Ben Noorhduis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-02 14:01:11 -08:00
Rich Trott
28b9ca8f14
src,test,tools: modify for more stringent linting
...
ESLint 2.1.0 is coming. Some lint rules have been tightened.
PR-URL: https://github.com/nodejs/node/pull/5214
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-03-02 14:01:11 -08:00
Rich Trott
e42be1e8fe
doc,tools,test: lint doc-based addon tests
...
PR-URL: https://github.com/nodejs/node/pull/5427
Fixes: https://github.com/nodejs/node/issues/5424
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-03-02 14:01:11 -08:00
Roman Reiss
5ed26f3d93
doc: improve scrolling, various CSS tweaks
...
- Made scrolling of the sidebar not affect the main page by using a combination
of overflow:hidden and overflow:scroll.
- Changed the scrollbar of the sidebar to be visible again for accessibilty
reasons and removed the indication gradient because it was causing too much
issues.
- In WebKit-based browsers, the scrollbar received custom styling making it
appear to be outside of the sidebar.
- The main content is no longer limited to 702px width, but now uses all
available space.
- Changed the background of the code blocks to a very similar, but neutral
color and made inline blocks the same color.
- Made inline code blocks inside italic sections not italic.
- Simplified styling of api_stability classes by introducing a common class
name for the stability levels.
- Fixed various issues related to the green hover background on links.
- Fixed code box overflow outside the main content area.
- Various minor tweaks to paddings and margins.
- Cleaned up numbers in the stylesheet, removing unnecessary units, decimals
and empty selectors.
PR-URL: https://github.com/nodejs/node/pull/5198
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-02 14:01:11 -08:00
Rich Trott
7c1cd9a7d1
tools,doc: fix linting errors
...
Refs: https://github.com/nodejs/node/pull/4741#issuecomment-181973382
PR-URL: https://github.com/nodejs/node/pull/5161
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-03-02 14:01:11 -08:00
Claudio Rodriguez
acffcf7b08
tools: parse types into links in doc html gen
...
Changes the parsing of parameter types in the doc html gen
Links to either MDN or nodejs docs depending on type
See #4350
PR-URL: https://github.com/nodejs/node/pull/4741
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Chris Dickinson <chris@neversaw.us >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-02 14:01:11 -08:00
Shigeki Ohtsu
88293f2d9c
tools: fix warning in doc parsing
...
The description of "[start[, end]]" in the doc shows warning of
"invalid param" when parsing an optional parameter in the section.
This fixes insufficient trimming of right square brackets.
PR-URL: https://github.com/nodejs/node/pull/4537
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-02 14:01:11 -08:00
Rich Trott
9cd623fcab
tools: fix redeclared vars in doc/json.js
...
PR-URL: https://github.com/nodejs/node/pull/5047
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-03-02 14:01:11 -08:00
Rich Trott
7fb5a03017
tools: apply linting to doc tools
...
Apply eslint rules to `tools/doc`.
PR-URL: https://github.com/nodejs/node/pull/4973
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-02 14:01:11 -08:00
Timothy Gu
8fd9e646ec
tools: fix detecting constructor for JSON doc
...
Regex previous was not detecting cases like AssertionError as
a class name.
PR-URL: https://github.com/nodejs/node/pull/4966
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Chris Dickinson <chris@neversaw.us >
2016-03-02 14:01:11 -08:00
Timothy Gu
55cc86bb41
tools: add property types in JSON documentation
...
PR-URL: https://github.com/nodejs/node/pull/4884
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-03-02 14:01:11 -08:00
Rod Vagg
e6448aa36b
test: use addon.md block headings as test dir names
...
instead of doc-*
PR-URL: https://github.com/nodejs/node/pull/4412
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
2016-02-15 11:30:23 -08:00
Rod Vagg
305d340fca
test: test each block in addon.md contains js & cc
...
Allows more freedom in adding additional headings to addon.markdown,
otherwise it'll try and convert each block under a heading to a test
case. We need to have at least a .js and a .cc in order to have
something to test.
Fixes regression caused by adding a new 3rd-level heading in
d5863bc0f4
PR-URL: https://github.com/nodejs/node/pull/4411
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-02-15 11:30:23 -08:00
Nathan Rajlich
9c2748bad1
tools: remove leftover license boilerplate
...
This last line was missed in 3e1b1dd4a9
PR-URL: https://github.com/nodejs/node/pull/3225
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-10-07 20:39:17 -07:00
Ben Noordhuis
a2e43412cf
tools: make add-on scraper print filenames
...
Make the tool that generates add-ons from doc/api/addons.markdown print
the names of the files it writes out. Before this commit, it printed a
rather unhelpful "Done."
PR-URL: https://github.com/nodejs/node/pull/2428
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-08-25 12:05:16 +02:00
isaacs
3e1b1dd4a9
Remove excessive copyright/license boilerplate
...
The copyright and license notice is already in the LICENSE file. There
is no justifiable reason to also require that it be included in every
file, since the individual files are not individually distributed except
as part of the entire package.
2015-01-12 15:30:28 -08:00
Chris Dickinson
9120f2b1fd
doc: update style for iojs
...
* updates the styling for the iojs docs
* pulls the processing step for markdown files into
a separate module
* adds the ability to insert comments into the markdown
PR-URL: https://github.com/iojs/io.js/pull/297
Fixes: https://github.com/iojs/iojs.github.io/issues/23
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-12 13:44:50 -08:00
Trevor Norris
f2a78de6ec
doc: fix optional parameter parsing
...
The parameter parser specifically looked for the old bracket syntax.
This generated a lot of warnings when building the docs. Those warnings
have been fixed by changing the parsing logic.
Signed-off-by: Trevor Norris <trev.norris@gmail.com >
2014-09-29 16:32:34 -07:00
Vladimir Kurchatkin
103b89673e
doc: skip type parsing inside code blocks
...
Since types are denoted with curly braces it can cause erroneous
replaces in code blocks.
Signed-off-by: Trevor Norris <trev.norris@gmail.com >
2014-01-22 12:27:58 -08:00
Fedor Indutny
1442c1c6de
addons: build and test examples
...
fix #6910
2014-01-22 00:39:13 +04:00
Luke Arduini
192192a09e
Colorize API stabilitity index headers in docs
...
Noted in @shtylman's #3898 , API stability notes are easy to overlook
in the html documentation. This can be especially troublesome if the API
is deprecated. This commit gives visual feedback by adding in a class
to the html docs when they're generated. The API headers with
corresponding colors are also listed in the 'About this Documentation'
page for easy reference.
2012-12-27 18:38:56 -08:00
Bert Belder
6174ea6b4c
doc: don't use '
...
Ref: #3964
2012-09-04 21:15:39 +02:00
Philipp Hagemeister
1d99441d37
tools: fix shebang in tools/doc/generate.js
2012-07-11 14:36:43 +02:00
isaacs
815169383e
Fix include logic was replacing https include with http
2012-03-17 11:11:07 -07:00
isaacs
33f9074a62
Mention marked, and add license to doc generator
2012-03-05 10:59:14 -08:00
isaacs
f1742c93d7
doc: Don't prune Stability indicators
2012-03-03 22:58:29 -08:00
isaacs
4ca3fd0a01
Handle miscs better
2012-02-29 16:04:56 -08:00
isaacs
17db291b5c
'Events' is a module, not an event named 's'
2012-02-29 16:04:55 -08:00
isaacs
217bb47b02
New documentation generation tool
2012-02-29 15:15:25 -08:00