This repository has been archived by the owner on Sep 10, 2019. It is now read-only.
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.
Maintaining the settings file is a hassle, because when a variable changes, you have to change it in the component's file, the settings file, and the documentation page all at once. This Gulp task (
gulp gen
) parses out the settings variables for each component and collects them in one file. If we can make this work, it could be used in the other Foundation frameworks as well.The function takes all the code between two delimiters:
And then collects all of the code it finds into one file. The title of each code chunk (in the above example, the title is "Grid") is used to generate the title of that section in the settings file, and could also be used to generate a table of contents at the beginning of the file.
Issues:
partials
folder as well, and then we can use Angular'sng-include
to pull in the file and display it on the right docs page.gulp.src()
gulp-ignore
to remove files that are empty (they're empty because the parser couldn't find any settings variables)