Skip to content

Commit 6291b55

Browse files
committed
Add links to documentation in README.md
The documentation table is generated by the `rake doc:update-index` command. The following conditions must be met for links to be added to the documentation table. - The file must be placed under the `doc/` directory - The file must have the extension `.md` - The file must be written at the top of the file with `<! -- summary: ANY-TEXT -->`
1 parent 90764b1 commit 6291b55

13 files changed

Lines changed: 69 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,27 @@ extensions in C and/or Ruby. For a guide on how to use mrbgems, consult the
8585
[mrbgems.md](doc/guides/mrbgems.md) file, and for example code, refer to the
8686
[examples/mrbgems/](examples/mrbgems) folder.
8787

88+
## Index of Document
89+
90+
<!--
91+
This section is generated by `rake doc:update-index`.
92+
All manual changes will get lost.
93+
-->
94+
95+
<!-- BEGIN OF MRUBY DOCUMENT INDEX -->
96+
- [About the Limitations of mruby](doc/limitations.md)
97+
- [About the Compile](doc/guides/compile.md)
98+
- [About the Debugger with the `mrdb` Command](doc/guides/debugger.md)
99+
- [About GC Arena](doc/guides/gc-arena-howto.md)
100+
- [About Linking with `libmruby`](doc/guides/link.md)
101+
- [About Memory Allocator Customization](doc/guides/memory.md)
102+
- [About Build-time Configurations](doc/guides/mrbconf.md)
103+
- [About the Build-time Library Manager](doc/guides/mrbgems.md)
104+
- [About the Symbols](doc/guides/symbol.md)
105+
- [Internal Implementation / About Value Boxing](doc/internal/boxing.md)
106+
- [Internal Implementation / About mruby Virtual Machine Instructions](doc/internal/opcode.md)
107+
<!-- END OF MRUBY DOCUMENT INDEX -->
108+
88109
## License
89110

90111
mruby is released under the [MIT License](LICENSE).

doc/guides/compile.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About the Compile -->
2+
13
# Compile
24

35
mruby uses Rake to compile and cross-compile all libraries and

doc/guides/debugger.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About the Debugger with the `mrdb` Command -->
2+
13
# How to Use the mruby Debugger
24

35
copyright (c) 2014 Specified Non-Profit Corporation mruby Forum

doc/guides/gc-arena-howto.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About GC Arena -->
2+
13
# How to use `mrb_gc_arena_save()`/`mrb_gc_arena_restore()`/`mrb_gc_protect()`
24

35
_This is an English translation of [Matz's blog post][matz blog post]

doc/guides/link.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About Linking with `libmruby` -->
2+
13
# Linking `libmruby` to your application
24

35
You have two ways to link `libmruby` to your application.

doc/guides/memory.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About Memory Allocator Customization -->
2+
13
# Memory Allocation
24

35
There are three methods to customize memory allocation in mruby.

doc/guides/mrbconf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About Build-time Configurations -->
2+
13
# mruby configuration macros
24

35
## The configuration file

doc/guides/mrbgems.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About the Build-time Library Manager -->
2+
13
# mrbgems
24

35
mrbgems is a library manager to integrate C and Ruby extensions in an easy and

doc/guides/symbol.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About the Symbols -->
2+
13
# Symbols
24

35
Symbols in `mruby` C source code is represented by `mrb_sym` which is alias of

doc/internal/boxing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- summary: About Value Boxing -->
2+
13
# Boxing
24

35
The mruby objects and data are represented by C data type `mrb_value`. There are three options how to pack the data values in the `mrb_value`.

0 commit comments

Comments
 (0)