-
Notifications
You must be signed in to change notification settings - Fork 2
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
Teach Parser to resolve doc links to the .html files they generate #38
Comments
Hrm. GitHub is a bit of a different beast. It links to the file in the same directory, but you'll note that it resolves to Also, PGXN doesn't do any parsing of documentation files. It outsources that to a Markdown parser. And it supports a lot of formats. If you changed the link to Do note that the home page for your release on PGXN already links to that document directly. |
Thanks for the quick reply, @theory. I looked over the PGXN documentation, and I see now that the site doesn't create the HTML. It relies on Text::Markup to do that. I'll have to think about the best way to solve this. I see that Text::Markup can accept HTML as input too. If a distribution uploaded to PGXN contains both README.md and README.html, will it still convert README.md to HTML, or would PGXN use the HTML file in the distribution instead of the .md file? |
Hrm. I don't know. The indexing code just grabs the first README it finds. I've no idea whether it would consistently find one or the other. Might be nice to update that code to have an order of preference, I guess. I myself have CPAN modules with both a |
Moving to the pgxn-api issues, where all the HTML parsing and formatting happens. We could perhaps read _clean_html_body to look at anchor |
The
tds_fdw
documentation has a primaryREADME.md
file, and that file contains relative links to other.md
files. e.g. something like this:This works great on GitHub, but the links don't work on PGXN. Instead, you get a 404 error.
It looks like PGXN is translating these pages to html. For example,
InstallCentOS.md
can be found here.Since PGXN is converting these .md pages to .html, would it be possible for PGXN to fix the links as well?
This is related to this tds_fdw GitHub issue:
tds-fdw/tds_fdw#44
The text was updated successfully, but these errors were encountered: