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

tags_folder does not work with relative path #6

Open
kevung opened this issue May 20, 2020 · 2 comments
Open

tags_folder does not work with relative path #6

kevung opened this issue May 20, 2020 · 2 comments

Comments

@kevung
Copy link

kevung commented May 20, 2020

Hello,

Thank you very much for your plugin!
I cannot use a relative path for tags_folder and get a Python error. I want to avoid absolute path since, the mkdocs.yaml would not be portable anymore on several platform (Linux, Windows).

Here is my config mkdocs.yml:

nav:
     - Tags : ./tags.md
plugins:
  - tags:
      tags_template: docs/mkdocs/tags.md.template

and I use mkdocs serve.

I get this error:

% python -m mkdocs serve                   ~/web master +
INFO    -  Building documentation...
INFO    -  Cleaning site directory
WARNING -  Both index.md and readme.md found. Skipping readme.md from ~/web/docs
ERROR   -  File not found: tags.md
ERROR   -  Error reading page 'tags.md': [Errno 2] No such file or directory: '~/web/aux/tags.md'

[Errno 2] No such file or directory: '~/web/aux/tags.md'

@kevung
Copy link
Author

kevung commented May 20, 2020

I get this error even if I create the aux manually

@Stanzilla
Copy link

duplicate of #3 but I don't think this repo is maintained anymore.

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

2 participants