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

C++ navbar links - add support for hyperlinks in tuple[1] field #264

Open
parker-research opened this issue Feb 24, 2025 · 2 comments
Open

Comments

@parker-research
Copy link
Contributor

The following example appears to be supported in the Python documentation generation, but not in the C++ generation (using conf.py-style).

Specifically, using a direct URL link in the second tuple field.

LINKS_NAVBAR2 = [
    ("GitHub", "https://github.com/MikePopoloski/slang", []),
]

Would be awesome if it was supported the same in both generators!

Docs

@mosra
Copy link
Owner

mosra commented Feb 24, 2025

What you suggest makes sense, this difference is likely due to the config being originally done through the Doxyfile where the flexibility was severely limited, and when I was making the Python theme I had a clean slate and could do it better from the start. I'll try to find time to unify behavior in both.

Until then, you should be able to do this instead. (Yes, I know, it's strange, but you can put even images there this way.)

LINKS_NAVBAR2 = [
    ("<a href=\"https://github.com/MikePopoloski/slang\">GitHub</a>", []),
]

@parker-research
Copy link
Contributor Author

Thanks!

mosra referenced this issue in MikePopoloski/m.css Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants