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

Seb via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Feb 18 08:40:32 PST 2017


On Saturday, 18 February 2017 at 13:46:10 UTC, Sönke Ludwig wrote:
> 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.

Yeah the regex trick doesn't seem to work that well:

-> https://github.com/dlang/dlang.org/pull/1575 (disables the 
`assert` transformation for now and also changes the output to 
pre)


More information about the Digitalmars-d-announce mailing list