Skip to content

Commit

Permalink
Change old Inria URL with ocaml.org
Browse files Browse the repository at this point in the history
  • Loading branch information
denver-s authored and Denver committed Dec 19, 2023
1 parent 337a35f commit 325656b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ lockfile.

Useful links:

- OCaml [*Syntax of documentation comments*](http://caml.inria.fr/pub/docs/manual-ocaml/ocamldoc.html#ss:ocamldoc-syntax)
- OCaml [*Syntax of documentation comments*](https://v2.ocaml.org/manual/ocamldoc.html#ss:ocamldoc-syntax)
- Lambda Soup [*Module Soup*](https://aantron.github.io/lambdasoup/)
- Soupault [*Tips and tricks*](https://soupault.app/tips-and-tricks/)
2 changes: 1 addition & 1 deletion example/2-middleware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let () =
However, as you can see, the more middlewares we stack on top of each other
like this, the more parentheses and indentation we will end up with! To keep
the code tidy, we use `@@`, the
[standard OCaml operator](https://caml.inria.fr/pub/docs/manual-ocaml/libref/Stdlib.html#VAL(@@)) for calling functions without parentheses. So, the [actual
[standard OCaml operator](https://v2.ocaml.org/api/Stdlib.html#VAL(@@)) for calling functions without parentheses. So, the [actual
code](https://github.com/aantron/dream/blob/master/example/2-middleware/middleware.ml)
in this example looks like this:

Expand Down
2 changes: 1 addition & 1 deletion example/7-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ file to run the template preprocessor:
<br>

The substitution, `<%s param %>`, uses
[`Printf` conversion specifications](https://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html)
[`Printf` conversion specifications](https://v2.ocaml.org/api/Printf.html)
from the standard library. So, you can do things like this:

- `<%i my_int %>` to print an OCaml `int`.
Expand Down
2 changes: 1 addition & 1 deletion example/a-log/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ messages in the log, between the others:
```

Note that this is on `stderr`. As you can see, the functions take
[`Printf`-style format strings](https://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html),
[`Printf`-style format strings](https://v2.ocaml.org/api/Printf.html),
so you can quickly print values of various types to the log.

<br>
Expand Down
12 changes: 6 additions & 6 deletions src/dream.mli
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ val set_cookie :
easiest way to do so is to pass the value through an encoder like
{!Dream.to_base64url}. See {!Dream.set_secret}.
- [~expires] sets the [Expires=] attribute. The value is compatible with
{{:https://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html#VALgettimeofday}
{{:https://v2.ocaml.org/api/Unix.html#VALgettimeofday}
[Unix.gettimeofday]}. See
{{:https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-07#section-4.1.2.1}
RFC 6265bis §4.1.2.1} and
Expand Down Expand Up @@ -735,7 +735,7 @@ val close : stream -> unit promise
type buffer =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(** Byte arrays in the C heap. See
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Bigarray.Array1.html}
{{:https://v2.ocaml.org/api/Bigarray.Array1.html}
[Bigarray.Array1]}. This type is also found in several libraries installed
by Dream, so their functions can be used with {!Dream.buffer}:
Expand Down Expand Up @@ -1251,7 +1251,7 @@ let render message =
within template lines.
The [s] in [<%s code %>] is actually a
{{:https://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html}
{{:https://v2.ocaml.org/api/Printf.html}
Printf}-style format specification. So, for example, one can print two hex
digits using [<%02X code %>].
Expand Down Expand Up @@ -1789,9 +1789,9 @@ val logger : middleware
val log : ('a, Format.formatter, unit, unit) format4 -> 'a
(** Formats a message and logs it. Disregard the obfuscated type: the first
argument is a format string as described in the standard library modules
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html#VALfprintf}
{{:https://v2.ocaml.org/api/Printf.html#VALfprintf}
[Printf]} and
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Format.html#VALfprintf}
{{:https://v2.ocaml.org/api/Format.html#VALfprintf}
[Format]}. The rest of the arguments are determined by the format string.
See example
{{:https://github.com/aantron/dream/tree/master/example/a-log#files}
Expand Down Expand Up @@ -1885,7 +1885,7 @@ val initialize_log :
{!Dream.initialize_log} early in program execution.
- [~backtraces:true], the default, causes Dream to call
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printexc.html#VALrecord_backtrace}
{{:https://v2.ocaml.org/api/Printexc.html#VALrecord_backtrace}
[Printexc.record_backtrace]}, which makes exception backtraces available.
- [~async_exception_hook:true], the default, causes Dream to set
Expand Down
12 changes: 6 additions & 6 deletions src/mirage/mirage.mli
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ module Make
easiest way to do so is to pass the value through an encoder like
{!Dream.to_base64url}. See {!Dream.run} argument [~secret].
- [~expires] sets the [Expires=] attribute. The value is compatible with
{{:https://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html#VALgettimeofday}
{{:https://v2.ocaml.org/api/Unix.html#VALgettimeofday}
[Unix.gettimeofday]}. See
{{:https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-07#section-4.1.2.1}
RFC 6265bis §4.1.2.1} and
Expand Down Expand Up @@ -741,7 +741,7 @@ module Make
type buffer =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(** Byte arrays in the C heap. See
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Bigarray.Array1.html}
{{:https://v2.ocaml.org/api/Bigarray.Array1.html}
[Bigarray.Array1]}. This type is also found in several libraries installed
by Dream, so their functions can be used with {!Dream.buffer}:
Expand Down Expand Up @@ -1212,7 +1212,7 @@ module Make
within template lines.
The [s] in [<%s code %>] is actually a
{{:https://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html}
{{:https://v2.ocaml.org/api/Printf.html}
Printf}-style format specification. So, for example, one can print two hex
digits using [<%02X code %>].
Expand Down Expand Up @@ -1533,9 +1533,9 @@ module Make
val log : ('a, Format.formatter, unit, unit) format4 -> 'a
(** Formats a message and logs it. Disregard the obfuscated type: the first
argument is a format string as described in the standard library modules
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html#VALfprintf}
{{:https://v2.ocaml.org/api/Printf.html#VALfprintf}
[Printf]} and
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Format.html#VALfprintf}
{{:https://v2.ocaml.org/api/Format.html#VALfprintf}
[Format]}. The rest of the arguments are determined by the format string.
See example
{{:https://github.com/aantron/dream/tree/master/example/a-log#files}
Expand Down Expand Up @@ -1629,7 +1629,7 @@ module Make
{!Dream.initialize_log} early in program execution.
- [~backtraces:true], the default, causes Dream to call
{{:http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printexc.html#VALrecord_backtrace}
{{:https://v2.ocaml.org/api/Printexc.html#VALrecord_backtrace}
[Printexc.record_backtrace]}, which makes exception backtraces available.
- [~async_exception_hook:true], the default, causes Dream to set
Expand Down

0 comments on commit 325656b

Please sign in to comment.