-
SummaryI would like to add a link (either in docs or in main section) that redirects to an external site (for example, a link "report an issue" that redirects to my GitHub project). Basic exampleSomething like this in menus.toml:
Ideally, the link would render with an icon that indicates it redirects to an external site MotivationI think it makes sense from a navigation perspective. But maybe I'm using a wrong approach and menus.toml is not the right approach? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Yvand, the headers of the left navigation sidebar (set in Or, you could add the link manually (like I did for the Doks Showcase) — add to <h3 class="sidebar-link"><a href="https://github.com/h-enk/doks/discussions?discussions_q=category%3A%22Show+and+tell%22">Submit to Showcase →</a></h3> And customize styling to your liking. |
Beta Was this translation helpful? Give feedback.
@Yvand, the headers of the left navigation sidebar (set in
./config/_default/menus.toml
) do not contain an<a>
element (see also line 3 of./layouts/partials/sidebar/docs-menu.html
). You could change that — for all or just for the concerning link only.Or, you could add the link manually (like I did for the Doks Showcase) — add to
./layouts/partials/sidebar/docs-menu.html
something like:And customize styling to your liking.