Skip to content

including code from paths outside of the mkdocs directory #42

Open
@jorgheymans

Description

@jorgheymans

Does the plugin support importing code snippets from other paths ?

We have often things like this in our doc:

--8<-- "../component/src/test/java/mkdocs/Example.java"

When building a multirepo mkdocs site, it fails:

ERROR    -  Error reading page 'example/index.md': Snippet at path
            ../component/src/test/java/mkdocs/Example.java could not be found

I am using nav based multirepo import like this:

Example: '!import [email protected]:myrepo.git?extra_imports=["component/*"]'

The imported repo structure is this:

component
  src
    test
      java
mkdocs
  mkdocs.yml

Activity

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

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions