Coder Social home page Coder Social logo

fantom-factory / afaskfanny Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 761 KB

Mini search engine for the Fantom reference documentation

Home Page: http://fantom-lang.org/

Fantom 17.73% Shell 0.04% Batchfile 0.02% CSS 82.22%
fantom search-engine

afaskfanny's Introduction

#Ask Fanny v0.0.4

Written in: Fantom pod: v0.0.4 Licence: ISC

Overview

Ask Fanny is a mini search engine for the reference documentation of the Fantom Programming Language - see http://fantom.org/.

It's a library that indexes and ranks all the headings and titles of the core Fantom documentation and libraies for single words, and makes them available as:

  • a programmable API
  • a Command Line Program
  • a Website

Every standard Fantom installation comes complete with examples and reference documentation. Tools such as Explorer let you view that documentation, which is great if you know what you're looking for or wish read it from start to finish like a novel.

But searching can be difficult if you don't know exactly where to look... it is hoped "Ask Fanny" fills that gap.

Install

Install Ask Fanny with the Fantom Pod Manager ( FPM ):

C:\> fpm install afAskFanny

Or install Ask Fanny with fanr:

C:\> fanr install -r http://eggbox.fantomfactory.org/fanr/ afAskFanny

To use in a Fantom project, add a dependency to build.fan:

depends = ["sys 1.0", ..., "afAskFanny 0.0"]

Documentation

Full API & fandocs are available on the Eggbox - the Fantom Pod Repository.

API

The API contains an IndexBuilder that creates an Index which you query for Section results.

index   := IndexBuilder().indexAllPods.build
results := index.askFanny("Fantom")

results.each { echo(it.toPlainText) }

Command Line Program

Ask Fanny may be run from a command line to give instant search results:

> fan afAskFanny Maps

Use the -h flag to list available options.

> fan afAskFanny -h

Website

Ask Fanny is also distributed with a fully functioning web site. To launch it, use the -webserver option from the command line.

> fan afAskFanny -webserver

By default Ask Fanny runs on port 8069 so point your browser at http://localhost:8069/ to view.

The Ask Fanny website is also availble online at http://askfanny.fantomfactory.org.

Fanny

Fanny is the mascot of the Fantom programming language as named by Andy Frank (one of Fantom's creators) in this forum post. The mascot cartoon itself was evolved for the Fantom-Lang website.

Remarks

The "Did you mean?" feature taken from Statistical Spelling Correction by Robert Koeninger.

afaskfanny's People

Contributors

slimerdude avatar

Watchers

James Cloos 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.