Git Product home page Git Product logo

doc_my_routes's Issues

Support anchor links to individual enpoints

I'd like to be able to link directly to individual endpoints in the documentation. This helps with communication among team members.

I would suggest placing an anchor element beside each endpoint with a href for the endpoint. Something like:

<a href="[CURRENT_URL]#[VERB][PATH]>[SOME SORT OF LINK ICON</a>

Support HTML5 details tag-like behaviour on Firefox and IE

The HTML5 details tag is not supported on Firefox and IE.

We can add an option emulate_details_tag that would inject in the full page a custom Javascript that emulates the folding behaviour of the details tag.

If the option is set, that Javascript is then included in the page.
If format = :partial_html is provided, the Javascript is shipped as well on a separate file.

It's then up to the user to decide whether she wants a fully js-free page or broader compatibility.

Provide a render_as_partial option

When the option is set, instead of generating a full HTML page we will generate a div that can be embedded in custom code.

For instance:

DocMyRoutes.configure do |config|
  ...
  config.render_as_partial = true
end

will generate an embedded partial.

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.