Code Monkey home page Code Monkey logo

gobyexample.docset's Introduction

GoByExample Dash DocSet

This is a copy of gobyexample adapted for Dash.

Dash is a macOS documentation viewer with offline capabilities. As you can see, it's pretty easy to extend and add custom HTML based documentation into the app.

How to use

  1. Clone this repository with submodules:
  • git clone --recursive https://github.com/pvtmert/gobyexample.docset
  • If you missed --recursive by mistake, you can do;
  • git submodule update --init --recursive
  1. Create/initialize indexes using make -C Contents clean index

  2. Add this to the Dash;

  • Open Dash,
  • Open Preferences (CMD+,),
  • In the DocSets tab,
  • Click little + button on lower-left corner,
  • Select Add local Docset,
  • Point to this repository.

How is this repo works.

Firstly, when cloned, thanks to the magic of Info.plist and .docset extension, Dash will be handling it if installed properly.

I did not want to clutter up the repository by including SQLite3 indexes. Also, they might change in the future in the upstream repository.

The upstream repository added as a submodule, to update it, you can execute make -C Contents update.

  • Use make -C Contents clean to remove index.
  • Use make -C Contents index to create index.

Note: index re-creation is needed after updating the submodule.

How index getting created

The upstream repository already includes prebuild HTML files inside the public directory in its root.

There is a file called examples.txt, which contains page titles in each line.

Even though this is not a stable and reliable way to extract, their convention is just removing punctuation, adding dashes (-) instead of spaces to the lowercased title.

So, Exec'ing Processes becomes execing-processes.

The index rule of makefile creates necessary tables and constraints. Then loops over the examples.txt to generate proper SQL with basic shell utilities.

Reporting Bugs...

As in any software, bugs are highly probable and scared of light. If you find them, please open an issue with a list of steps to reproduce.

If you also fix them, pull-requests are very-much welcome!

License

Do whatever you want. I neither own Dash or gobyexample. Keep in mind that Dash is neither free-software nor open-source. It has a trial period and nags you with your time after that period ends. However, you can use it as long as you want.

You should consult respective repositories and their owners regarding permissions.

gobyexample.docset's People

Stargazers

 avatar

Watchers

 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.