Skip to content

Commit

Permalink
Merge pull request #5723 from kc284/master
Browse files Browse the repository at this point in the history
Tweaks to the API reference generator
  • Loading branch information
kc284 authored Jun 21, 2024
2 parents d6221e2 + cffd225 commit 4770d5e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion ocaml/idl/markdown_backend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
4 changes: 0 additions & 4 deletions ocaml/idl/templates/api_errors.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# Error Handling

When a low-level transport error occurs, or a request is malformed at the HTTP
Expand Down
4 changes: 0 additions & 4 deletions ocaml/idl/templates/class.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# Class: {{{class_name}}}
{{#class_deprecated}}

Expand Down
4 changes: 0 additions & 4 deletions ocaml/idl/templates/classes.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# Classes

The following classes are defined:
Expand Down
4 changes: 0 additions & 4 deletions ocaml/idl/templates/relationships.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# Relationships Between Classes

Fields that are bound together are shown in the following table:
Expand Down
12 changes: 6 additions & 6 deletions ocaml/idl/templates/toc.mustache
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions ocaml/idl/templates/types.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# Types

## Primitives
Expand Down

0 comments on commit 4770d5e

Please sign in to comment.