64 Commits

Author SHA1 Message Date
Max Schmitt
45a9ea924a feat: added project description 2018-08-03 15:35:25 -07:00
Jayden Seric
ca6217fb19 feat: Semantic markdown headings (#1087)
- Previously, headers were displayed using `p` and `strong` tags. This is semantically incorrect, and would cause subheadings to display larger than headings for nested sections on platforms such as Github.
- “Parameters”, “Properties”, and “Examples” now render as headings with a dynamic level greater than the heading they are nested under.

BREAKING CHANGE: changes Markdown output
2018-06-04 11:51:09 -07:00
Tom MacWright
ab494dd1b3
feat: use reference links for Markdown output, improving brevity
* Use reference links in Markdown.

Fixes https://github.com/documentationjs/documentation/issues/948.

This approach might be problematic when inserting markdown under a readme heading if the readme already has link references with conflicting ID’s.

* Reference links edits:

- fix broken normalize() utility in test suite so that it produces
  output that doesn't choke referenceLinks.
- add DocumentationConfig option `--noReferenceLinks` which will be
  **internal only**, and turns off reference links for `readme` mode
- rebuilds test output with these changes

unrelated but minor

- includes .prettierrc and updates calls to prettier to use that instead
  of CLI options

* chore: update test snapshots

* Update readme snap
2018-03-01 15:18:20 -08:00
Taylor Ackley
43682b20f8 docs: Update THEMING.MD (#1026)
* Docs: Update THEMING.MD

Add instructions to effectively fork the default theme for the purpose of creating and using your own custom theme.

* Docs: Revise THEMING.MD per Pull Request Feedback

Chanted the script line example to use documentation instead of referring to the node_modules bin folder.
2018-03-01 09:07:23 -08:00
Jonas Bögle
f0c32278a8 docs(readme, usage): updated help command/message (#994) 2018-01-12 16:00:23 -08:00
Thomas Broadley
4bb2047064 Fix typos (#977) 2017-12-15 20:06:14 -08:00
Tom MacWright
aa661ffcbf
fix(globals-docs): Remove en-US from MDN links. (#973)
This allows the Mozilla Developer Network to infer the user language.

Fix #964
2017-12-11 17:04:28 -08:00
Victor Glindås
c43701b672 docs: Fix grammar in getting started
Grammar fix.
2017-10-05 09:30:04 -07:00
Ryan Hendrickson
c94412a7aa feat: groups in toc (#895) 2017-09-03 23:44:31 -07:00
Tom MacWright
e0b605f817 style: Avoid optional parameter syntax
Supporting this syntax uncorks a whole bottle of worms and requires participation in more of the
JavaScript ecosystem and is not worthwhile in my opinion at this time.

Fixes #873
2017-08-12 14:25:34 -07:00
Anton
0324865ad5 fix: make html and markdown second option optional (#871)
Fixed #869
2017-08-09 10:25:32 -07:00
Tom MacWright
5b373ff2fe revert(polyglot): Remove polyglot mode
BREAKING CHANGE: I'd like to still support C++ and other languages in the future! But I'm much
happier doing so by separating the extraction & input phases to the degree that documentation.js can
read the output of another module that extracts JSDoc comments from C++ code, rather than having CPP
support in it.

Fixes #850. Fixes #731. Fixes #702. Fixes #132.
2017-07-27 13:58:49 -04:00
Prateek Saxena
5b5dcd1662 docs(theming): fix default theme link 2017-07-20 12:05:28 -04:00
Dan Dascalescu
32ef5a5fec docs: Don't end 'getting started' abruptly, instead link to next steps.
Fixes #826
2017-06-25 12:04:09 -04:00
Tom MacWright
4ba0a822a2 docs(api): Update API docs (#784) 2017-05-12 09:57:34 -04:00
Julien Vanier
c055aecee8 docs: Provide syntax for specifying configuration (#778) 2017-05-11 10:33:29 -04:00
Julien Vanier
5b6b3bb8cd docs: Update recipe for documenting destructuring parameters 2017-05-05 16:57:27 -04:00
Tom Macwright
2c19809f07 docs(lends): Document the usage of the lends tag
This tag is useful for documenting class factories in libraries and frameworks

Refs #412
2017-04-25 11:12:38 -04:00
Tom Macwright
355038d03e fix: Infer parameters for classes from constructors
Fixes #689
2017-04-24 19:16:34 -04:00
John Kerssens
72e04b885c chore(docs): fixing spelling 2017-03-26 15:16:59 -04:00
Dano Alexander
98f86d70ea Fix typo (#656) 2017-01-12 10:17:41 -05:00
Tom MacWright
2cf84297f9 docs(markdown): Document approaches to Markdown theming (#647)
Fixes https://github.com/documentationjs/documentation/issues/550
2016-12-29 16:32:57 -05:00
Tom MacWright
4c66fb14c7 feat(markdown): Add table of contents support for Markdown mode (#645)
Adds a new option, `--no-markdown-toc`, to turn off Table of Contents generation. Table of contents are now generated by default with markdown output, including through the `readme` command.

Fixes https://github.com/documentationjs/documentation/issues/220
2016-12-28 21:12:33 -05:00
Tom MacWright
2ae5d8f304 fix(markdown): Start headings in Markdown at h2 (#644)
Fixes https://github.com/documentationjs/documentation/issues/641
2016-12-28 20:12:17 -05:00
Tom MacWright
813dfbbc29 docs(nodeapi): Fix node API documentation: formatters call (err, res) (#643)
Fixes https://github.com/documentationjs/documentation/issues/642
2016-12-28 18:16:08 -05:00
Tom MacWright
cb8fdfa74f feat(bin): Support globs on windows and use smarter recursion (#629)
This brings logic from eslint over to documentation: instead of readdirSync, we're using the glob
module. This also, I hope, will let us support globs on Windows without changing OSX/Linux behavior.
Fixes #607
2016-12-26 10:24:30 -05:00
Antonio Quinonez
87bfe7e8b7 doc(readme): Fix learning documentation 2016-12-23 12:04:01 -05:00
Antonio Quinonez
aea22d4d5a docs(readme): minor style, spelling, and punctuation fixes 2016-12-22 14:03:33 -05:00
Denis Andrejew
11fef7d858 docs(install): reiterate installation directions in getting started
crucial since home page links to GETTING_STARTED.md, without first showing any installation instructions -- those are currently only found in the README.md / GH repo landing page.
2016-12-06 22:08:46 -05:00
Friedel Ziegelmayer
d96aa47673 feat(config): add file property for notes (#614)
* feat(config): add file property for notes

Fixes #609

* feat(config): resolve files against the config file location
2016-11-23 08:31:10 -05:00
Tom MacWright
fc58bebaef Document new inferPrivate and extension options 2016-11-11 11:31:52 -05:00
Tom MacWright
f926b3da23 Add lint example 2016-11-11 11:24:05 -05:00
Tom MacWright
375e8007b2 Update Node API to include only exposed API surface 2016-11-11 11:22:07 -05:00
Tom MacWright
393002d5c1 Add too-much-inference troubleshooting topic 2016-11-11 11:04:28 -05:00
Tom MacWright
ed9d2b73d3 Warn about npm v2. Fixes #583 2016-11-09 16:10:39 -05:00
Erik Arvidsson
0c3f17872f Update docs for which files are included (#548)
* Update docs for which files are included

* Copyedits

* More copyedits
2016-09-19 13:00:57 -04:00
Erik Arvidsson
a5ac4a798c Add a --sort-order option (#535)
Valid values for the `--sort-order` flag are `"source"` (default) and
`"alpha"`. When set to `"alpa"` the order of the entries in the docs
are sorted alphabetically.

Fixes #534
2016-09-08 18:26:02 -04:00
Tom MacWright
49347c82e7 Arv document exported (#502)
* Add a flag to document all exported bindings

This adds a boolean flag called `document-exported` (defaults to false)
that effectively adds an empty comment to all exported bindings that do
not already have a JSDoc comment. It also does the same for the
members of exported classes and objects.

```js
export class C {
  method() {}
}
```

Both `C` and `C#method` are now part of the generated documentation.

Related to #424

* Fix lint error

* Rebase and use options pragma in test file

* Create extractor type as a generalized comment/export getter

* Document exported extractor
2016-08-24 10:58:15 -04:00
Tom MacWright
6bf515e936 Add FAQ entry to lock down understanding around #413 2016-06-17 15:57:46 -04:00
Tom MacWright
c33fe6b904 Add usage doc for node usage 2016-06-12 17:14:46 -04:00
Erik Arvidsson
629ea6f3a8 Add support for inferring private based on the name
This adds a command line flag called `--infer-private` which is a
string (defaults to `^_`) which is used as a regexp for inferring
if a name is private or not.

For example:

```js
/** C */
class C {
  /** I'm public */
  m() {}
  /** I'm private */
  _p() {}
}
```

Fixes #436
2016-06-01 14:40:08 -07:00
Tom MacWright
11f13df60f Add troubleshooting. Fixes #428. Fixes #401 2016-05-26 14:08:12 -04:00
Tom MacWright
0727ef8f55 Document sorting/configuration system. Fixes #100. Fixes #14 2016-05-26 14:03:31 -04:00
Andreas Hocevar
6e352a1049 Add commands, update options and fix example 2016-03-09 14:25:19 +01:00
Titus Wormer
35e17be4e4 Rename mdast to remark
Note that the AST now carries the name “mdast”, meaning
utilities (such as mdast-util-inject) keep their name.

This name-change includes the `mdast` formatter, which also changed
to `remark`.

Additionally:

* Update relating packages.
* Fix a bug where `text` nodes without value were
  [generated](6b905aefb1/lib/output/markdown_ast.js (L144)).
2016-01-24 10:35:51 -05:00
Denis
1508412ae8 Add the missed comma in GETTING_STARTED.md
Fix #307
2015-12-11 19:35:46 +03:00
Tom MacWright
e99f64ca5c Update GETTING_STARTED.md 2015-12-10 18:30:46 -05:00
Tom MacWright
68aa236ef9 Move see also to https://github.com/documentationjs/documentation/wiki/See-also 2015-12-10 18:25:54 -05:00
Vladimir Grinenko
238d4f3b2e Fix typo 2015-12-10 11:42:22 +03:00
John Firebaugh
0a1de4f343 Theme API 2.0 2015-12-07 16:09:24 -05:00