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

Make man page links clickable #48

Open
ottok opened this issue Aug 25, 2020 · 3 comments
Open

Make man page links clickable #48

ottok opened this issue Aug 25, 2020 · 3 comments

Comments

@ottok
Copy link
Contributor

ottok commented Aug 25, 2020

The man pages include some links. Currently they are not rendered into real clickable links in seravo.com/docs:

image

It would be nice if they could be rendered. Links to external man pages could go to manpages.ubuntu.com, e.g. http://manpages.ubuntu.com/manpages/focal/en/man1/rdiff-backup.1.html

@sjaks
Copy link
Contributor

sjaks commented Aug 26, 2020

Idea for automating this in a script:

  • start scraping the comma seperated list under SEE ALSO
  • find enties starting with wp-* and find-replace them with markdown links pointing to seravo.com/docs/wp-$1
  • find entries starting with wp and add links to developer.wordpress.org/cli/commands/$1
  • link rest to ubuntu man pages (maybe check if man page is found online)

@ottok
Copy link
Contributor Author

ottok commented Aug 26, 2020 via email

@sjaks
Copy link
Contributor

sjaks commented Aug 26, 2020

Haven't come across such feature. Afaik, "links" in man pages are clickable due to the terminal emulator treating man page entries cmd(#) as links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants