#332: Allow master configuration file for all tutorials #334
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For #332.
I added a bunch of tests for tutorial/resolver.js too (i'll get round to filling out tests for tutorial.js eventually but i'll submit that as a separate pull request).
A .json file in the tutorials directory may be of the form:
in which case the file's name is used to connect the metadata with the tutorial (behaviour before this patch)
I've added the ability to specify multiple tutorial cnofigurations in one file like so:
in this case, the JSON's file name is ignored and we use the object keys as the tutorial names (to match metadata to tutorials).
Additionally, one may specify a tutorial's metadata directly in the parent tutorial's 'children' attribute:
I will put in a pull request for jsdoc3.github.com's tutorial page to update it, but what version would this change make it to? So that I can say "Since v3.??, you can also specify metadata for multiple tutorials in a single file ...."