Skip to content

Replace JavaScript 101 Section with MDN information using Kuma API #257

Closed
@ajpiano

Description

@ajpiano

As we discussed in #117, maintaining our own JS 101 section adds overhead to our process and is duplicative of the MDN JavaScript and DOM resources. However, straight-up linking to MDN (from where?) without actually having basic JS/DOM content on our site to read at the time was an unappealing prospect. What we did not realise at the time is that there is an API for obtaining the content of MDN and using it elsewhere. This seems like a reasonable, nay... awesome, alternative than hosting and maintaining "our own" JS 101 reference and it seems that it would not be difficult to integrate hitting Kuma into our grunt build.

There are a few kinks to be discussed and ironed out, including but not limited to

  • Right now the site can be built offline. Adding Kuma means that would not be possible, or at least it would have to be worked around.
  • All of our articles can be contributed-to via Git/GitHub (there's a link to the raw markdown in GitHub on each page) - this wouldn't apply to anything we bring in via Kuma and it could be unclear to folks who want to contribute back.
  • All of our articles show contributors by using the git commit history of the file -- again, we'd have to eschew this for content we bring in from MDN
  • Anything we'd pull from MDN wouldn't be versioned "by us." Our deploys are automated using git webhooks, and tagging with a semver pushes to the live site. If we use MDN, do we just take whatever we happen to pull from the API at build time and call it a day?

In general, however, this does seem like a generally good idea and I'd like to discuss these sticky points further and then see if we can move forward.

(cc @codepo8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions