mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5962 from jbampton/code-blocks-add-languages
docs: add language `console` to code blocks
This commit is contained in:
@@ -27,7 +27,7 @@ The latest development version of mruby can be downloaded via the following URL:
|
||||
The trunk of the mruby source tree can be checked out with the
|
||||
following command:
|
||||
|
||||
```
|
||||
```console
|
||||
$ git clone https://github.com/mruby/mruby.git
|
||||
```
|
||||
|
||||
@@ -45,7 +45,7 @@ We don't have a mailing list, but you can use [GitHub issues](https://github.com
|
||||
|
||||
For the simplest case, type
|
||||
|
||||
```
|
||||
```console
|
||||
rake all test
|
||||
```
|
||||
|
||||
@@ -57,13 +57,13 @@ There are two sets of documentation in mruby: the mruby API (generated by yard)
|
||||
|
||||
To build both of them, simply go
|
||||
|
||||
```
|
||||
```console
|
||||
rake doc
|
||||
```
|
||||
|
||||
You can also view them in your browser
|
||||
|
||||
```
|
||||
```console
|
||||
rake view_api
|
||||
rake view_capi
|
||||
```
|
||||
|
||||
@@ -527,7 +527,7 @@ After the build, you will get `libmruby.a`. You can link it to your application.
|
||||
For compiler options and library path, you can use `mruby-config` command for
|
||||
convenience. `mruby-config` command prints the configuration used for `libmruby.a`.
|
||||
|
||||
```
|
||||
```console
|
||||
$ mruby-config --help
|
||||
Usage: mruby-config [switches]
|
||||
switches:
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ command with following options:
|
||||
- `--cc` compiler name
|
||||
- `--cflags` options passed to compiler
|
||||
|
||||
```
|
||||
```console
|
||||
$ mruby-config --cflags
|
||||
-std=gnu99 -g -O3 -Wall -DMRB_GC_FIXED_ARENA -I/home/matz/work/mruby/include -I/home/matz/work/mruby/build/host/include
|
||||
```
|
||||
@@ -71,7 +71,7 @@ To retrieve linker options, you can use `mruby-config` with following options:
|
||||
- `--ldflags-before-libs` options passed to linker before linked libraries
|
||||
- `--libs` linked libraries
|
||||
|
||||
```
|
||||
```console
|
||||
$ mruby-config --ldflags
|
||||
-L/home/matz/work/mruby/build/host/lib
|
||||
|
||||
|
||||
Reference in New Issue
Block a user