Allow to run ddox unittest examples#1532
Conversation
|
Preview e.g. here |
|
Hmm there's a bit of weirdness hapenning - the newest version of ddox seems to remove empty newlines in unittest blocks: with ddox 0.15.15 with ddox 0.15.17 |
|
@wilzbach: It appears to be the macro processing added by the |
|
So looking forward to this. |
|
Okay, there is 0.15.18 now, which uses |
360ef08 to
8d18fa7
Compare
Anything blocking this? :) |
Ping @andralex @s-ludwig - I found a small issue: When there's a real ddoc comment like for the second example of among, the However, it's not a big problem and I added a simple workaround. |
|
I'll just take a leap of faith here! |
Looks good so far: http://dlang.org/library-prerelease/std/algorithm/searching/min_element.html If there aren't any issues with this in next two weeks, we could enable it for the stable documentation with the 2.073 release. |



Pretty straight forward after dlang/ddox#138
FYI: @s-ludwig for some Ddoc magic reason one can wrap the code block with ddox :)
It uses the same script as for ddoc and thus also the same blacklist / configuration & is for now only enabled in the prerelease docs.
I did a minor UI tweak as well and moved the buttons to the left as this was suggested on the NG.
Ah and the reason for the rename to
optArgumentsis that JS doesn't has any concept of scoping - it's time that D conquers the web!