297 Commits

Author SHA1 Message Date
Jeff Williams
cc1b966057 Merge branch 'dep-up-minor' of https://github.com/bjornharrtell/jsdoc into bjornharrtell-dep-up-minor 2016-08-26 16:41:41 -07:00
Jeff Williams
ea838e39a4 fix outdated link to Underscore.js (#1241) 2016-08-25 17:00:18 -07:00
Björn Harrtell
34c6eb9ffd Update gulp-eslint and minor style fixes to adapt to new eslint version 2016-03-31 21:17:41 +02:00
Kevin Locke
67d3693214 Create silent template
This commit creates a template named `silent` which outputs nothing at
all.  As discussed in the `README.md`, this can be useful when running
JSDoc as a linter to check for syntax errors or unknown tags.  It may
also be useful for testing or benchmarking.

The same effect can be achieved using the haruki template and
redirecting the output to /dev/null, but this has a few downsides:

* It is non-obvious.
* It is difficult to do in scripts which must run in bash and cmd.exe
  (like npm scripts).
* It is slower due to the unnecessary formatting work and output
  syscalls.

This template could be distributed as a third-party template, but given
the tiny code size, broad applicability, and potential usefulness for
tests, it makes sense to include it officially.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-02-24 14:28:53 -08:00
Jeff Williams
bce36281b6 use appropriate styling for all tables (#1064) 2015-12-14 16:25:57 -08:00
Jeff Williams
3734dd621a differentiate CSS for h2 and h3 elements (#1108) 2015-12-08 15:55:39 -08:00
Vazha Omanashvili
4f9545c13b fix displaying of falsy default values in haruki template 2015-09-10 20:54:50 +03:00
Sebastian Noack
3f9a471840 Added option to use longnames in navigation to default template 2015-08-08 22:44:45 +02:00
Jeff Williams
6d3be696f6 Merge pull request #1013 from TimOgilvy/patch-1
Remove whitespace from around object name
2015-07-29 15:45:16 -07:00
Jeff Williams
5b0b60ec44 fix crash in haruki template (#1005) 2015-06-07 13:53:32 -07:00
Tim
b59875087a Remove whitespace from around object name
Prevents unnecessary space between ancestors and object name.
2015-05-25 17:48:24 +10:00
Jeff Williams
9cd830383e copy user-specified static files to the correct location when the output directory is an absolute path (#939) 2015-03-05 15:28:20 -08:00
Jeff Williams
ae94af0cd8 turn env global into a module, and use the module instead of the global (#812)
The `env` global remains available, since templates and plugins may rely upon it, but it's deprecated as of JSDoc 3.4.0.
2015-02-17 19:07:10 -08:00
Juan Cruz Viotti
254391e138 Allow disabling footer date with includeDate template config (#910) 2015-02-10 08:17:27 -04:00
Jeff Williams
eadccea5d2 use a nested table for every param with properties, not just the first one (#901) 2015-02-02 08:24:28 -08:00
Timothy Gu
105bdfe467 Remove margins for paragraphs in .props too 2015-01-24 18:26:48 -08:00
Jeff Williams
fb2c36781f update ESLint; delint 2015-01-11 19:17:44 -08:00
Jeff Williams
dad0544e93 show tutorials in the TOC nav (#875) 2015-01-11 18:30:08 -08:00
Jeff Williams
b7812b5de4 support properties on objects in arrays (#870) 2015-01-09 12:54:53 -08:00
Jeff Williams
3c7f54f749 move font stuff to the correct README 2015-01-06 19:38:34 -08:00
itantik
d57c67d9af 'longname' property of tutorials is undefined
therefore uniqueness checking causes the navigation displays only one tutorial. Items without 'longname' should be omitted from checking.
2014-12-30 22:08:41 +01:00
itantik
1945e6322e Added missing argument to the buildMemberNav()
Four arguments are passed to the buildMemberNav(), but only three ones were defined.
2014-12-30 21:44:26 +01:00
Jeff Williams
c7ba890677 only show the "Constructor" heading if there's a classdesc (#854) 2014-12-29 16:54:03 -08:00
Jeff Williams
7e23a68c59 multiple fixes for overridden symbols (#855)
- Don't add an "overrides" property to members that are merely inherited.
- In the template, don't show both "overrides" and "inherited from" for the same member.
2014-12-29 15:48:05 -08:00
Jeff Williams
0080e5f99f if a symbol shares its longname with a module, only show the symbol if it either a) has a description or b) is a class (#853) 2014-12-28 12:32:47 -08:00
Jeff Williams
9a18e361fe remove huge paragraph margin (#844) 2014-12-22 13:38:05 -08:00
Jeff Williams
0fc0244ab6 close ul element correctly (#843)
Fixes validation errors.
2014-12-19 16:38:24 -08:00
Jeff Williams
e7f55594a1 add required dd elements (#843)
Fixes validation errors.
2014-12-19 16:32:38 -08:00
Jeff Williams
feb96ea7f5 remove dictionary-list wrappers (#843)
Fixes validation errors. Also results in fewer sections being indented, which, to my eye, looks nicer and is easier to read.
2014-12-19 16:27:23 -08:00
Jeff Williams
faee92618d use CSS to clear the br element (#843)
Fixes a validation error.
2014-12-19 16:25:49 -08:00
Jeff Williams
16f8270430 add missing dictionary list wrappers 2014-12-18 17:32:01 -08:00
Jeff Williams
61819f1105 close list elements 2014-12-18 17:21:55 -08:00
Jeff Williams
416b42fa75 update ESLint; delint 2014-12-13 09:39:21 -08:00
Jeff Williams
ee2badcde2 improvements from @dchambers to nav-building code (#813)
Squashed commit of the following:

commit 723349a9c90a005137d01e19012778f4dddb1d12
Author: dchambers <dominic.chambers@gmail.com>
Date:   Fri Dec 5 13:14:13 2014 +0000

    Moved an assignment within the corresponding guard, since it was superfluous unless the guard was triggered.

commit 872974656e7500c99daba64e7db31f14f9874c0d
Author: dchambers <dominic.chambers@gmail.com>
Date:   Fri Dec 5 11:35:33 2014 +0000

    Use four spaces for tabulation.

commit 5eaabcf84c5395aeeeff018ea042e73d710e2846
Author: dchambers <dominic.chambers@gmail.com>
Date:   Mon Nov 24 18:15:36 2014 +0000

    Attempt to fix remaining linting errors -- may not work as I'm unable to run the build locally on my own machine to verify.

commit 0137865ff4aa4e888533a217f2e6bb3b12b7fc87
Author: dchambers <dominic.chambers@gmail.com>
Date:   Mon Nov 24 17:42:09 2014 +0000

    Attempt to fix remaining linting errors -- may not work as I'm unable to run the build locally on my own machine to verify.

commit 7d80410d63e29837b436776b8983004c8b92ecb2
Author: dchambers <dominic.chambers@gmail.com>
Date:   Mon Nov 24 17:17:51 2014 +0000

    Removed trailing whitespace from 'publish.js'.

commit 773b785756f5ee6c32cbcb1742543c1a2671efe7
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Tue Aug 26 09:58:50 2014 +0100

    Ensure the title for classes defined within modules shows the thing
    being documented as being a class rather than a module, as it currently
    does for interfaces.

commit 9fc527d63aa6839fbae07f4b6db8dee027f6fc43
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Tue Aug 26 09:51:10 2014 +0100

    Remove the 'module:' prefix from index links to classes and interfaces
    defined within modules.

commit 21e3e31f2499bbc9cb5f10c09cfaeb86d25ded9b
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Tue Aug 26 09:43:13 2014 +0100

    Removed duplicated code from the buildNav() function, where the version
    of the code used is one where items are only written if they haven't
    already been encountered, and a heading is only written when there are
    items to appear beneath that heading.
    Conflicts:
    	templates/default/publish.js
2014-12-06 15:50:28 -08:00
Jeff Williams
1a975c0f6d remove duplicate Requires section in modules (#790) 2014-11-11 20:14:38 -08:00
Jeff Williams
42f388f009 render a doclet's overrides property (#792) 2014-11-11 18:01:17 -08:00
Jeff Williams
afbc4fa0bc close li tag 2014-11-11 17:55:16 -08:00
Jeff Williams
7807ac021e rename "Index" to "Home" (#750)
Thanks to @dchambers for the suggestion.
2014-11-08 10:54:14 -08:00
Jeff Williams
7761292b97 use nicer typography in the default template (#780)
Squashed commit of the following:

commit eb310340ae542152ae5fd15b070e389a17b71913
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 17:24:19 2014 +0000

    Updated to use the same set of monospace typefaces as MDN too.

commit 5ff2591f8c3711e20f87eeb2e41347396d201414
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 17:15:28 2014 +0000

    Add font re-generation instructions to the README.

commit bb4502a308936a31684732104b09ae737e6fbaec
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 16:11:06 2014 +0000

    Added additional variations of the OpenSans typeface.

commit 125f2c91e767c7fa853ffa3222e7ed7d02f027b8
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 15:33:44 2014 +0000

    Moved the web fonts into a separate 'fonts' directory.

commit 968998c677a946e79910b96cff2cb4c29898eb48
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 15:24:46 2014 +0000

    Removed a negative margin hack we no longer seem to need.

commit 82f96d67cd3067ba6fd3deadee13e8853eb58491
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 15:13:15 2014 +0000

    Removed the 'Summary' heading, plus re-jigged the formatting so there isn't too much space before the content.

commit db9dfad5c2339ea6d36a400b59da0447d446920d
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 14:23:05 2014 +0000

    Fix for styling that was incorrectly being applied to each item in a list, rather than to the list itself.

commit 774271bd4e74ea429df7e5ae8fb9473097b81a1b
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 14:14:04 2014 +0000

    For consistency, ensure there is always a space after the colon used to delimit CSS rule pairs.

commit 88d59794b0442e594bedf6fb17a638923ac67c2a
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 14:07:31 2014 +0000

    Replace tabs with spaces to be consistent with the remainder of the stylesheet.

commit 37e5043403441a19cbe0cf2e2f4dec8ceba6cacb
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Wed Nov 5 14:02:34 2014 +0000

    Use the same color for headings that MDN does.

commit 8f925659efd7a6c9996bf2a8dcebb174f79dc8d8
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Fri Aug 22 09:46:41 2014 +0100

    Accidentally missed from previous check-in.

commit e98b060822b018c1403b98c92400052565d69e20
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Fri Aug 22 09:46:11 2014 +0100

    Updated the license to reflect the inclusion of the Open Sans typeface,
    plus included EOT and SVG versions of the font so that older version of
    IE and Android browser also get to see the page rendered correctly.

commit 7e1a581bca931603e738e5afc238e7f211c9d444
Author: Dominic Chambers <dominic.chambers@gmail.com>
Date:   Thu Aug 21 14:32:02 2014 +0100

    Rebased the template typography off of the Mozilla Developer Network
    site so generated API docs have a more contemporary and familiar style.
2014-11-05 16:48:09 -08:00
Jeff Williams
fc2b4ad3d2 fix Windows path issues and static-file copying (#785)
- In the default template, look for the list of static file paths in the
config property `templates.default.staticFiles.include`. (You can still
use `paths` instead of `include`.)
- Handle path-normalization issues that prevented the default template
from copying user-specified static files on Windows.
- Normalize paths in `fs.toDir` so that callers get the correct path
separator on Windows.
2014-10-30 12:06:26 -07:00
Jeff Williams
a2e119a88b update ESLint dependency; enable new rules; delint 2014-10-27 12:58:32 -07:00
Jeff Williams
b28f3341a3 delint 2014-10-26 05:52:03 -07:00
Jeff Williams
7471685fa9 show the inheritance chain for modules that export a single constructor (#594) 2014-10-22 09:41:11 -07:00
Jeff Williams
25ffab0676 prevent a crash when a package file specifies a name, but not a version 2014-10-17 12:44:35 -07:00
Jeff Williams
00b9dbb8c8 don't write empty class descriptions to template output (#741) 2014-10-07 08:52:32 -07:00
Jeff Williams
3b865dde3f Merge remote-tracking branch 'brjs/fix-classdesc-in-modules' 2014-10-07 08:45:24 -07:00
Jeff Williams
d527f3e6b0 prevent crash when a returns tag does not have a value (#751) 2014-09-05 15:30:21 -07:00
Dominic Chambers
982d4ddb88 Updated the template so it now display the @classdesc for classes
defined within the modules.
2014-08-20 21:15:06 +01:00
Dominic Chambers
fea85645e0 Display the class description even when the class is defined within a
module.
2014-08-19 17:45:33 +01:00
Jeff Williams
019ebb538f only show a module's summary info once (#701) 2014-08-18 16:13:53 -07:00