This is the source code for the documentation for Fuse, as hosted here.
The documentation is hosted on GitHub Pages, from the gh-pages branch. This branch gets automatically updated by a Travis CI build-step.
npm install
npm start
This will build HTML pages based on documentation files, start a webserver at http://localhost:8080/, and finally open your default browser at this URL.
This will also watch your source files and rebuild HTML pages automatically while you're making changes. Just save in your editor and refresh in your browser (give it a second or three). 🙂
Some system dependencies are required to process files. On macOS they can be installed by running the following command.
brew install imagemagick pngquant optipng
On Windows image processing is disabled so there we don't need to install the dependencies, but Git for Windows is nice to have for running scripts.
For more details about build commands see build.sh.
When building locally using npm start
, Fast Mode™ is enabled by
default for the ability to test and iterate quickly. 🚀
In Fast Mode™ we skip processing api-docs/
, images, and take a few
shortcuts -- so the resulting HTML pages are not complete, missing
Uno/UX reference pages and related links. Most things are still fine.
If you need to test a complete build, run this command instead.
npm run start-slow
Rebuilding HTML pages automatically while making changes only works in Fast Mode™.
Type this to see all commands that are available.
npm run
npm run api-docs
- Run
npm install
to install dependencies. - Optional: Run
npm install -D fuse-sdk
to upgrade to latest versions of Fuse SDK modules.- Or, if you wish specific versions you can do that. Just install the versions of
@fuse-open/fuselibs
and/or@fuse-open/uno
that you want. - Or, install a custom artifact, e.g.
https://ci.appveyor.com/api/buildjobs/wqgf7r6oiiwb16ff/artifacts/fuse-open-fuselibs-2.0.0.tgz
. You can find build artifacts on our AppVeyor pages for Uno and Fuselibs. - Or, install another module for adding to our API references.
- Or, use
npm link
for any local modules you're working on. - Run
npm outdated
to see if anything is out of date.
- Or, if you wish specific versions you can do that. Just install the versions of
- Run
npm run api-docs
to update files inapi-docs/
, based on modules installed in step 2. - Run
npm run start-slow
to build new HTML pages, presented at http://localhost:8080/. - Optional: Open a Pull Request if you did something good. :)