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

Exclude files? #18

Closed
SilentGlasses opened this issue Mar 15, 2021 · 3 comments
Closed

Exclude files? #18

SilentGlasses opened this issue Mar 15, 2021 · 3 comments

Comments

@SilentGlasses
Copy link

Was just wondering if there is a way to add an exclude list to not try to link to files that would allow me to add this as an example of how to use the plugin:

[Page Name](page_name.md)
![Image](image.png)

but not get these warnings:

WARNING -  AutoLinksPlugin unable to find page_name.md in directory /git_repo/docs
WARNING -  AutoLinksPlugin unable to find image.png in directory /git_repo/docs

Was thinking in mkdocs.yml you can set something like this:

plugins:
  - search
  - autolinks:
      exclude:
        - page_name.md
        - image.png
@Rwarcards762
Copy link

Rwarcards762 commented Apr 1, 2022

If the goal is to try and "show how to use the plugin" would wrapping the items in backticks not be sufficient, ie:

[Page Name](page_name.md)

or

[Page Name](page_name.md)

Ah nevermind -- it seems that is a current issue right now. Issue
I think that is a blocking issue for this issue, as the correct "way" to showcase items in Markdown and its plugins should be escaping it with code fences / backticks. A resolution to it would solve this issue at the same time.

@zachhannum
Copy link
Owner

Yeah, the ideal solution would be to fix #1.

@SilentGlasses
Copy link
Author

SilentGlasses commented Apr 1, 2022

Solution is as @midnightprioriem said so closing this out to avoid duplication and confusion.

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

3 participants