neutrinojs / neutrino

Create and build modern JavaScript projects with zero initial configuration.
https://neutrinojs.org
Mozilla Public License 2.0
3.94k stars 213 forks source link

Improving the way the docs are built/hosted #892

Closed edmorley closed 6 years ago

edmorley commented 6 years ago

Currently the Neutrino 8 docs are manually built locally using gitbook and then pushed to the gh-pages branch, where they are served by GitHub over the custom domain https://neutrino.js.org

There are a few problems with this:

We tried switching to the new hosted Gitbook beta in #862, however:

Wanting simple multi-version docs rules out GitHub pages. I looked into https://readthedocs.org but they don't allow custom themes.

A promising looking option is Netlify, which:

Possible options for build tools/themes (using https://www.staticgen.com/ for inspiration):

TODO:

Once Neutrino 9 is released, the Netlify production branch would then be set to either master or release/v9 (depending on when we choose to branch), and release/v8 then be served under a subdomain that we can link to from the table of contents of the Neutrino 9 docs.

edmorley commented 6 years ago

Once #891 merged, set up the Netlify "production" docs to be built from the release/v8 branch, and check everything looks ok on https://neutrinojs.org.

This has now been done.

@mozilla-neutrino/core-contributors (or anyone else :-)), could you check to see if you can see any diffrences (other than the recent typo/... fixes etc that landed on that branch) between these two?

Once we're happy the site on Netlify looks fine, I'll get the js.org DNS updated to point the CNAME at Netlify instead of GitHub pages for the old/existing Neutrino domain.

eliperelman commented 6 years ago

Everything seems OK to me.

edmorley commented 6 years ago

Other than future wording/formatting tweaks to the docs on master, we're all done here.

Summary of current state:

edmorley commented 5 years ago

Netlify now have a GitHub app (vs the old style oauth integration), which I've just updated us to.

One nice extra with this is enhanced GitHub status check reporting :-)