Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

includes inside subdirectories not intuitive #22

Open
jsseidel opened this issue Mar 29, 2019 · 0 comments
Open

includes inside subdirectories not intuitive #22

jsseidel opened this issue Mar 29, 2019 · 0 comments

Comments

@jsseidel
Copy link
Collaborator

Include blocks that exist in documents inside subdirectories only work if you use a path relative to the main project. This is confusing.

E.g. In project "FOO", create a directory called "components/bar". If you have multiple documents in "bar" that are included in some file inside "bar", you would do this:

```include
components/bar/myfile1.md
components/bar/myfile2.md
```

Probably it should work either way, but this might be more intuitive:

```include
myfile1.md
myfile2.md
```

In other words, mktechdocs should assume that included documents are (1) in the same directory as the document doing the including and then if that doesn't work, (2) relative to the project directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant