When placing samples on a page, try to ensure that all of the features or options of the API or concept you're writing about are covered.Also because on-page code and source code are in two different places, it is easier for them to get out of sync.Īside from the specific system for presenting the live samples, there are style and content considerations to keep in mind when adding or updating samples on MDN. They have a better contribution workflow, but it does require you to know GitHub. GitHub live samples are useful when you've got an existing example you want to embed, don't want to show the source code for, and/or you want to make sure the example is available in standalone form.They can however be awkward to edit and get working. This approach also has the advantage that if you are showing source code and live examples side by side, you only need to update the code once to update both.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |