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

Publishing "dot" folders #7917

Closed
KevinColemanInc opened this issue Dec 1, 2019 · 4 comments
Closed

Publishing "dot" folders #7917

KevinColemanInc opened this issue Dec 1, 2019 · 4 comments
Labels
frozen-due-to-age support This is a question about Jekyll's usage.

Comments

@KevinColemanInc
Copy link

KevinColemanInc commented Dec 1, 2019

My Environment

Software Version(s)
Operating System OSX
jekyll 4.0.0
github-pages No

Expected Behavior

The documentation says:

https://jekyllrb.com/docs/structure/

Every other directory and file except for those listed above—such as css and images folders, favicon.ico files, and so forth—will be copied verbatim to the generated site. There are plenty of sites already using Jekyll if you’re curious to see how they’re laid out.

Specifically for my Apple requires you to host a verification file at the path /.well-known/apple-developer-domain-association.txt to verify your domain with "Login with Apple"

If I create a directory to that path with the file, jekyll serve does not host the file at the same path.

I see the folder and contents being copied to the _site directory. So maybe the problem is with jekyll serve?

Code Sample

To reproduce:

  1. Create a new Jekyll project
  2. Create a file at path /.well-known/apple-developer-domain-association.txt
  3. Run jekyll serve
  4. Visit http://127.0.0.1:4000/.well-known/apple-developer-domain-association.txt and get a 404
@DirtyF
Copy link
Member

DirtyF commented Dec 1, 2019

@KevinColemanInc default port is 4000, so you should visit http://127.0.0.1:4000/.well-known/apple-developer-domain-association.txt

@KevinColemanInc
Copy link
Author

@DirtyF You can use whatever port you want to use, but you're still not going to retrieve that file if the folder is prefixed with a "dot".

@DirtyF
Copy link
Member

DirtyF commented Dec 1, 2019

@KevinColemanInc You have to specifically add .well-known folder to include in _config.yml:

include:
 - .well-known

@DirtyF DirtyF added the support This is a question about Jekyll's usage. label Dec 1, 2019
@DirtyF DirtyF changed the title Hosting "dot" folders seem to be ignored (required for Apple domain verification) Publishing "dot" folders Dec 1, 2019
@DirtyF DirtyF closed this as completed Dec 1, 2019
@KevinColemanInc
Copy link
Author

Awesome Thanks!

@jekyll jekyll locked and limited conversation to collaborators Dec 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age support This is a question about Jekyll's usage.
Projects
None yet
Development

No branches or pull requests

3 participants