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

Multiple values for directory_index_file #195

Closed
maiertech opened this issue Mar 4, 2015 · 5 comments
Closed

Multiple values for directory_index_file #195

maiertech opened this issue Mar 4, 2015 · 5 comments
Assignees

Comments

@maiertech
Copy link

I have a Jekyll website that generates links referring to a directory with different directory_index_files: index.html and index.xml (for Atom feeds). html-proofer throws an error for the feed URL since it expects index.html.

Using data-proofer-ignore to suppress checking the feed URL is not an option since the feed URL is generated by by a plugin: https://github.com/octopress/feeds.

Is there a way to define multiple directory index files or suppress checking other than adding this tag?

For information, this is the related ticket, which I opened with the plugin: octopress/feeds#15

@maiertech
Copy link
Author

@gjtorikian Do you have roadmap for this issue?

@gjtorikian gjtorikian removed their assignment Jun 1, 2015
@parkr
Copy link
Contributor

parkr commented Jun 2, 2015

I noticed something similar to this today on my site:

- ./_site/go/index.html
  *  internally linking to /go/jekyll-build-server, which does not exist (line 50)
  *  internally linking to /go/merge-pr, which does not exist (line 58)

@MrSaints
Copy link

MrSaints commented Sep 3, 2015

Any updates on this issue?

@gjtorikian
Copy link
Owner

I'll take a look!

@gjtorikian gjtorikian self-assigned this Jan 6, 2016
@gjtorikian
Copy link
Owner

I looked into this a bit today and unfortunately it's just not possible to support multiple directory index files.

Since data-proofer-ignore is not an option, I suggest using url_ignore, which will exclude URLs known to be good:

HTMLProofer.check_directories(["out/"], {
  :url_ignore => [/index\.xml/],
}).run

I hope this helps.

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

No branches or pull requests

4 participants