Skip to content
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

Convert man pages to Markdown with YAML header #5594

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sabine
Copy link

@sabine sabine commented Jul 5, 2023

As we realized in #5593, the man pages also need to move to ocaml.org.

This patch adds a Makefile target to convert the man pages to Markdown with an ocaml.org-compatible YAML header using pandoc.

If preferred, I can omit the YAML header and we add that manually when embedding the docs into ocaml.org. Doing it this way, however, leaves less opportunity for human error in the process of moving the files to be hosted on ocaml.org.

Long-term, I think we want to generate the man pages as part of the odoc-generated manual for opam so the markdown target will probably have to be tweaked at that point to ensure compatibility with odoc.

@sabine sabine force-pushed the generate_markdown_man_pages branch from 4ff4dcf to f7d0961 Compare July 19, 2023 10:42
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.

1 participant