New (page-per-artifact) standard library doc examples are now editable and runnable

Sönke Ludwig via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Feb 18 05:46:10 PST 2017


Am 18.02.2017 um 14:43 schrieb Sönke Ludwig:
> Am 17.02.2017 um 22:07 schrieb Dmitry Olshansky:
>> On 2/17/17 6:06 AM, Seb wrote:
>>> On Saturday, 7 January 2017 at 16:12:49 UTC, Andrei Alexandrescu wrote:
>>>> Following https://github.com/dlang/dlang.org/pull/1532, the new-style
>>>> docs now also allow editing and running examples. Start at
>>>> http://dlang.org/library-prerelease/ and go anywhere to check it out.
>>>>
>>
>> Broken on the first example I tried :(
>>
>> http://dlang.org/library-prerelease/std/algorithm/searching/find.html
>>
>> ---
>> Dmitry Olshansky
>
> The example got cut off two or three characters too early, compared with
> the source unit test. I'll have to check if this is an issue with DDOX,
> or with the JSON output.

Hm, okay, false alert. The characters are there in the page sources and 
get cut off by the JS that transforms the HTML.


More information about the Digitalmars-d-announce mailing list