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

Dead links at PyPI #1287

Open
bonimart opened this issue Dec 9, 2024 · 3 comments
Open

Dead links at PyPI #1287

bonimart opened this issue Dec 9, 2024 · 3 comments

Comments

@mwouts
Copy link
Owner

mwouts commented Dec 9, 2024

Oh yes you're right! It seems that I am asking to much from my README.md... The links work on GitHub and on RTD but that's right they don't work on PyPI.

@choldgraf or @mahendrapaipuri do you know if I can pre-process the README.md to e.g. add the full links to either GitHub or RTD when the package is being built?

@choldgraf
Copy link
Contributor

hmmm, I'm not sure. You could define a template README.md (e.g. README.md.template) and auto-generate the README.md as a pre-commit hook or something if you really wanted control there. But that seems excessive

@mahendrapaipuri
Copy link
Contributor

@mwouts I think you can include the absolute links instead of relative paths in README so that they work everywhere. Instead of something like:

A Python notebook encoded in the `py:percent` [format](docs/formats-scripts.md#the-percent-format)

using something like

A Python notebook encoded in the `py:percent` [format](https://github.com/mwouts/jupytext/blob/main/docs/formats-scripts.md#the-percent-format)

What do you think?

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

No branches or pull requests

4 participants