Skip to content

tags_folder does not work with relative path #6

Description

@kevung

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions