-
Notifications
You must be signed in to change notification settings - Fork 138
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
Avoid overwriting an existing robots.txt #246
Avoid overwriting an existing robots.txt #246
Conversation
@jveillet Thank you for submitting this PR, but I think the proposed changes does more than necessary to achieve the desired result. |
@ashmaroli Thanks for reviewing. Maybe I've come too far with my implementation, I will modify the PR to just do what was suggested into the related issue. For what I've tested so far the solution seems to work, I am trying to figure out how to modify the tests in accordance. My only concern is that by doing this: OK we are not overriding anymore the user-defined |
Yes, that's indeed the primary intention here. If a user is maintaining a source-file for their The situation here is, say I have a site where all of my "standalone pages" like
|
Sorry for the delay for fixing the test, it took me a while to realize I had to generate the tests in a different directory in order to make it work. |
@ashmaroli Anything else I can do to help move this forward? |
@jveillet I've amended your commit messages to correctly reflect the intention of each commit. In addition to that, I've refactored the tests for this pull request to test valid scenarios. You need not do anything more till further review. |
@jekyllbot: merge +minor |
Hi, and thank you for making this awesome Gem.
Here is a PR that attempts to do one thing: If I have already a
robots.txt
file with custom values at the root of the Jekyll site, then the Generator will take the content of this customrobots.txt
and append it to therobots.txt
template.I am not sure it really fix the issue described in #189, so let me know if something doesn't feel right. Thanks for taking the time to look!