Re: Many documentation examples can now be run online

2016-12-25 Thread Saurabh Das via Digitalmars-d-announce
On Saturday, 24 December 2016 at 06:55:37 UTC, Seb wrote: On Saturday, 24 December 2016 at 06:08:49 UTC, Saurabh Das wrote: [...] Thanks for your feedback :) [...] Sure - that should be fairly trivial. [...] Yes, that would be pretty nice to have. Unfortunately the maintainer of DPaste

Re: Many documentation examples can now be run online

2016-12-23 Thread Seb via Digitalmars-d-announce
On Saturday, 24 December 2016 at 06:08:49 UTC, Saurabh Das wrote: On Saturday, 24 December 2016 at 00:04:54 UTC, Seb wrote: Hehe, that's already in the queue: https://github.com/dlang/dlang.org/pull/1529 This is really wonderful. An excellent feature for new users – lowers the cost of "just

Re: Many documentation examples can now be run online

2016-12-23 Thread safety0ff via Digitalmars-d-announce
On Saturday, 24 December 2016 at 06:15:16 UTC, safety0ff wrote: I agree the button placement should be improved, I think they should be immediately to the right of "Examples:" e.g. "Examples: [Edit][Run]" Which makes it more clear that the examples can be run & edited. I didn't see that th

Re: Many documentation examples can now be run online

2016-12-23 Thread safety0ff via Digitalmars-d-announce
On Saturday, 24 December 2016 at 06:08:49 UTC, Saurabh Das wrote: Feedback: 1. It will be aesthetically better if the edit/run buttons are inside the code box, say just inside the right top corner. I agree the button placement should be improved, I think they should be immediately to the ri

Re: Many documentation examples can now be run online

2016-12-23 Thread Saurabh Das via Digitalmars-d-announce
On Saturday, 24 December 2016 at 00:04:54 UTC, Seb wrote: On Friday, 23 December 2016 at 23:52:48 UTC, Johan Engelen wrote: On Tuesday, 20 December 2016 at 07:04:38 UTC, Seb wrote: https://github.com/dlang/dlang.org/pull/1527 Nice. It's pretty awesome! When clicking the "edit" button, a new

Re: Many documentation examples can now be run online

2016-12-23 Thread Seb via Digitalmars-d-announce
On Friday, 23 December 2016 at 23:52:48 UTC, Johan Engelen wrote: On Tuesday, 20 December 2016 at 07:04:38 UTC, Seb wrote: https://github.com/dlang/dlang.org/pull/1527 Nice. It's pretty awesome! When clicking the "edit" button, a new box appears with the example's code in it but editable. T

Re: Many documentation examples can now be run online

2016-12-23 Thread Johan Engelen via Digitalmars-d-announce
On Tuesday, 20 December 2016 at 07:04:38 UTC, Seb wrote: https://github.com/dlang/dlang.org/pull/1527 Nice. It's pretty awesome! When clicking the "edit" button, a new box appears with the example's code in it but editable. Then when clicking "run", the editted code disappears (it's saved f

Re: Many documentation examples can now be run online

2016-12-23 Thread Mark via Digitalmars-d-announce
On Monday, 19 December 2016 at 17:50:17 UTC, Seb wrote: On Monday, 19 December 2016 at 17:44:29 UTC, Andrei Alexandrescu wrote: Take a look e.g. at https://dlang.org/phobos-prerelease/std_algorithm_iteration.html. Examples now have "Edit" and "Run" buttons that allow you to play with them online

Re: Many documentation examples can now be run online

2016-12-20 Thread Nordlöw via Digitalmars-d-announce
On Monday, 19 December 2016 at 17:50:17 UTC, Seb wrote: I would like to add that this is in an experimental/testing stage and hopefully will get stable with the next release ;-) Great work, Seb!

Re: Many documentation examples can now be run online

2016-12-20 Thread Nordlöw via Digitalmars-d-announce
On Monday, 19 December 2016 at 17:44:29 UTC, Andrei Alexandrescu wrote: Take a look e.g. at https://dlang.org/phobos-prerelease/std_algorithm_iteration.html. Examples now have "Edit" and "Run" buttons that allow you to play with them online and see what they output. Changes for the ddox version f

Re: Many documentation examples can now be run online

2016-12-19 Thread Seb via Digitalmars-d-announce
On Tuesday, 20 December 2016 at 02:25:06 UTC, Joakim wrote: When all tests pass, would be better if it said that, rather than "No output," which it says now. Excellent idea -> https://github.com/dlang/dlang.org/pull/1527 :)

Re: Many documentation examples can now be run online

2016-12-19 Thread Seb via Digitalmars-d-announce
On Tuesday, 20 December 2016 at 06:16:23 UTC, Timothee Cour wrote: is it properly sandboxed / hacking proof? quick tests: ``` import std.process; auto msg="sleep 10"; executeShell(msg).output.writeln; ``` correctly results in `Application output (9: Killed)` "ls -al .." => permission denied

Re: Many documentation examples can now be run online

2016-12-19 Thread Seb via Digitalmars-d-announce
On Tuesday, 20 December 2016 at 01:34:30 UTC, Soulsbane wrote: On Monday, 19 December 2016 at 19:11:26 UTC, Picaud Vincent wrote: On Monday, 19 December 2016 at 18:54:56 UTC, Jakub Szewczyk wrote: It looks great, but I think that the source code should not be hidden when pressing the Run butt

Re: Many documentation examples can now be run online

2016-12-19 Thread Timothee Cour via Digitalmars-d-announce
is it properly sandboxed / hacking proof? quick tests: ``` import std.process; auto msg="sleep 10"; executeShell(msg).output.writeln; ``` correctly results in `Application output (9: Killed)` "ls -al .." => permission denied "ls /usr/bin/ld" => -rwxr-xr-x 2 0 0 834648 Jan 3 2013 /usr/bin/l

Re: Many documentation examples can now be run online

2016-12-19 Thread Joakim via Digitalmars-d-announce
On Monday, 19 December 2016 at 17:50:17 UTC, Seb wrote: On Monday, 19 December 2016 at 17:44:29 UTC, Andrei Alexandrescu wrote: Take a look e.g. at https://dlang.org/phobos-prerelease/std_algorithm_iteration.html. Examples now have "Edit" and "Run" buttons that allow you to play with them online

Re: Many documentation examples can now be run online

2016-12-19 Thread Soulsbane via Digitalmars-d-announce
On Monday, 19 December 2016 at 19:11:26 UTC, Picaud Vincent wrote: On Monday, 19 December 2016 at 18:54:56 UTC, Jakub Szewczyk wrote: It looks great, but I think that the source code should not be hidden when pressing the Run button, instead the application output box should appear above/belo

Re: Many documentation examples can now be run online

2016-12-19 Thread Picaud Vincent via Digitalmars-d-announce
On Monday, 19 December 2016 at 18:54:56 UTC, Jakub Szewczyk wrote: It looks great, but I think that the source code should not be hidden when pressing the Run button, instead the application output box should appear above/below the source code :-) +1 Otherwise that is great!

Re: Many documentation examples can now be run online

2016-12-19 Thread unDEFER via Digitalmars-d-announce
Excellent work, thank you!

Re: Many documentation examples can now be run online

2016-12-19 Thread Jakub Szewczyk via Digitalmars-d-announce
On Monday, 19 December 2016 at 17:44:29 UTC, Andrei Alexandrescu wrote: Take a look e.g. at https://dlang.org/phobos-prerelease/std_algorithm_iteration.html. Examples now have "Edit" and "Run" buttons that allow you to play with them online and see what they output. Changes for the ddox version f

Re: Many documentation examples can now be run online

2016-12-19 Thread Seb via Digitalmars-d-announce
On Monday, 19 December 2016 at 17:44:29 UTC, Andrei Alexandrescu wrote: Take a look e.g. at https://dlang.org/phobos-prerelease/std_algorithm_iteration.html. Examples now have "Edit" and "Run" buttons that allow you to play with them online and see what they output. Changes for the ddox version f

Many documentation examples can now be run online

2016-12-19 Thread Andrei Alexandrescu via Digitalmars-d-announce
Take a look e.g. at https://dlang.org/phobos-prerelease/std_algorithm_iteration.html. Examples now have "Edit" and "Run" buttons that allow you to play with them online and see what they output. Changes for the ddox version forthcoming. Related: https://github.com/dlang/dlang.org/pull/1297,