Skip to content

Commit 3ea67e4

Browse files
committed
[GR-20548] Link titles improvements to render properly at graalvm.org.
PullRequest: truffleruby/1263
2 parents 3456570 + 5f17626 commit 3ea67e4

15 files changed

+60
-60
lines changed

doc/user/compatibility.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Additionally, TruffleRuby defines:
3636

3737
In the C API, we define a preprocessor macro `TRUFFLERUBY`.
3838

39-
## Features entirely missing
39+
## Features Entirely Missing
4040

4141
#### Continuations and `callcc`
4242

@@ -87,7 +87,7 @@ more explanation on this.
8787

8888
`RubyVM` is not intended for users and is not implemented.
8989

90-
## Features with major differences
90+
## Features with Major Differences
9191

9292
#### Threads run in parallel
9393

@@ -121,7 +121,7 @@ MRI provides some classes that are described in the documentation as being only
121121
available on MRI (C Ruby). We implement these classes if it's practical to do
122122
so, but this isn't always the case. For example `RubyVM` is not available.
123123

124-
## Features with subtle differences
124+
## Features with Subtle Differences
125125

126126
#### Command line switches
127127

@@ -202,7 +202,7 @@ signals are also unavailable on MRI.
202202
When TruffleRuby is run as part of a polyglot application, any signals that are
203203
handled by another language become unavailable for TruffleRuby to trap.
204204

205-
## Features with very low performance
205+
## Features with Very Low Performance
206206

207207
#### `ObjectSpace`
208208

@@ -285,7 +285,7 @@ not clear if this will ever be a priority.
285285
We do not have any plans at the moment to provide support for Rubinius'
286286
extensions to Ruby.
287287

288-
## Features not yet supported in native configuration
288+
## Features Not Yet Supported in Native Configuration
289289

290290
Running TruffleRuby in the native configuration is mostly the same as running
291291
on the JVM. There are differences in resource management, as both VMs use

doc/user/deploying.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If you're attempting to experiment with deploying TruffleRuby to production we'd
44
encourage you to contact us so we can help you understand what is possible at
55
the moment and to help solve any issues for you.
66

7-
## TruffleRuby configurations
7+
## TruffleRuby Configurations
88

99
There are two main configurations of TruffleRuby - *native* and *JVM*. It's
1010
important to understand the different configurations of TruffleRuby, as each has
@@ -35,20 +35,20 @@ If you are running a short-running program you probably want the default,
3535
highest possible performance you probably want the *JVM* configuration, by using
3636
`--jvm`.
3737

38-
## Getting the best startup time performance
38+
### Getting the best startup time performance
3939

4040
To get the best startup time performance in most cases you want to use the
4141
native configuration, which is the default.
4242

43-
## Getting the lowest memory footprint
43+
### Getting the lowest memory footprint
4444

4545
To get the lowest memory footprint you probably initially want to use the native
4646
configuration, but as you get a larger working set of objects you may find that
4747
the simpler garbage collector and current lack of compressed ordinary object
4848
pointers (OOPS) actually increases your memory footprint and you'll be better
4949
off with the JVM configuration using `--jvm` to reduce memory use.
5050

51-
## Getting the best peak performance from TruffleRuby
51+
### Getting the best peak performance from TruffleRuby
5252

5353
To get the best peak performance from TruffleRuby for longer-running
5454
applications we would in most cases recommend the JVM configuration with

doc/user/installing-graalvm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ x86 64-bit systems (note that TruffleRuby does not support Windows yet).
1919

2020
To get the best performance you want to use the Enterprise Edition.
2121

22-
## Installing the base image
22+
## Installing the Base Image
2323

2424
GraalVM starts with a base image which provides the platform for
2525
high-performance language runtimes.
@@ -38,7 +38,7 @@ Whichever edition you get you will get a tarball which you can extract. There
3838
will be a `bin` directory (`Contents/Home/bin` on macOS) which you can add to
3939
your `$PATH` if you want to.
4040

41-
## Installing Ruby and other languages
41+
## Installing Ruby and Other Languages
4242

4343
After installing GraalVM you then need to install the Ruby language into it.
4444
This is done using the `gu` command. The Ruby package is the same for both
@@ -74,7 +74,7 @@ haven't done so already:
7474
gu install native-image
7575
```
7676

77-
## Using a Ruby package manager
77+
## Using a Ruby Manager
7878

7979
Inside the GraalVM is a `jre/languages/ruby` or `languages/ruby` directory which
8080
has the usual structure of a Ruby implementation. It is recommended to add this

doc/user/installing-libssl.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@ If you experience `openssl`-related errors, it might help to recompile the
88
This is done automatically by Ruby managers, and mentioned in the post-install
99
message when installing TruffleRuby via `gu install` in GraalVM.
1010

11-
## RedHat-based: Fedora, Oracle Linux, etc
11+
### RedHat-based: Fedora, Oracle Linux, etc
1212

1313
```bash
1414
$ sudo dnf install openssl-devel
1515
```
1616

17-
## Debian-based: Ubuntu, etc
17+
### Debian-based: Ubuntu, etc
1818

1919
```bash
2020
$ sudo apt-get install libssl-dev
2121
```
2222

23-
## macOS
23+
### macOS
2424

2525
On macOS the system version is too old.
2626

27-
### Homebrew
27+
#### Homebrew
2828

2929
We recommend installing libssl via [Homebrew](https://brew.sh).
3030

3131
```bash
3232
$ brew install openssl
3333
```
3434

35-
### MacPorts
35+
#### MacPorts
3636

3737
MacPorts should also work but is not actively tested.
3838

doc/user/installing-llvm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ version, see [the documentation for that version](https://github.com/oracle/truf
66

77
The `make` utility as well as the dependencies of the toolchain still need to be available to build C and C++ extensions.
88

9-
## RedHat-based: Fedora, Oracle Linux, etc
9+
### RedHat-based: Fedora, Oracle Linux, etc
1010

1111
```bash
1212
$ sudo dnf install make gcc
1313
```
1414

15-
## Debian-based: Ubuntu, etc
15+
### Debian-based: Ubuntu, etc
1616

1717
```bash
1818
$ sudo apt-get install make gcc
1919
```
2020

21-
## macOS
21+
### macOS
2222

2323
On macOS, make sure you have installed the command line developer tools from Xcode:
2424

doc/user/installing-zlib.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
TruffleRuby provides the `zlib` module but not the native `zlib` system
44
library that the module uses.
55

6-
## RedHat-based: Fedora, Oracle Linux, etc
6+
### RedHat-based: Fedora, Oracle Linux, etc
77

88
```bash
99
$ sudo dnf install zlib-devel
1010
```
1111

12-
## Debian-based: Ubuntu, etc
12+
### Debian-based: Ubuntu, etc
1313

1414
```bash
1515
$ sudo apt-get install libz-dev
1616
```
1717

18-
## macOS
18+
### macOS
1919

2020
On macOS the system version can be used.

doc/user/jruby-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ Java classes cannot be re-opened in TruffleRuby.
513513
Java classes cannot be subclassed in TruffleRuby. Use composition or interfaces
514514
instead.
515515

516-
## Extending TruffleRuby using Java
516+
## Extending TruffleRuby Using Java
517517

518518
JRuby supports extensions written in Java. These extensions are written against
519519
an informal interface that is simply the entire internals of JRuby, similar to

doc/user/options.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Features:
4646
TruffleRuby also reads the `RUBYOPT` environment variable, as in standard
4747
Ruby, if run from the Ruby launcher.
4848

49-
## Unlisted Ruby switches
49+
## Unlisted Ruby Switches
5050

5151
MRI has some extra Ruby switches which are aren't normally listed in help output
5252
but are documented in the Ruby manual page.
@@ -59,7 +59,7 @@ but are documented in the Ruby manual page.
5959
the same as --external-encoding=external and optionally --internal-encoding=internal
6060
```
6161

62-
## TruffleRuby options
62+
## TruffleRuby Options
6363

6464
TruffleRuby options are set via `--option=value`, or you can use
6565
`--ruby.option=value` from any launcher. You can omit `=value` to set to `true`.
@@ -83,7 +83,7 @@ run from the Ruby launcher.
8383
`--` or the first non-option argument stops processing of TrufflRuby and VM
8484
options in the same way it stops processing of Ruby arguments.
8585

86-
## VM options
86+
## VM Options
8787

8888
To set options in the underlying VM, use `--vm.`, valid for both the native
8989
configuration and the JVM configuration.
@@ -93,12 +93,12 @@ For example `--vm.Dsystem_property=value` or `--vm.ea`.
9393
To set the classpath, use the `=` notation, rather than two separate arguments.
9494
For example `--vm.cp=lib.jar` or `--vm.classpath=lib.jar`.
9595

96-
## Other binary switches
96+
## Other Binary Switches
9797

9898
Other binaries, such as `irb`, `gem`, and so on, support exactly the same
9999
switches as in standard Ruby.
100100

101-
## Determining the TruffleRuby home
101+
## Determining the TruffleRuby Home
102102

103103
TruffleRuby needs to know where to locate files such as the standard library.
104104
These are stored in the TruffleRuby home directory.

doc/user/polyglot.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ access to other languages.
2323
* [Threading and interop](#threading-and-interop)
2424
* [Embedded configuration](#embedded-configuration)
2525

26-
## Running Ruby code from another language
26+
## Running Ruby Code from Another Language
2727

2828
When you `eval` Ruby code from the [Context API](https://www.graalvm.org/sdk/javadoc/org/graalvm/polyglot/Context.html)
2929
in another language and mark the `Source` as interactive, the same interactive
@@ -34,7 +34,7 @@ The semantics are the same as the Ruby semantics of calling
3434
`INTERACTIVE_BINDING.eval(code)` for every `Context.eval()` call with an
3535
interactive `Source`. This is similar to most REPL semantics.
3636

37-
## Loading code written in foreign languages
37+
## Loading Code Written in Foreign Languages
3838

3939
`Polyglot.eval(id, string)` executes code in a foreign language identified by
4040
its ID.
@@ -45,21 +45,21 @@ identified by its language ID.
4545
`Polyglot.eval_file(path)` executes code in a foreign language from a file,
4646
automatically determining the language.
4747

48-
## Exporting Ruby objects to foreign languages
48+
## Exporting Ruby Objects to Foreign Languages
4949

5050
`Polyglot.export(name, value)` exports a value with a given name.
5151

5252
`Polyglot.export_method(name)` exports a method, defined in the top-level
5353
object.
5454

55-
## Importing foreign objects to Ruby
55+
## Importing Foreign Objects to Ruby
5656

5757
`Polyglot.import(name)` imports and returns a value with a given name.
5858

5959
`Polyglot.import_method(name)` imports a value, which should be `IS_EXECUTABLE`,
6060
with a given name, and defines it in the top-level object.
6161

62-
## Using Ruby objects from a foreign language
62+
## Using Ruby Objects from a Foreign Language
6363

6464
Using JavaScript as an example - the left example is JavaScript, the right one
6565
is the corresponding action it takes on the Ruby object expressed in Ruby code.
@@ -100,7 +100,7 @@ written, a good object to pass is usually a `Struct`, as this will have both the
100100
they will also respond to `object['foo']` and `object['foo'] = value` which
101101
means they will work from other languages sending read and write messages.
102102

103-
## Using foreign objects from Ruby
103+
## Using Foreign Objects from Ruby
104104

105105
`object[name/index]` will read a member from the foreign object.
106106

@@ -144,7 +144,7 @@ foreign object, using its size or length and reading from it.
144144
Where boolean value is expected (e.g. in if conditions) the foreign value is
145145
converted to boolean if possible or considered to be true.
146146

147-
## Accessing Java objects
147+
## Accessing Java Objects
148148

149149
TruffleRuby's Java interop interface is similar to the interface from the
150150
Nashorn JavaScript implementation, as also implemented by Graal.js.
@@ -182,14 +182,14 @@ class Embedding {
182182
}
183183
```
184184

185-
## Using Ruby objects from embedding Java
185+
## Using Ruby Objects from Embedding Java
186186

187187
Ruby objects are represented by the `Value` class when embedded in Java.
188188

189189
### Accessing arrays
190190

191191
```java
192-
boolean hasArrayElements()
192+
boolean hasArrayElements()
193193
Value getArrayElement(long index)
194194
void setArrayElement(long index, Object value)
195195
boolean removeArrayElement(long index)
@@ -210,8 +210,8 @@ boolean removeMember(String identifier)
210210
### Executing procs, lambdas, and methods
211211

212212
```java
213-
boolean canExecute()
214-
Value execute(Object... arguments)
213+
boolean canExecute()
214+
Value execute(Object... arguments)
215215
void executeVoid(Object... arguments)
216216
```
217217

@@ -221,7 +221,7 @@ void executeVoid(Object... arguments)
221221
boolean canInstantiate() {
222222
Value newInstance(Object... arguments)
223223
```
224-
224+
225225
### Accessing primitives
226226

227227
```java
@@ -253,7 +253,7 @@ Ruby strings and symbols are converted to Java strings when they are passed to
253253
foreign languages, and Java strings are converted to Ruby strings when they
254254
are passed into Ruby.
255255

256-
## Threading and interop
256+
## Threading and Interop
257257

258258
Ruby is designed to be a multi-threaded language and much of the ecosystem
259259
expects threads to be available. This may be incompatible with other Truffle

doc/user/reporting-performance-problems.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ show them so it may be a new problem to some people in the Ruby community.
2525
To experiment with how fast TruffleRuby can be we recommend using the
2626
[Enterprise Edition of GraalVM and rebuilding the Ruby executable images](installing-graalvm.md).
2727

28-
## Using the JVM configuration
28+
## Using the JVM Configuration
2929

3030
For the best peak performance, you want to use the JVM configuration, using
3131
`--jvm`. The default native configuration starts faster but doesn't quite reach
@@ -36,7 +36,7 @@ benchmark. If you want to write simpler benchmarks that just run a while loop
3636
with a simple timer (which we would not recommend anyway), then use the default
3737
native mode so that startup and warmup time is shorter.
3838

39-
## How to check for basic performance problems
39+
## How to Check for Basic Performance Problems
4040

4141
If you are examining the performance of TruffleRuby, we would recommend that you
4242
always run with the `--engine.TraceCompilation` flag. If you see
@@ -45,7 +45,7 @@ indicator that something is not working as intended and you may need to examine
4545
why, or ask us to help you do so. If you don't run with this flag Truffle will
4646
try to work around errors and you will not see that there is a problem.
4747

48-
## How to write a performance benchmark
48+
## How to Write a Performance Benchmark
4949

5050
We recommend that you use
5151
[`benchmark-ips`](https://github.com/evanphx/benchmark-ips), by Evan Phoenix, to

0 commit comments

Comments
 (0)