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

sphinx/sphinx-argparse can not interpret hyphen as underscore or vice-versa #402

Closed
hanxiao opened this issue May 9, 2020 · 1 comment
Closed
Labels
area/docs This issue/PR affects the docs kind/problem Stale status/blocked-help-needed This issue is blocked and needs support

Comments

@hanxiao
Copy link
Member

hanxiao commented May 9, 2020

Describe your problem

Argument is defined with hyphen in argparse, e.g. --timeout-ready. In Python, this argument is auto converted to timeout_ready. So the user often expects to find the result by searching either, with hyphen or with underscore. However, right now only the timeout-ready query gives the full result.

Result on timeout_ready:
https://docs.jina.ai/search.html?q=timeout_ready&check_keywords=yes&area=default#

Result on timeout-ready:
https://docs.jina.ai/search.html?q=timeout-ready&check_keywords=yes&area=default#

What is your guess?

I guess some kind of alias needs to be added for hyphen and underscore, but at where? Should it be implemented in argparse, or sphinx-argparse, or sphinx, or doc theme level?


original post: #395 (comment)
sphinx-argparse: alex-rudakov/sphinx-argparse#124
sphinx: sphinx-doc/sphinx#7648 (comment)

Environment

Screenshots

@jina-bot
Copy link
Member

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs This issue/PR affects the docs kind/problem Stale status/blocked-help-needed This issue is blocked and needs support
Projects
None yet
Development

No branches or pull requests

2 participants