Skip to content

API docs in Hugo #5625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2024
Merged

API docs in Hugo #5625

merged 1 commit into from
May 14, 2024

Conversation

robhoes
Copy link
Member

@robhoes robhoes commented May 10, 2024

This is mostly copied from the jekyll version at xapi-project.github.io and amended for Hugo. The main difference is that all XenAPI pages have now been integrated with the main menu in the left side bar, including the menu of the XenAPI classes.

Some automation is left to do in order to take the doc/data files from a build of ocaml/idl and update the class pages using the script doc/make-class-pages.py. Also the overview of xapi releases is still missing, as well as some of the API guides.

Finally, there is some overlap with markdown files in ocaml/doc, which needs to be sorted out.

This is mostly copied from the jekyll version at xapi-project.github.io and
amended for Hugo. The main difference is that all XenAPI pages have now been
integrated with the main menu in the left side bar, including the menu of the
XenAPI classes.

Some automation is left to do in order to take the `doc/data` files from a
build of `ocaml/idl` and update the class pages using the script
`doc/make-class-pages.py`. Also the overview of xapi releases is still missing,
as well as some of the API guides.

Finally, there is some overlap with markdown files in `ocaml/doc`, which needs
to be sorted out.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
@@ -0,0 +1,24 @@
#!/usr/bin/env python3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this script used?

It seems like some of the checked-out files here will need to be updated, same way as the current docs, what the CI plan to do this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, see commit message. We'll need some automation for this, perhaps under a make doc-hugo command, which will build ocaml/idl, copy the xenapi.json file to doc/data and run this script. Then we can remove the checked-in class files.

@robhoes robhoes merged commit 4dd8351 into xapi-project:master May 14, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants