Skip to content

Commit 38f50d4

Browse files
author
R. Tyler Croy
committed
Link to the full source on the homepage to make the documentation more clear
This also adds links to where somebody can edit the page and easily submit a pull request
1 parent 2c3c500 commit 38f50d4

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

docs/_layouts/base.html.haml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@
3737
= page.title
3838
= content
3939

40-
4140
%hr/
41+
42+
%div#improve
43+
%a{:href => "https://github.com/jruby-gradle/jruby-gradle-plugin/edit/master/docs/#{page.relative_source_path}"}
44+
improve this page

docs/index.adoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Ruby and Java developers alike.
2424
The simplest example is a hello-world from Gradle, using JRuby/Gradle we can
2525
execute a Ruby script, which has Ruby-based dependencies:
2626

27-
.build.gradle
27+
.build.gradle (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/run-simple-ruby-script/build.gradle[full source])
2828
[source, gradle]
2929
----
3030
include::../examples/run-simple-ruby-script/build.gradle[lines=16..30]
3131
----
3232

33-
.print-script.rb
33+
.print-script.rb (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/run-simple-ruby-script/print-script[full source])
3434
[source, ruby]
3535
----
3636
include::../examples/run-simple-ruby-script/print-script.rb[]
@@ -44,25 +44,23 @@ image::images/print-script-output.png[]
4444

4545
=== Packaging some Ruby
4646

47-
.build.gradle
47+
.build.gradle (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/self-executing-jar/build.gradle[full source])
4848
[source, gradle]
4949
----
5050
include::../examples/self-executing-jar/build.gradle[lines=17..33]
5151
----
5252

53-
.entrypoint.rb
53+
.entrypoint.rb (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/self-executing-jar/entrypoint.rb[full source])
5454
[source, ruby]
5555
----
5656
include::../examples/self-executing-jar/entrypoint.rb[]
5757
----
58-
.
58+
5959

6060
Executing `./gradlew jrubyJar` will build a `.jar` file inside of the
6161
`build/libs` directory which can then be invoked:
6262

6363
`% java -jar build/libs/self-executing-jar-jruby.jar`
6464

65-
6665
image::images/self-executing-jar-output.png[]
6766

68-

docs/stylesheets/jrubygradle.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@
2626
#main_nav .on a {
2727
color: #FFF;
2828
}
29+
30+
#improve {
31+
margin-right: 5px;
32+
margin-bottom: 15px;
33+
font-weight: bold;
34+
font-size: 0.8em;
35+
float: right;
36+
}

0 commit comments

Comments
 (0)