Docz: External link in menu

Created on 23 Jun 2019  路  8Comments  路  Source: doczjs/docz

Question

Is it possible to add external links to the side menu? (e.g to a gitub repository)

enhancement stale v1 v2

Most helpful comment

Also having this issue, this seems to be a regression since v1. @pedronauck will this be introduced back into v2?

All 8 comments

As far as I know, this is not possible with the default theme, but you can customize it. See docs here: https://www.docz.site/docs/components-api. The API is fairly straightforward and easy to work with. I used to create my own theme: http://docz-theme-ztopia.surge.sh/

Yes, you can do it like this in doczrc.js:

menu: [
    'Nav 1',
    'Nav 2',
    {name: '馃敆 Github', href: 'https://github.com/'},
],

Also having this issue, this seems to be a regression since v1. @pedronauck will this be introduced back into v2?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

{name: '馃敆 Github', href: 'https://github.com/'}

Does not work for me. I get a non clickable menu item with an arrow down icon.

Same issue for me

For a little more information, it appears to render a link, it just only inserts '/'.
image

Found a workaround: {name: 'foo', route: 'https://makeflow.github.io/boring-router'}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

capaj picture capaj  路  3Comments

hayk94 picture hayk94  路  3Comments

tsnolan23 picture tsnolan23  路  3Comments

w0wka91 picture w0wka91  路  3Comments

ssylvia picture ssylvia  路  3Comments