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

Add intersphinx and autolink :) #73

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

sneakers-the-rat
Copy link
Contributor

I personally really appreciate it when documentation will link to the api docs for the things they reference, and i feel like it might be especially helpful for our students to be able to refer to the docs at any point if they need to :).

Just added intersphinx mappings, went through and searched for mentions of functions from other packages ( i'm sure i missed a bunch ), and i also added the codeautolink extension to automatically add links within the code examples with a very subtle underline like this:

Screenshot 2024-10-23 at 9 08 32 PM

Also edited some references to close-and-they-actually-should-be-named-that-but-nonexistent modules like pandas.apply() and pandas.datetime just so the students don't go lookin for em :)

@@ -1,4 +1,9 @@

.navbar-header-items .navbar-header-items__center {
margin-left: 2em !important;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sneakers-the-rat this is awesome. If you remember, let's try to add these changes to our theme as well! i think they are valuable in all of our books!!

@lwasser
Copy link
Member

lwasser commented Oct 24, 2024

i didn't know about the code autolink. We should make all of these extensions default in all of our books 🚀

@lwasser lwasser merged commit 1c7e427 into pyOpenSci:main Oct 24, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants