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

docs: Classes reference source links broken #2476

Open
ReubenFrankel opened this issue Jun 13, 2024 · 2 comments
Open

docs: Classes reference source links broken #2476

ReubenFrankel opened this issue Jun 13, 2024 · 2 comments
Assignees
Labels
Documentation Improvements or additions to documentation valuestream/SDK

Comments

@ReubenFrankel
Copy link
Contributor

ReubenFrankel commented Jun 13, 2024

Documentation type

Reference

Description

Not sure if this is the case for all source links, just all the ones I've checked direct to https://github.com/meltano/sdk/blob/main/singer_sdk/__init__.py.

For example: https://sdk.meltano.com/en/latest/classes/singer_sdk.RESTStream.html#singer_sdk.RESTStream.get_records - I expect this to go to

def get_records(self, context: Context | None) -> t.Iterable[dict[str, t.Any]]:
, or at least https://github.com/meltano/sdk/blob/main/singer_sdk/streams/rest.py.

@ReubenFrankel ReubenFrankel added Documentation Improvements or additions to documentation valuestream/SDK labels Jun 13, 2024
@edgarrmondragon
Copy link
Collaborator

Thanks for logging!

I think the issue is the auto-generated API docs for that class are coming from singer_sdk.RESTStream (i.e. where it's imported) instead of singer_sdk.streams.rest.RESTStream (where it's defined).

I'll try to take a quick dive through the Sphinx docs next week to see if there's a way to work around that, or if we need to update the currentmodule setting in https://github.com/meltano/sdk/blob/main/docs/reference.rst without breaking the https://sdk.meltano.com/en/latest/classes/singer_sdk.RESTStream.html URL...

NB it might still be hard to link to a specific line in the source code. Though, there's a workaround in sphinx-doc/sphinx#1556 that might be worth exploring.

@ReubenFrankel
Copy link
Contributor Author

NB it might still be hard to link to a specific line in the source code. Though, there's a workaround in sphinx-doc/sphinx#1556 that might be worth exploring.

I'm not sure what it did originally - if it is difficult, just the file is fine IMO.

@edgarrmondragon edgarrmondragon self-assigned this Jul 10, 2024
@edgarrmondragon edgarrmondragon added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation valuestream/SDK
Projects
None yet
Development

No branches or pull requests

2 participants