---
id: 2917
title: Moment.js for Dash
slug: moment-js-for-dash
date: '2014-04-07T12:11:43Z'
modified: '2014-04-07T14:38:39Z'
status: publish
type: post
author: pmoelgaard
categories: []
tags:
  - Dash
  - Documentation
  - Moment.js
  - Undocumentation
excerpt: null
canonicalPath: /posts/moment-js-for-dash
featuredImage: null
commentCount: 0
wordCount: 227
readingTimeMinutes: 2
hasMedia: true
hasVideos: false
url: 'https://forwardthinking.pemo.me/posts/moment-js-for-dash'
---
I have decided to add all the documentation I'm using to my setup for offline access, for this I'm using Dash (Dash is an API Documentation Browser and Code Snippet Manager).

![Image](/media/wp/2014/04/dash.png)

Dash is the same docSet standard used by Zeal ("...a simple offline API documentation browser inspired by [Dash](http://kapeli.com/dash/) (OS X app), available for Linux and Windows", [http://zealdocs.org/](http://zealdocs.org/)).

![Image](/media/wp/2014/04/zealdocs-org.png)

For my first docSet I chose to make the documentation for [Moment.js](http://momentjs.com/) available (a javascript date library for parsing, validating, manipulating, and formatting dates).

![Image](/media/wp/2014/04/moment-js.png)

Since the most laborious part of generating a docSet is adding all entries to the searchIndex database (an embedded SQLLite database), I opted for simply embedding the online documentation in an archive and expose it as the docSet in a single resource.

To install the docSet, simply client the link below and it will automatically add the reference to Dash (or Zeal):  
[Custom DashFeed URL for adding the docSet](//http%3A%2F%2Fcdn.nexoes.com%2Fmoment%2Fdocs%2Fdash%2Fmoment.xml)

If you prefer you can also add it manually by adding the following link to the list of docSets:  
[Direct URL to the docSet definition](http://cdn.nexoes.com/moment/docs/dash/moment.xml)

Next step would be to create a script that would allow me to extract the different documentation points from the online documentation and add it to the searchIndex, however for now it fullfills my need to have an easy and structured way to access the documentation when offline.
