The process of conversion involves running a series of hacks and regular expressions to end up with something parse-able by PHP Markdown and GeSHi. The design is pure CSS.
Because of the way GeSHi formats the code, I can’t get the exact same behaviour as in v1. But CSS tweaking is certainly possible and I’ve tried to do an amalgamation, like you suggested, for version 3 below:
In any case, it’s CSS so I can always tweak this after. Right now the CSS injected but once I’m near completion it will be a shared CSS file. I’m just lazy at the moment.
Yes i meanted the latter.
The index itself already existed, the references in the file itself does not, but that would probably mean to index based upon the header type of functions mentioned i guess.
It is looking good, i like the v3.0 version as well.
Been doing some scripting, the documentation is pretty good! For future updates, can we please get a basic search feature? Or I’d even take all APIs in a single html file, so it’s all ctrl+f searchable. Song.API is the the main and largest one, but sometimes you want to check something in the other parts of the API and then have to go back to the index, figure out which one to open, etc.
I would like to suggest a little better structured documentation…
IMHO even using this “pretty-html” version, it’s still a pain in the ass to use it.
I basically miss a staying menu/navigation on the left, and a method index. Even a javascript search would be completely overdope. I mean really documentation standards that where introduced around the early 90’s…
EDIT:
And cross linking would help, too Like, return type is “-> [array of renoise.PatternLine objects]”, <- then clickable "renoise.PatternLine"with a link to that definition.
The navigation could consist of the method index in openable/closable sub-nodes / in a tree structure.
Requires some dev know how: using composer packages instead of copy/paste includes dir, contemporary PHP syntax, and so on… Patches welcome.
Yeah… and perhaps web dev know-how too. I’d be “comfortable” running some command-line stuff on my laptop but “copy to a webserver…”… seems like a bit of a mission.
I wish it would update correctly. One of the advantages of having the documentation in HTML is that it is easy to translate all the information into another language (I mean the descriptions). This allows beginners to understand more quickly the API available to create tools, because they are using their language.
Also, I do not like too much how the jump lines are built in the documentation for the terminal (Documentation/ files.lua). For example:
…
renoise.song().artist, _observable
-> [string]
renoise.song().name, _observable
-> [string]
renoise.song().comments[], _observable
-> [array of strings]
…
It seems easier to read vertically like this:
…
renoise.song().artist, _observable -> [string]
renoise.song().name, _observable -> [string]
renoise.song().comments[], _observable -> [array of strings]
…
In HTML you can play better with these things for a more pleasant reading.Help the eyes to locate the desired code faster…