mirror of
https://github.com/mapillary/mapillary-js.git
synced 2025-12-08 17:35:55 +00:00
MapillaryJS Documentation
This website is built using Docusaurus 2.
Development Workflow
After cloning MapillaryJS, run yarn install && yarn install-mjs in this directory to fetch the documentation dependencies. Then, you can run several commands:
yarn buildgenerates static content into thebuilddirectory and can be served using any static contents hosting service.yarn serveserves the static content in thebuilddirectory. Navigate tohttp://localhost:3000/mapillary-jsto view the documentation.yarn startstarts 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.yarn build-apibuilds the API reference in thedoc/apifolder spearately. Running this command is not needed for building the static documentation.yarn cicheck for linting/formatting issues.yarn clearremoves the doc build output.yarn install-mjsbuilds themapillary-jslibrary and copies its distribution to thesrc/mapillary-jsdirectory. This step is required for building the docs.
Deployment
Push to the gh-pages branch.
$ GIT_USER=<your GitHub username> yarn deploy