Permalink
Browse files

[enhance] doc/book: Better 'Run' links.

They again look good in HTML and work in PDF version of the book.
The only downside is that now the examples open in the same, not in
a new window.
  • Loading branch information...
1 parent b67e09a commit 3185cd1f1a21ff6f7116af636bb1694aa1f84978 @akoprow akoprow committed Aug 17, 2011
@@ -38,7 +38,7 @@ If you are curious, this is the full source code of the application:
------------------------
include::hello_chat.opa[]
------------------------
-http://tutorials.opalang.org/hello_chat[Run]
+[run]#http://tutorials.opalang.org/hello_chat[Run]#
In this listing, we define the communication infrastructure for the chatroom,
the user interface, and finally, the main application. In the rest of the
@@ -593,7 +593,7 @@ As a summary, let us recapitulate the source file:
------------------------
include::hello_chat.opa[]
------------------------
-http://tutorials.opalang.org/hello_chat[Run]
+[run]#http://tutorials.opalang.org/hello_chat[Run]#
All this in 20 effective lines of code (without the CSS). Note that, in this
final version, we have removed some needless parentheses, which were useful
@@ -34,7 +34,7 @@ If you are curious, this is the full source code of our application:
------------------------
include::hello_recaptcha_app.opa[]
------------------------
-http://tutorials.opalang.org/hello_recaptcha[Run]
+[run]#http://tutorials.opalang.org/hello_recaptcha[Run]#
Of course, since the features are provided by Google reCaptcha, the most
interesting aspects of the code are not to be found in the source of the
@@ -776,7 +776,7 @@ To test the API, we may write a simple application:
------------------------
include::hello_recaptcha_app.opa[]
------------------------
-http://tutorials.opalang.org/hello_recaptcha[Run]
+[run]#http://tutorials.opalang.org/hello_recaptcha[Run]#
With the exception of directive +@server_private+, this listing should not
surprise you. Here, we placed directive +@server_private+ as a sanity check, to
@@ -42,7 +42,7 @@ If you are curious, this is the full source code of the REST wiki server:
-------------
include::hello_wiki_rest.opa[]
-------------
-http://tutorials.opalang.org/hello_wiki_rest[Run]
+[run]#http://tutorials.opalang.org/hello_wiki_rest[Run]#
We will now walk through the concepts introduced in this listing.
@@ -183,7 +183,7 @@ And with this, we are done! Our wiki can now be scripted by external web applica
----------------
include::hello_wiki_rest.opa[]
----------------
-http://tutorials.opalang.org/hello_wiki_rest[Run]
+[run]#http://tutorials.opalang.org/hello_wiki_rest[Run]#
All in all, the changes required a dozen lines of code.
@@ -413,7 +413,7 @@ If you are curious, this is the full source code of the REST wiki client (which
-------------
include::hello_wiki_rest_client_customizable.opa[]
-------------
-http://tutorials.opalang.org/hello_wiki_rest_client[Run]
+[run]#http://tutorials.opalang.org/hello_wiki_rest_client[Run]#
The web client
~~~~~~~~~~~~~~
@@ -666,7 +666,7 @@ With this, your client wiki is complete:
----------------
include::hello_wiki_rest.opa[]
----------------
-http://tutorials.opalang.org/hello_wiki_rest[Run]
+[run]#http://tutorials.opalang.org/hello_wiki_rest[Run]#
Launch the server wiki, launch the client wiki on a different port (use option
+--server-port+ to select a port) and behold, you can edit your wiki from two
@@ -899,7 +899,7 @@ The full source code follows:
--------------
include::hello_wiki_rest_client_customizable.opa[]
--------------
-http://tutorials.opalang.org/hello_wiki_rest_client[Run]
+[run]#http://tutorials.opalang.org/hello_wiki_rest_client[Run]#
Exercises
~~~~~~~~~
@@ -35,7 +35,7 @@ If you are curious, this is the full source code of the application.
------------------------
include::hello_wiki.opa[]
------------------------
-http://tutorials.opalang.org/hello_wiki[Run]
+[run]#http://tutorials.opalang.org/hello_wiki[Run]#
In this listing, we define a database for storing the content of the pages in a
safe format, we define the user interface and finally, the main application. In
@@ -400,7 +400,7 @@ As a summary, let us recapitulate the source file:
------------------------
include::hello_wiki_simple.opa[]
------------------------
-http://tutorials.opalang.org/hello_wiki[Run]
+[run]#http://tutorials.opalang.org/hello_wiki[Run]#
This is a total of 30 effective lines of code + CSS.
View
@@ -396,15 +396,14 @@ pre {
*/
}
-
-span.run, span.see {
+span.run {
border: 1px solid black;
padding: 8px;
font-size: 1.2em;
border-radius: 8px;
background: #DFD;
display: inline;
position: relative;
- top: -45px;
+ top: -62px;
float: right;
}

0 comments on commit 3185cd1

Please sign in to comment.