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

Using docs subdirectory to publish to gh-pages #651

Open
adisarid opened this issue Sep 3, 2021 · 0 comments
Open

Using docs subdirectory to publish to gh-pages #651

adisarid opened this issue Sep 3, 2021 · 0 comments

Comments

@adisarid
Copy link

adisarid commented Sep 3, 2021

The blogdown book states there are two ways to deploy to github pages.

And the structure looks like this:

Either make the publish directory the repository for username.github.io or have a source directory.

I think that the following is preferable to both, and should be suggested as the main option (if using gh-pages) in the book:
Have the complete repo called username.github.io
Publish to a subdirectory called docs.
Add the .nojekyll file to docs.
Setup under settings->pages->Branch: main /docs
I.e. (here it says master since it's an old repo),
image

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

No branches or pull requests

2 participants