Skip to content

Using docs subdirectory to publish to gh-pages #651

@adisarid

Description

@adisarid

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions