Skip to content

Commit

Permalink
update add_canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Oct 31, 2023
1 parent e2993d1 commit 8ba21b3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion scripts/add_canonical.ml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let replace_in_file ~orig_path file_path search_str =
in
let canonical_link =
Printf.sprintf
"<link rel=\"canonical\" href=\"https://melange.re/v2.0.0/api/%s\" \
"<link rel=\"canonical\" href=\"https://melange.re/v2.1.0/api/%s\" \
/></head>"
(String.escaped relative_file_path)
in
Expand Down
32 changes: 16 additions & 16 deletions scripts/add_canonical.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Test add_canonical exe
$ add_canonical .

$ cat foo.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/foo.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/foo.html" /></head>


$ mkdir -p melange/Js/Global
Expand Down Expand Up @@ -98,46 +98,46 @@ Test add_canonical exe
$ add_canonical .

$ cat ./melange/Js/Global/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Js/Global/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Js/Global/index.html" /></head>

$ cat ./melange/Node/Foo/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Node/Foo/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Node/Foo/index.html" /></head>

$ cat ./melange/Dom/Storage2/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Dom/Storage2/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Dom/Storage2/index.html" /></head>

$ cat ./melange/Belt/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Belt/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Belt/index.html" /></head>

$ cat ./melange/Belt/List/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Belt/List/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Belt/List/index.html" /></head>

$ cat ./melange/Stdlib/Int/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Stdlib/Int/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Stdlib/Int/index.html" /></head>

$ cat ./melange/Js/Typed_array/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Js/Typed_array/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Js/Typed_array/index.html" /></head>

$ cat ./melange/Js/TypedArray2/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Js/TypedArray2/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Js/TypedArray2/index.html" /></head>

$ cat ./melange/Js/WeakSet/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Js/WeakSet/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Js/WeakSet/index.html" /></head>

$ cat ./melange/Js/Fn/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Js/Fn/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Js/Fn/index.html" /></head>

$ cat ./melange/Belt/Set/String/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Belt/Set/String/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Belt/Set/String/index.html" /></head>

$ cat ./melange/Belt/Map/Dict/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Belt/Map/Dict/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Belt/Map/Dict/index.html" /></head>

$ cat ./melange/Belt/SortArray/Int/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Belt/SortArray/Int/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Belt/SortArray/Int/index.html" /></head>

$ cat ./melange/Melange_ppx/Ast_literal/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Melange_ppx/Ast_literal/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Melange_ppx/Ast_literal/index.html" /></head>

$ cat ./melange/Melange_ppx/External/index.html
<head><link rel="canonical" href="https://melange.re/v2.0.0/api/melange/Melange_ppx/External/index.html" /></head>
<head><link rel="canonical" href="https://melange.re/v2.1.0/api/melange/Melange_ppx/External/index.html" /></head>

0 comments on commit 8ba21b3

Please sign in to comment.