Giter Club home page Giter Club logo

rubyfaux's Introduction

Rubyfaux

Website ยท Development

Welcome

Rubyfaux is a Shomen-based documentation browser with an old-school ruby-lang.org style.

Features

  • Old-school ruby-lang.org style gives documentation an offical look-and-feel.
  • Quicksearch sidebar makes it easy to locate classes and methods.
  • Built on JQuery, JQuery Templates and other well supported Javascript tools.

How To Use

Generate a shomen .json file for you project.

$ cd ..
$ shomen rdoc > site/foo-1.0.0.json

See Shomen project to learn more about this.

To locally view your documentation, clone this repo to your project's webite directory (or gh-pages branch if you are crazy like that).

$ cd myproject
$ git clone http://rubyworks.github.com/rubyfaux.git site
$ cd site
$ rm -rf .git

By default it will look for doc.json so you can link that to the latest documentation file.

$ ln -s foo-1.0.0.json doc.json

Now fire up local directory webserver. The shomen command provides one (must have sinatra installed):

$ shomen server

You can also view the files directly if your browser supports local ajax calls (Firefox works. Chrome? Not so much).

$ firefox index.html

Now then, customize that template to your little hearts desire!

To view you documentation remotely, firs publish you Shomen .json file, presumably to your website, but it can be anywhere on the internet that will accept loading via ajax.

Now navigate over to the Rubyfaux site setting the doc property in the URL to the location of the file, e.g.

http://rubyworks.github.com/rubyfaux?doc=http://myorg.github.com/myapp/myapp-1.0.0.json

And there you are.

Note that if the documented project is large so too will be the Shomen .json file. In which case it take a moment for the browser to load the file. For large projects as such it is a good idea to divide documentation into a set of smaller files, rather than one big file.

Legalease

Copyright (c) 2011 Thomas Sawyer

Available according to the terms of the BSD-2-Clause license.

External libraries used:

rubyfaux's People

Contributors

trans avatar

Stargazers

Dr. William Effinger avatar

Watchers

 avatar James Cloos avatar  avatar

rubyfaux's Issues

Loads JS over HTTP, which is now blocked by default in Firefox

I was trying to read the documentation for Ruby Facets, but was prevented by Firefox's security measures. Here are the entries from the console:

Blocked loading mixed active content "http://code.jquery.com/jquery-1.6.2.min.js"[Learn More] rubyfaux
Blocked loading mixed active content "http://yandex.st/highlightjs/6.0/highlight.min.js"[Learn More] rubyfaux
Blocked loading mixed active content "http://yandex.st/highlightjs/6.0/styles/default.min.css"[Learn More] rubyfaux
ReferenceError: jQuery is not defined jquery.history.js:194
ReferenceError: jQuery is not defined quicksearch.js:28
ReferenceError: $ is not defined rubyfaux:51
The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page.

And to note, the URL https://rubyworks.github.io/rubyfaux/?doc=http://rubyworks.github.io/facets/docs/facets-2.9.3/core.json would probably have to change. Both to reflect HTTPS, and that facets 3.0.0 was just released. ๐Ÿ˜„

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.