Git Product home page Git Product logo

rstwiki's People

Contributors

csnover avatar dylans avatar kitsonk avatar phiggins42 avatar wkeese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rstwiki's Issues

CodeGlass doesn't handle JS Comments

The following code glass code does not work, with the script failing and throwing that it is missing an }:

.. code-example ::

  .. js ::

    require(["dojo/cldr/monetary", "dojo/dom", "dojo/on", "dojo/domReady!"],
    function(cldrMonetary, dom, on){
      on(dom.byId("monetaryButton"), "click", function(){
        // the ISO 4217 currency code for Euro:
        var iso = "EUR";
        // get monetary data:
        var cldrMonetaryData = cldrMonetary.getData(iso);

        // print out places:
        dom.byId("places").innerHTML = "Places: " + cldrMonetaryData.places;

        // print out round:
        dom.byId("round").innerHTML = "Round: " + cldrMonetaryData.round;
      });
    });

  .. html ::

    <button id="monetaryButton" type="button">Get Monetary data for EUR (Euro)</button>
    <div id="places"></div>
    <div id="round"></div>

While the following does work:

.. code-example ::

  .. js ::

    require(["dojo/cldr/monetary", "dojo/dom", "dojo/on", "dojo/domReady!"],
    function(cldrMonetary, dom, on){
      on(dom.byId("monetaryButton"), "click", function(){
        var iso = "EUR";
        var cldrMonetaryData = cldrMonetary.getData(iso);

        dom.byId("places").innerHTML = "Places: " + cldrMonetaryData.places;

        dom.byId("round").innerHTML = "Round: " + cldrMonetaryData.round;
      });
    });

  .. html ::

    <button id="monetaryButton" type="button">Get Monetary data for EUR (Euro)</button>
    <div id="places"></div>
    <div id="round"></div>

The only difference is the remove of the comments in the JS Code.

Add "Edit this Code" feature

As a developer, the most useful thing for me are code samples. Being able to quickly tinker with these code samples helps a ton. So I would like the ability to export the code samples in the Dojo documentation to a JSFiddle or JSBin or CodePen IO.

Eventually I would also like a directory of working Dojo code samples. I think this will help people who are new or unfamiliar with Dojo a lot.

See:

Display a Fiddle from POST: http://doc.jsfiddle.net/api/post.html

AngularJS JSFiddle Examples: https://github.com/angular/angular.js/wiki/JsFiddle-Examples

Wiki should have "register" and "how to edit" links beside login

It's not clear that the website is a wiki that can be edited by people with a dojofoundation.com account from the main page. The only information showing how to register is shown after clicking on the "login" link, which usually wouldn't occur to people who don't have an account. I didn't know about it until wildbill told me how to do it on IRC.

Adding some text indicating that the docs can be improved and edited if you register would help a lot to improve participation and involvement.

HyperLink in api-doc Directive

Currently, when types are specified in returned XML, and they refer to other Dojo Types, it does not automatically link to those pages within the reference guide. It should.

Issue with CodeGlass on Chrome

I am having issues with rstwiki CodeGlass recent changes on Chrome 17. I get the following in the console:

Resource interpreted as Script but transferred with MIME type text/x-js: "http://livedocs.dojotoolkit.org/_static/dojo/dojo.js".

And the CodeGlass pane come up blank and I don't get any other indication that there is an issue. This is both my local installation and the livedocs one, but everything seems to be perfectly merry in FF10.

CodeGlass and issues with IE9/IE8

It appears that the built wiki, some examples aren't working in IE because IE complains:

SCRIPT5: Access is denied.

This is normally a XD issue, but I checked in the debug console on one example and it was clearly trying to load a local resource of ../../_static/js/dojo/parser.js. It could be that this is going "outside" of the "zone" that IE thinks is safe, and so I potentially need to play with the baseUrl of the configuration to get the loader to not traverse too high up the stack. Other browsers seem to handle this fine.

I also need to confirm if this is an issue on rstWiki (livedocs).

Quick Search functionality Issues with AMD

When searching for "dojo/on" the search feature of Sphinx does not return any meaningful results. I personally have noticed this with other AMD package names as well. Don't know if there is anything that can be done. Will investigate.

Work on multiple document repo at a time

A single instance of rstwiki should be able to manage and serve up multiple repos at the same time, so the following would be possible:

Where the first two would be off the same document repo, but the last one would point at a different document repo (which would be a different checked out branch of the same git repo).

It should support editing and pushing on both repos.

Issues with djConfig

In code glass I am getting issues when it tries to parse :djConfig: options... It appears it does not accept strings.

I haven't taken a look yet to see why/how it is broken (as my python isn't that good).

The following works:

  .. code-example ::
    :djConfig: async: true

The following doesn't work:

  .. code-example ::
    :djConfig: extraLocale: "en-gb"

Nor:

  .. code-example ::
    :djConfig: extraLocale: 'en-gb'

In both cases it throws some sort of error about string termination.

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.