Coder Social home page Coder Social logo

Comments (3)

chrisgrieser avatar chrisgrieser commented on September 26, 2024

Thanks for this amazingly useful plugin, I have no idea how it works, but happy to contribute once I understand how that could be done.

You're welcome! It's not too complex, most of the work is done by Alfred. What this workflow does is to look through some sort of index of documentation sites (e.g. a /docs folder in a GitHub repo) and re-format the list of files into a JSON file that Alfred understands. In most cases, this is less than 40 lines of code per documentation site. See for example the script fetching eslint docs sites from the eslint repo.

Those scripts do not need to be written in JavaScript, any language that outputs stringified JSON works. Though, it should be languages for which binaries are pre-installed on Mac, as this would otherwise introduce extra dependencies for this workflow to work. (Effectively, this means Python, JXA (Apple-flavored JavaScript), and Ruby I believe.)

Since I am not familiar with Kotlin, I'd refrain from creating the docs-search for it myself anyway, so you are welcome to add it! :)

from alfred-docs-searches.

chrisgrieser avatar chrisgrieser commented on September 26, 2024

I am going to close this since this issue is not actionable – however, you are nonetheless still welcome to contribute, as outlined above.

from alfred-docs-searches.

chrisgrieser avatar chrisgrieser commented on September 26, 2024

With version 2.0, this workflow has been overhauled to include all devdocs, meaning Kotlin is now supported.

https://github.com/chrisgrieser/alfred-docs-searches/releases/download/2.0.0/alfred-docs-searches.alfredworkflow

from alfred-docs-searches.

Related Issues (8)

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.