Giter Site home page Giter Site logo

ruff's People

Contributors

apnadkarni avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ruff's Issues

Operators

Hello @apnadkarni ,
I created several methods operators like this :
method * {args} {}
method + {args} {}
It works with this operators "\ -" but not with above operators.
Is there any workaround ?
Regards

Add an option for dense formatting

Basically leave out the headers in procedural descriptions. A hack way to do this would be through CSS selectors for h3/h4! But "See also" etc. would need to change.

HTML formatter hardcodes markup

HTML formatter hard codes markup when it should use the markdown wrappers. In a similar vein, get rid of _const, _cmd or have them use markdown markup instead.

Localization

What a nice package! I need it in German, so I added localization to the package. I added a -locale option to the ::ruff::document command and added a minimal set of German localizations (for procedures only). I have put the translated strings into ruff.tcl, you may want to have them in a separate file for convenience.

Would be nice to have such thing included into the next official release.

ruff-localization.zip

Document metaclasses

From RZ on the wiki:

Currently only oo::class classes and no metaclasses are recognized in
proc ruff::private::extract_procs_and_classes because of line :

set class_names [[info class instances ::oo::class $pattern]]

May be add an option -metaclasses and do an "[[info class instances $metclass ..]]".

Refactor option processing

Some options are read from passed arguments, others from [program_option]. Make this consistent and sane.

HTML tags with attribute values of empty string are escaped

Reported by Alex that tags were being escaped.

Turns out the problem is with any tag with an empty attribute. So

    <img src="https://aplsimple.github.io/en/tcl/hl_tcl/files/hltcl1.png" alt="x">

is correctly shown but

    <img src='https://aplsimple.github.io/en/tcl/hl_tcl/files/hltcl1.png" alt="">

is (wrongly) escaped.

Incorrect link in class method table

If a class has a inherited method that has the same name as some proc, the class method table in docs links to the proc instead of the inherited method. The method table generation should check that the name refers to a method and not just some proc higher in the hierarchy.

Sample of the problem is the register_plugin method for the class daft::behavior::Server.

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.