From cffd225e8da40e459f0babb483cce3ad492b397e Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Wed, 19 Jun 2024 17:26:56 +0100 Subject: [PATCH] Renamed files and reordered table of contents. Signed-off-by: Konstantina Chremmou --- .../{api-ref-autogen.md => management-api.md} | 2 +- ocaml/idl/markdown_backend.ml | 2 +- ocaml/idl/templates/toc.mustache | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) rename ocaml/idl/autogen/{api-ref-autogen.md => management-api.md} (76%) diff --git a/ocaml/idl/autogen/api-ref-autogen.md b/ocaml/idl/autogen/management-api.md similarity index 76% rename from ocaml/idl/autogen/api-ref-autogen.md rename to ocaml/idl/autogen/management-api.md index 1c64c0e8bfb..00d96267929 100644 --- a/ocaml/idl/autogen/api-ref-autogen.md +++ b/ocaml/idl/autogen/management-api.md @@ -5,4 +5,4 @@ Version **@xapi-version@** - [Classes](@root@management-api/classes.html) - [Relationships Between Classes](@root@management-api/relationships-between-classes.html) - [Types](@root@management-api/types.html) -- [ErrorHandling](@root@management-api/api-ref-autogen-errors.html) +- [ErrorHandling](@root@management-api/api-errors.html) diff --git a/ocaml/idl/markdown_backend.ml b/ocaml/idl/markdown_backend.ml index 38ec1c8caef..e039a7cfc42 100644 --- a/ocaml/idl/markdown_backend.ml +++ b/ocaml/idl/markdown_backend.ml @@ -525,7 +525,7 @@ let generate_errors () = ] in render_file - ("api_errors.mustache", "api-ref-autogen-errors.md") + ("api_errors.mustache", "api-errors.md") error_json templatesdir destdir let all api = diff --git a/ocaml/idl/templates/toc.mustache b/ocaml/idl/templates/toc.mustache index 01f81f0982f..4b58953b6e7 100644 --- a/ocaml/idl/templates/toc.mustache +++ b/ocaml/idl/templates/toc.mustache @@ -1,15 +1,15 @@ - title: API Reference - url: @root@api-ref-autogen.html + url: @root@management-api.html subfolderlist: - title: Classes url: @root@management-api/classes.html -{{#classes}} - - title: Class:{{{name}}} - url: @root@management-api/class-{{{name_lower}}}.html -{{/classes}} - title: Relationships Between Classes url: @root@management-api/relationships-between-classes.html - title: Types url: @root@management-api/types.html +{{#classes}} + - title: Class:{{{name}}} + url: @root@management-api/class-{{{name_lower}}}.html +{{/classes}} - title: Error Handling - url: @root@management-api/api-ref-autogen-errors.html + url: @root@management-api/api-errors.html