apnadkarni / ruff Goto Github PK
View Code? Open in Web Editor NEWDocumentation generator for Tcl
Home Page: https://ruff.magicsplat.com
License: BSD 2-Clause "Simplified" License
Documentation generator for Tcl
Home Page: https://ruff.magicsplat.com
License: BSD 2-Clause "Simplified" License
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
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.
Reminder for rfes - see apnsimple suggestions at https://wiki.tcl-lang.org/page/Ruff%21
For <clone>
in daft appears as a HTML tag.
Add navigation links to right of headers similar to those for classes and procs.
These methods should not be listed in the method table for each class.
In multipage output from a class method heading you can navigate to the class and the Main page but not to the top of the current page. May be use two forms of up arrows to indicate top of page and Main content.
Note links in the class method summary section work fine.
Links of the form
[link text](Section title)
which should show create a link displaying "link text" linking to the section "Section title" do not seem to be recognized.
CAWT for example would like all Office menu links to appear together.
Additional output formats:
In multiple page output format, an index across all pages would be useful
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.
[::ns::Section Heading] links are recognized but not resolved.
At the very least, just document the name and where it forwards to.
Add support for markdown output style
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.
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 ..]]".
Some options are read from passed arguments, others from [program_option]. Make this consistent and sane.
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.
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.
Also, the (optional, default ..) appears after the closing period which looks awkward. Maybe put it in the front instead)
Optional parameters are displayed in random order, neither sorted not the original documented order in source file.
The table links them using < etc. The name in the method element is <
See sample::base class docs
If C inherits or mixes in from X, and X is not being documented, inherited/mixed in methods should be documented as within C.
-pagesplit none|namespace
Will allow for future expansion.
Support ``` delimited code blocks.
Support for == markdown headers, at least in docstrings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.