Skip to content

Commit c362194

Browse files
committed
Update README
1 parent fe2735b commit c362194

File tree

1 file changed

+30
-31
lines changed

1 file changed

+30
-31
lines changed

README.md

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
ExtUnix OCaml library
2-
=====================
1+
# ExtUnix OCaml library
32

4-
[![Build status](https://github.com/ygrek/extunix/actions/workflows/main.yml/badge.svg)](https://github.com/ygrek/extunix/actions)
5-
[![OCaml-CI Build Status](https://img.shields.io/endpoint?url=https://ocaml.ci.dev/badge/ygrek/extunix/master&logo=ocaml)](https://ocaml.ci.dev/github/ygrek/extunix)
3+
[![Build Status](https://github.com/ygrek/extunix/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/ygrek/extunix/actions/workflows/main.yml?branch=master)
4+
[![OCaml-CI Build Status](https://img.shields.io/endpoint?url=https%3A%2F%2Focaml.ci.dev%2Fbadge%2Fygrek%2Fextunix%2Fmaster&logo=ocaml)](https://ocaml.ci.dev/github/ygrek/extunix)
65

76
A collection of thin bindings to various low-level system API.
87

@@ -14,17 +13,15 @@ Our motto: "Be to Unix, what extlib is to stdlib"
1413

1514
Homepage: <https://ygrek.org/p/ocaml-extunix/>
1615

17-
Why?
18-
----
16+
## Why?
1917

2018
Most of the system API don't deserve fully fledged library.
2119

2220
The ExtUnix project aims to collect these in one place. Read the
2321
"[ExtUnix integration requirements](#extunix-integration-requirements)"
2422
to know what kind of system API we can integrate.
2523

26-
Installation
27-
------------
24+
## Installation
2825

2926
Dependencies :
3027

@@ -33,29 +30,35 @@ Dependencies :
3330

3431
Build and install:
3532

36-
make
37-
make install
33+
``` shell
34+
make
35+
make install
36+
```
3837

3938
Alternatively use the underlying Dune build system directly (plain ocaml,
4039
no sh and make needed):
4140

42-
dune build @install
43-
41+
``` shell
42+
dune build @install
43+
```
4444
Usage example:
4545

46-
$ ocaml
47-
# #use "topfind";;
48-
# #require "extunix";;
49-
# module U = ExtUnix.Specific;;
50-
# U.ttyname Unix.stdout;;
51-
- : string = "/dev/pts/8"
46+
``` console
47+
$ ocaml
48+
# #use "topfind";;
49+
# #require "extunix";;
50+
# module U = ExtUnix.Specific;;
51+
# U.ttyname Unix.stdout;;
52+
- : string = "/dev/pts/8"
53+
```
5254

5355
Run unit tests:
5456

55-
make test
57+
``` sh
58+
make test
59+
```
5660

57-
Guidelines
58-
----------
61+
## Guidelines
5962

6063
For OCaml programming style, we follow Unix module:
6164

@@ -94,8 +97,7 @@ Build infrastructure:
9497
[`ppx_have`]: ppx_have/ppx_have.ml
9598
[`src/extUnix.pp.ml`]: src/extUnix.pp.ml
9699

97-
ExtUnix integration requirements
98-
--------------------------------
100+
## ExtUnix integration requirements
99101

100102
We can integrate into ExtUnix:
101103

@@ -115,8 +117,7 @@ Regarding Win32 portability:
115117
If there is a sane default to create a portable equivalent of the function on
116118
Windows, we can consider it. And we will mark it as such in the documentation.
117119

118-
Checklist for adding new bindings
119-
---------------------------------
120+
## Checklist for adding new bindings
120121

121122
* Add the C code to [`src`][] (follow the code style of existing bindings)
122123
* Add the required checks to [`discover/discover.ml`][]
@@ -132,18 +133,16 @@ Checklist for adding new bindings
132133
[`test/test.ml`]: test/test.ml
133134
[`CHANGES.txt`]: CHANGES.txt
134135

135-
Checklist for release
136-
---------------------
136+
## Checklist for release
137137

138138
* Review `git log` and update [`CHANGES.txt`][]
139139
* Increase VERSION in Makefile
140140
* Commit
141141
* `make release`
142142

143-
Development
144-
-----------
143+
## Development
145144

146-
Many people contribute to extunix. Please submit your patches and/or feature requests
147-
to the project bugtracker at <https://github.com/ygrek/extunix/issues>.
145+
Many people contribute to extunix. Please submit your patches and/or feature
146+
requests to the project bugtracker at <https://github.com/ygrek/extunix/issues>.
148147

149148
The current maintainer is reachable at <mailto:ygrek@autistici.org>.

0 commit comments

Comments
 (0)