mkdocs-plugin-tags icon indicating copy to clipboard operation
mkdocs-plugin-tags copied to clipboard

tags_folder does not work with relative path

Open kevung opened this issue 5 years ago • 2 comments

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 avatar May 20 '20 17:05 kevung

I get this error even if I create the aux manually

kevung avatar May 20 '20 17:05 kevung

duplicate of https://github.com/jldiaz/mkdocs-plugin-tags/issues/3 but I don't think this repo is maintained anymore.

Stanzilla avatar May 20 '20 18:05 Stanzilla