Closed edmorley closed 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.
Everything seems OK to me.
Other than future wording/formatting tweaks to the docs on master
, we're all done here.
Summary of current state:
gh-pages
branch deleted).master
branch docs auto-deploy to https://master.neutrinojs.orgrelease/v8
branch docs auto-deploy to https://neutrinojs.orgrelease/v7
branch docs auto-deploy to https://release-v7.neutrinojs.orgrelease/vN
branch names are used (eg: https://github.com/mozilla-neutrino/neutrino-dev/tree/release/v6/docs) instead of docs-vN
tags. The old tags have been removed.master
we're now building the docs with mkdocs instead of gitbook, and using a new material theme.master
, v8 and v7 docs all now correctly link to each other in the sidebar.master
or release/v9
(depending on how we choose to handle the release) and the release/v8
branch docs moved to a subdomain like the v7 docs are currently (and various tweaks made like adding v9 sidebar links to v8/v7 etc).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 :-)
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.orgThere are a few problems with this:
master
build deps will work on older branch'sdocs/
directories).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:
neutrinojs.org
domain (since we don't control thejs.org
domain and Netlify needs us to use its DNS nameservers for features like deploy previews and simpler subdomain setup).neutrinojs.org
as a custom domain to Netlify & adjust nameservers accordingly.master
.netlify.toml
to therelease/v8
branch, which builds the v8 docs using gitbook (still), but means we can switch away from github pages as an initial step (will be easier than having two different hosting solutions for Neutrino v8 vs v9 docs).release/v8
branch, and check everything looks ok on https://neutrinojs.org.neutrino.js.org
DNS to CNAME against Netlify instead of GitHub pages.master
(Neutrino 9).master
to use the new generator/theme and add anetlify.toml
with relevant build steps and redirects.master
as a subdomain of the new domain. (~We may need to contact support to see if there is a way to customise the subdomain name, given that at first glance it always matches the branch name, so we couldn't call it egnext
. Though not a blocker if this isn't possible.~ Let's not bother, I thinkmaster.neutrinojs.org
is fine.)release/v8
netlify.toml
to make any pages viewed via the old domain redirect to the new domain.release/v8
, #910 formaster
.gh-pages
branch and disable the repo GitHub pages setting.Once Neutrino 9 is released, the Netlify production branch would then be set to either
master
orrelease/v9
(depending on when we choose to branch), andrelease/v8
then be served under a subdomain that we can link to from the table of contents of the Neutrino 9 docs.