Skip to content

Integrating external Documentation #691

Closed

Description

@Schorny

I have a documentation written in mkdocs and an API documentation that gets created automatically from the source code.
I currently just use external links inside my mkdocs to link to my API docu, which works fine. But I can't set the API docu as one of the pages target.
And also mkdocs does not copy the API documentation when doing mkdocs build or mkdocs serve, even though it resides in the docs_dir.

Is there any way to "integrate" external documentation in a mkdocs project? basically all I really need is an "asset dir" where I can dump the external documentation and mkdocs just copies it for me 1:1 when doing build or serve and for mkdocs to allow me to link to these assets.

It works fine with images, but somehow with HTML files mkdocs likes to mess with them (changing them or deleting them entirely).

Activity

  1. samuelcolvin commented on Jul 17, 2015

    @samuelcolvin
    Contributor

    👍

    The problem is here:

    and not is_html_file(filename)

    mkdocs is excluding all html files.

    Would be great if this could be changed so html documents could be included when serving, building or deploying, I guess via a switch which defaulted to false so current default functionality isn't changed.

    I have the same problem with bokeh.github.io/Bokeh.jl the plot .html files which definitely are media files in this context (the whole premise of bokeh is that html can be used as a format for self contained interactive plots) are excluded.

    In this case I use

    rm -r site/; mkdocs build; cp -r docs/examples/ site/; ghp-import -p site/

    to ignore mkdocs and deploy the html files to github pages anyway.

  2. d0ugal commented on Jul 17, 2015

    @d0ugal
    Contributor

    Yeah, good point - that is a regression.

  3. added this to the 0.15.0 milestone on Jul 17, 2015
  4. added 2 commits that reference this issue on Jul 25, 2015
    878ab41
    d5f95f2
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions