Skip to content

Commit b8a7e7f

Browse files
authored
cleaned up redirection urls (#1969)
* cleaned up redirection urls * add back modules, other best effort redirects * fmt
1 parent 28d3118 commit b8a7e7f

File tree

1 file changed

+19
-28
lines changed

1 file changed

+19
-28
lines changed

src/ocamlorg_web/lib/redirection.ml

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,16 @@ let from_v2 =
198198
( "/learn/tutorials/compiling_ocaml_projects.html",
199199
Url.tutorial "compiling-ocaml-projects" );
200200
( "/learn/tutorials/data_types_and_matching.fr.html",
201-
Url.tutorial "data-types" );
201+
Url.tutorial "basic-data-types" );
202202
( "/learn/tutorials/data_types_and_matching.it.html",
203-
Url.tutorial "data-types" );
203+
Url.tutorial "basic-data-types" );
204204
( "/learn/tutorials/data_types_and_matching.ja.html",
205-
Url.tutorial "data-types" );
206-
("/learn/tutorials/data_types_and_matching.html", Url.tutorial "data-types");
205+
Url.tutorial "basic-data-types" );
206+
( "/learn/tutorials/data_types_and_matching.html",
207+
Url.tutorial "basic-data-types" );
207208
( "/learn/tutorials/data_types_and_matching.zh.html",
208-
Url.tutorial "data-types" );
209+
Url.tutorial "basic-data-types" );
210+
(Url.tutorial "data-types", Url.tutorial "basic-data-types");
209211
("/learn/tutorials/debug.html", Url.tutorial "debugging");
210212
("/learn/tutorials/error_handling.html", Url.tutorial "error-handling");
211213
( "/learn/tutorials/file_manipulation.ja.html",
@@ -215,16 +217,17 @@ let from_v2 =
215217
Url.tutorial "file-manipulation" );
216218
("/learn/tutorials/format.fr.html", Url.tutorial "formatting-text");
217219
("/learn/tutorials/format.html", Url.tutorial "formatting-text");
218-
( "/learn/tutorials/functional_programming.fr.html",
219-
Url.tutorial "functional-programming" );
220-
( "/learn/tutorials/functional_programming.it.html",
221-
Url.tutorial "functional-programming" );
222-
( "/learn/tutorials/functional_programming.ja.html",
223-
Url.tutorial "functional-programming" );
224-
( "/learn/tutorials/functional_programming.html",
225-
Url.tutorial "functional-programming" );
226-
( "/learn/tutorials/functional_programming.zh.html",
227-
Url.tutorial "functional-programming" );
220+
(* FIXME: uncomment when higher-order-functions is merged (
221+
"/learn/tutorials/functional_programming.fr.html", Url.tutorial
222+
"higher-order-functions" ); (
223+
"/learn/tutorials/functional_programming.it.html", Url.tutorial
224+
"higher-order-functions" ); (
225+
"/learn/tutorials/functional_programming.ja.html", Url.tutorial
226+
"higher-order-functions" ); (
227+
"/learn/tutorials/functional_programming.html", Url.tutorial
228+
"higher-order-functions" ); (
229+
"/learn/tutorials/functional_programming.zh.html", Url.tutorial
230+
"higher-order-functions" ); *)
228231
("/learn/tutorials/functors.html", Url.tutorial "functors");
229232
( "/learn/tutorials/garbage_collection.ja.html",
230233
Url.tutorial "garbage-collection" );
@@ -273,16 +276,6 @@ let from_v2 =
273276
("/learn/tutorials/modules.ko.html", Url.tutorial "modules");
274277
("/learn/tutorials/modules.html", Url.tutorial "modules");
275278
("/learn/tutorials/modules.zh.html", Url.tutorial "modules");
276-
( "/learn/tutorials/null_pointers_asserts_and_warnings.fr.html",
277-
Url.tutorial "null-pointers-asserts-and-warnings" );
278-
( "/learn/tutorials/null_pointers_asserts_and_warnings.it.html",
279-
Url.tutorial "null-pointers-asserts-and-warnings" );
280-
( "/learn/tutorials/null_pointers_asserts_and_warnings.ja.html",
281-
Url.tutorial "null-pointers-asserts-and-warnings" );
282-
( "/learn/tutorials/null_pointers_asserts_and_warnings.html",
283-
Url.tutorial "null-pointers-asserts-and-warnings" );
284-
( "/learn/tutorials/null_pointers_asserts_and_warnings.zh.html",
285-
Url.tutorial "null-pointers-asserts-and-warnings" );
286279
("/learn/tutorials/objects.ja.html", Url.tutorial "objects");
287280
("/learn/tutorials/objects.html", Url.tutorial "objects");
288281
("/learn/tutorials/objects.zh.html", Url.tutorial "objects");
@@ -291,13 +284,11 @@ let from_v2 =
291284
("/learn/tutorials/performance_and_profiling.html", Url.tutorial "profiling");
292285
( "/learn/tutorials/performance_and_profiling_discussion.html",
293286
Url.tutorial "profiling" );
294-
("/learn/tutorials/pointers.html", Url.tutorial "pointers");
295-
("/learn/tutorials/pointers.zh.html", Url.tutorial "pointers");
296287
("/learn/tutorials/set.fr.html", Url.tutorial "sets");
297288
("/learn/tutorials/set.ja.html", Url.tutorial "sets");
298289
("/learn/tutorials/set.html", Url.tutorial "sets");
299290
("/learn/tutorials/set.zh.html", Url.tutorial "sets");
300-
("/learn/tutorials/streams.html", Url.tutorial "streams");
291+
("/learn/tutorials/streams.html", Url.tutorial "sequences");
301292
("/learn/tutorials/up_and_running.html", Url.tutorial "up-and-running");
302293
(Url.tutorial "first-hour", Url.tutorial "tour-of-ocaml");
303294
("/meetings/index.fr.html", Url.community);

0 commit comments

Comments
 (0)