-
Notifications
You must be signed in to change notification settings - Fork 124
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
Write unix man pages in markdown and convert? #269
Comments
I also think we should continue to maintain But I digress. The unix man format (roff) is difficult to write, but I grew found of it. Maybe it would help if I describe the most current tricks and commands?
(try I can also add comments to the |
Earlier this year, I tried to write a manpage in markdown format. It is quite promising, but also very time consuming. If I find time to do it (summer 2024?), the goal is to break down the monolithic The downside is that it creates a dependency to a third-party tool to convert from markdown to |
I've finally produced a small example of three manpages for vsearch commands ( @torognes @colinbrislawn you both have expressed interest for an alternative to groff. Do you think the generated markdown files could be used to build an online linkable manual? The goal is to address limitations of the current monolithic manpage:
The proposed solution is to write manpages in markdown and to convert Pros:
Cons:
Preview: git pull
git checkout markdown2manpage
cd ./man/commands/
bash visualize_manpage.sh vsearch-orient.1.md |
That's fantastic! Zooming out a bit, there are many ways to do this, which means there is no 'one right way' to do this.
Yes! This is called static site generation, and I've done it a few times. I will leave the decision of how to get make the It looks like md2man was last updated in 2018, which either means it dead or stable. |
Sounds very nice! But I cannot find the |
My mistake, I forgot to include the scripts. I've explored that idea of building a static website from our markdown pages. It seems that GitHub Pages now does most of the job: https://mryap.github.io/markdown-to-github-pages/ I'll try to come up with a working pipeline tomorrow. |
I find the unix man format (roff) difficult to write, but I think it is very nice to have man pages handy. Perhaps we could write the documentation in markdown instead and convert it? There are tools for that, for instance ronn and pandoc.
The text was updated successfully, but these errors were encountered: