Skip to content

External links in menu #778

Closed
Closed

Description

@chipsenkbeil

Is there any workaround for adding external links in the pages menu generated by mkdocs? I've got a Scala project that is using mkdocs and have some externally-hosted Scaladoc content that I'd love to be able to reference in the menu itself.

My current workaround is to create pages for the documentation with metadata and Javascript to redirect to the documentation.

Activity

  1. d0ugal commented on Dec 23, 2015

    @d0ugal
    Contributor

    You could add custom JavaScript and have that add the links you want. http://www.mkdocs.org/user-guide/configuration/#extra_javascript

    Otherwise, what you have done works. There isn't anything in MkDocs that supports this.

  2. gsouf commented on Apr 5, 2016

    @gsouf

    Adding javascript to redirect is an ugly workarround, and that needs to set a page that will live here for nothing.

    Could you consider reopening the issue?

  3. waylan commented on Apr 5, 2016

    @waylan
    Contributor

    Actually, the proper way to do this would be with a custom theme. You could insert the external links directly in the template. I suppose, with some work on #607 this could be even easier.

    Outside of that, the only way to support such a feature would be by creating a new setting, which we do not want to do (we would prefer to have less settings, not more). Perhaps a Plugin could address this if/when that becomes available (see #206).

    In either case, I see no reason to open this issue. There is nothing for us to do outside of those other issues.

  4. gsouf commented on Apr 5, 2016

    @gsouf

    @waylan thanks, about the plugin API, is there any contribution than can be done to help to speed up its development?

  5. waylan commented on Apr 5, 2016

    @waylan
    Contributor

    @gsouf unfortunately, I don't have a good answer for that question. Neither @d0ugal or myself have a big block of time to spend reviewing the Plugin API and we don't want to only create a half-built system (which might not work when the other half gets implemented later). I realize that we have punted quite a large number of feature requests to the Plugin API and we should probably focus our attention there, but without the time (we work on this in our spare time), I can't give any indication of when things will move forward on that front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions