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

Align viewcode links on the right #48

Open
azmeuk opened this issue May 22, 2024 · 1 comment
Open

Align viewcode links on the right #48

azmeuk opened this issue May 22, 2024 · 1 comment

Comments

@azmeuk
Copy link

azmeuk commented May 22, 2024

The sphinx viewcode extension adds [source] links near python object signatures.

Screenshot 2024-05-22 at 10-19-16 Data models

The link is displayed under the signature, but I think this would be nicer if it were aligned on the right side like it does in alabaster:

Screenshot 2024-05-22 at 10-21-07 Data models — canaille documentation

What do you think?

@lepture
Copy link
Owner

lepture commented May 27, 2024

The reason I put [source] in a new line is that sometime, the class name may be too long, and then it will mess up with the [source] link.

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

No branches or pull requests

2 participants