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

Hyperlink to parameters in docstrings using sphinx-paramlinks #2132

Closed
3 tasks
weiji14 opened this issue Sep 21, 2022 · 3 comments
Closed
3 tasks

Hyperlink to parameters in docstrings using sphinx-paramlinks #2132

weiji14 opened this issue Sep 21, 2022 · 3 comments
Labels
feature request New feature wanted question Further information is requested wontfix This will not be worked on

Comments

@weiji14
Copy link
Member

weiji14 commented Sep 21, 2022

Description of the desired feature

To make it easier to reference the parameters of PyGMT functions (e.g. pen in plot), here's an idea to make all those parameters clickable with a permalink! This can be done using sphinx-paramlinks.

Pros:

Cons:

  • Huge maintenance burden to rewrite all the docstrings to use the :paramref: directive
  • May or may not make it harder for new contributors to write docstrings when wrapping a new module
  • The sphinx-paramlinks extension doesn't look well maintained (last commit 31 May 2022), though there are supposedly 300+ users

There's a proof of concept PR at #2131 to show how the implementation looks like.

Are you willing to help implement and maintain this feature? Discuss on whether the pain is worth it 🙂

Vote 👍 for yes, 👎 for no

If we do go ahead, the concrete steps would be to:

@weiji14 weiji14 added question Further information is requested feature request New feature wanted labels Sep 21, 2022
@seisman
Copy link
Member

seisman commented Sep 22, 2022

Looks great!

@maxrjones
Copy link
Member

I like the look as well but am hesitant to rely on an experimental extension that would require a fair amount of work to drop.

@seisman
Copy link
Member

seisman commented Jun 24, 2023

I'm closing the issue as the sphinx-paramlinks extension is not actively maintained. The latest tag (https://github.com/sqlalchemyorg/sphinx-paramlinks/tags) was created one year ago and there is only one commit in the recent year.

Feel free to reopen it if there are any more updates on the extension or any new ideas.

@seisman seisman closed this as completed Jun 24, 2023
@seisman seisman added the wontfix This will not be worked on label Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature wanted question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants