Giter Site home page Giter Site logo

mudmoh / android-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from testbigorg/android-docs

0.0 1.0 0.0 1.24 GB

Documentation for the various Mapbox SDKs and libraries for Android

Home Page: https://www.mapbox.com/android-docs/

CSS 0.61% JavaScript 0.05% HTML 99.33% Java 0.02%

android-docs's Introduction

Android documentation

Build Status

This repo hosts all of the Android documentation for the Mapbox platform, including the Maps SDK, the Java SDK, the Navigation SDK, and Mapbox Plugins. Visit Mapbox Android Docs to view the live website.

Getting started

Requirements

To host this website locally, you'll need to have Node.js installed and setup via nvm.

Installation

This repository uses git submodules, so it needs to be cloned recursively to include:

git clone --recursive [email protected]:mapbox/android-docs.git

Change your working directory to the cloned repository:

cd android-docs

Use nvm to install and use the version of node specified in .nvmrc:

nvm install
nvm use

Upgrade your version of npm:

npm install -g npm@6

To install site and build dependencies, run:

npm install

Hosting locally

The Android documentation uses Batfish, a static-site generator powered by react and webpack. To get started contributing to the documentation and running the site locally you'll need to navigate to this projects folder and execute:

npm start

This will set up a server running at http://localhost:8080/android/. If you make changes to the source content, your browser should automatically refresh using livereload once you save the file.

Running tests locally

To run the tests locally, run:

npm test

The test suite will lint JavaScript as well as:

If the tests return an error or warning, follow the guidance from the test to fix it.

Updating for SDK releases

To update the site for a Maps SDK or Navigation SDK release:

  1. Run node scripts/update.js <product> <version>. Where :
    • <product> is either maps or navigation
    • <version> is the version number. It must follow the format X.X.X, where X is an integer. Optional: append the version number with -beta.X or -rc.X where X is also an integer.
  2. Commit and push the commits that are created.

Running scripts/update.js will:

Contributing new documentation

If you'd like to add to this repo's Android documentation, please read the contribution guide to learn how to get started.

android-docs's People

Contributors

danesfeder avatar colleenmcginnis avatar katydecorah avatar lshig avatar heystenson avatar davidtheclark avatar danswick avatar lukaspaczos avatar jseppi avatar yunikkk avatar samfader avatar guardiola31337 avatar 1ec5 avatar riastrad avatar jfurrow avatar electrostat avatar kiryldz avatar osana avatar ringerjk avatar bendenen avatar korshaknn avatar adrianababakanian avatar kepta avatar manaswinidas avatar mapboxci avatar snkashis avatar tristen avatar langsmith avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.