Giter Site home page Giter Site logo

expo-docs-dash's Introduction

Expo documentation for Dash

Installation in Dash

To install the Expo documentation in Dash, go to:

Preferences >> Downloads >> User Contributed

This repo is used to generate those docs. You don't need to touch it unless you want to contribute to it.

To update the docset, please read the instructions here (more specifically, "Set up your directory structure"). To generate the docset for your Dash-User-Contributions pull request, you'd use this repo.

Note: If you do wish to update the docset, please notify me by opening an issue. I'd like to double check everything before you send it off to the Dash repo.

Docset Manual Build Instructions

Prerequisites: wget, node and sqlite3. For OS X:

brew install wget node sqlite3

We have to slightly modify the Expo docs to make it easier to format and parse for Dash. Additionally, it will be much quicker then hitting the network for all the pages.

Expo Docs Setup Locally

  1. Clone the Expo repo: git clone https://github.com/expo/expo
  2. npm run setup:docs
  3. Apply the patches in this repo's patches folder to that repo.
  4. cd docs
  5. yarn install
  6. npm run export && npm run export-server

Build Expo Dash Docs

  1. Clone this repo: git clone https://github.com/adrum/expo-docs-dash
  2. npm i
  3. modify src/version with the current version
  4. chmod +x build.sh
  5. npm run build

The script will:

  • Fetch the newest released Expo documentation from http://127.0.0.1:8000/.
  • Parse the doc site into a new SQLite database for Dash. The list of files are hardcoded. Please check src/index.js for more detail.
  • Bundle up the result in a Expo.docset.
  • GZip for Dash contribution

Test the output by loading the Expo.docset (importing it into Dash).

expo-docs-dash's People

Contributors

adrum avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.