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

Broken links in installation guides #1547

Closed
metonymic-smokey opened this issue Jan 17, 2020 · 10 comments
Closed

Broken links in installation guides #1547

metonymic-smokey opened this issue Jan 17, 2020 · 10 comments

Comments

@metonymic-smokey
Copy link
Contributor Author

@consideRatio @willingc is this a documentation issue that you would like fixed shortly?
If so, could I send in a PR for the same?

New to z2jh so would appreciate any pointers for the same!
Thanks!

@consideRatio
Copy link
Member

@metonymic-smokey I like all issues to be fixed shortly haha, if you can help out with this that would be great ❤️

Hey I remember now reading your question on Gitter about contributing but I forgot to answer at that time! Looking back at my journey, I think I have got myself onboarded into various repositories in the JupyterHub realm by reviewing others code in PRs. Sometimes I review PRs even though I don't know enough to do it efficiently, but it often leads to me learning a lot and when I someone ask a question in a PR regarding the code changes etc, it often leads to a better implementation in the end, it also tends to help the person submitting the PR to get it merged.

I've recently spent time considering #1539 quite a lot, and while doing so I learned more useful knowledge as I often end up doing reviewing PRs! This repo has been a goldmine of learning for me, it has felt very meaningful to contribute to this project as it is used for education/research etc that I care deeply about.

I greatly appreciate your work @metonymic-smokey! Perhaps I could request your eyes on a PR here and there going onwards?

❤️ 🎉

@willingc
Copy link
Collaborator

Thanks for the report @metonymic-smokey and offer to work on a PR. Looking at the links you provided, I see a // in the URL after the master directory. This leads me to believe that it may be an issue with the URL parser in Sphinx or the theme. cc/ @choldgraf just in case you have seen this before.

@choldgraf
Copy link
Member

Ah good question, let me look at the theme a bit and see if that could be the issue

@metonymic-smokey
Copy link
Contributor Author

metonymic-smokey commented Jan 19, 2020

@consideRatio thanks a lot! Will keep your tips in mind in future and learn as much as I can!

@willingc @choldgraf this seems to be an issue arising from Read the Docs as seen here.

I have tried fixing it by referring to the official RTD docs and following this StackOverflow thread created a breadcrumbs.html as specified(it was not there earlier).

Thanks!

@choldgraf
Copy link
Member

choldgraf commented Jan 19, 2020

Hey all - I think I figured out what was going wrong with this theme, and I've opened an issue about it here:

pydata/pydata-sphinx-theme#76

In the mean-time, we could fix the problem by adding the configuration for the 'edit this page' button, following the instructions here: https://pandas-sphinx-theme.readthedocs.io/en/latest/user_guide/configuring.html#add-an-edit-this-page-button

If we don't want that button, we'll need to wait until a patch makes its way into the theme docs to disable the button by default.

edit: I think I've got a fix here: pydata/pydata-sphinx-theme#77

metonymic-smokey added a commit to metonymic-smokey/zero-to-jupyterhub-k8s that referenced this issue Jan 20, 2020
@metonymic-smokey
Copy link
Contributor Author

@choldgraf thanks a lot for your inputs!

I've tinkered around a bit and fixed the broken links by :

  • changing my conf.py according to the fix you have linked above.
  • changing the __init__.py file in the pandas_sphinx_theme folder by removing the extra / and adding source after the documentation path.

This struck me as quick solution(if I may call it) when I compared the 2 URLs.
Wanted to know your take on the same.

Thanks!

@choldgraf
Copy link
Member

I believe that all we'd need to do is add the proper configuration values to the conf.py file (in this case, the doc_path keyword). Then the "edit this page" URLs would be properly created...

@metonymic-smokey
Copy link
Contributor Author

metonymic-smokey commented Jan 22, 2020

@choldgraf agreed, what I'd tried was just a stop-gap for a short term fix(and admittedly a convoluted one).

Regarding changing doc_path in conf.py, changing it to doc/source in html_ context also fixes the links. Is that something like what you meant by 'adding proper configuration values'?

Thanks!

@consideRatio
Copy link
Member

consideRatio commented Oct 7, 2020

Thank you @metonymic-smokey for your work spotting and documenting this, and your work to resolve it in #1564! ❤️ 🎉!

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

4 participants