mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-18 13:56:53 +00:00
MapillaryJS Documentation
This website is built using Docusaurus 2.
Development Workflow
After cloning MapillaryJS, run yarn install in this directory to fetch the documentation dependencies. Then, you can run several commands:
yarn cicheck for linting/formatting issues.yarn build-modsbuilds themapillary-jslibrary and copies module dependencies used in examples into themodsdirectory. This step is required for building the docs.yarn start-docsstarts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. It omits the API and examples sections for faster iteration. It omits the API and examples sections for faster iteration.yarn buildgenerates static content into thebuilddirectory and can be served using any static contents hosting service.yarn serveserves the static content in thebuilddirectory.yarn build-apibuilds the API reference in thedoc/apifolder spearately. Running this command is not needed for building the static documentation.yarn clearremoves the doc build output.
Deployment
Push to the gh-pages branch.
$ GIT_USER=<Your GitHub username> yarn deploy