Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MOVED: #2107
This work in progress PR transitions the documentation from github pages to docusaurus (#1859). High level todos (overall status of the PR):
overall status
outstanding work
In addition to getting the docs onto master and docusaurus running, I've done a lot of little detail work to fix things here and there. Ex: images on "Why MobX" were all stacked, egghead iframe tag was causing the parser to (silently) fail, favicons, front-matter, etc. I removed all of the non-necessary boilerplate I could find (ex: placeholder images, blog). Some of the todos below are straight forward and I just need to spend the time on it. Others could use some feedback. It would be great if I could get a quick review to make sure I don't spend time on anything that isn't necessary.
todo
misc stand-alone pages? (ex: help, etc)(defer)netlify) -- here/docs/assets
and update docs<details>
and egghead styling issuehow website is generated
To see and develop the documentation site locally:
I followed the docusaurus tutorial, using
docusaurus-init
to generate the initial scaffold in the project (src/website
). See the scaffold here for a quick view of the files it adds. Note thewebsite
directory has a lockfile so you have toyarn install
from that directory and all the website scripts live there.After dependencies are installed, you can build the site (cc @FredyC re: netlify) by using
yarn build
from within the website folder. The built static site files are in/website/mobx
. You can also publish directly to gh-pages, which I"ve done on my fork here (note: I won't be updating this any longer unless someone wants me to). Note if you run the site locally, I stripped a lot of boilerplate (landing page page sections, blog, images) and if you have ideas on any of that, its worth creating a test scaffold (docusaurus-init
in a fresh project) to see what's there.Lastly, docusaurus 2 is on the horizon but I think having docs on master alone will be worth transitioning now and upgrading later.
(edit: clarified dev / build of website)