-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation (code panes, examples)
Code panes ========== The message "Tip : check the source of the page !" wasn't really friendly and the html source code isn't the best place to display the code of our examples. Now, the js fragment and the html fragment are separated from the main page and are included (using jekyll includes) two times: - as html or js content, to render the result - inside jekyll's `highlight` tag to pretty print its content Using a tab for each block, we keep the page length under control. Argument and option examples ============================ In the API documentation pages, the return type moved just below the description and a new line, "since", appeared. (Almost) all arguments / options now have an example, illustrating (if possible) what the option does. For example, `createFolders` in `loadAsync()`: the explanation about "virtual folders" helps only if you know how a zip file works. The example will help a lot as it's what people usually see: sub folders or not sub folders. Next steps ========== This commit helps with the options but doesn't lower the learning curve. The next (documentation) step should be to add more (simple) examples with real world use cases: with blob urls, canvas, list of promises, etc.
- Loading branch information
1 parent
5250332
commit b0b10e4
Showing
50 changed files
with
1,280 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.