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

Update User Guide with deploying to GitHub User pages #3510

Merged
merged 1 commit into from
Nov 27, 2017
Merged

Update User Guide with deploying to GitHub User pages #3510

merged 1 commit into from
Nov 27, 2017

Conversation

aaronlna
Copy link
Contributor

@aaronlna aaronlna commented Nov 27, 2017

Added details to the User Guide specifying how to deploy to a GitHub user page, instead of a project page.

Tested here: https://github.com/aaronlna/aaronlna.github.io
Issue: #3456

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

If you are deploying to a GitHub user page instead of a project page you'll need to make two
additional modifications:

1. First, change your repository's source branch to be any branch other than **master**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only way to accomplish this? Seems kind of hacky but I don't know enough about GitHub Pages.

Copy link
Contributor Author

@aaronlna aaronlna Nov 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taken from GitHub settings for my particular user page: "User pages must be built from the master branch."

Unfortunately, I don't see any other way around this. At least until GitHub decides to support hosting user pages out of other branches.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, that's all the confirmation I needed. 😄

"homepage": "https://myusername.github.io/my-app",
```json
"homepage": "https://myusername.github.io, // for a GitHub user page
"homepage": "https://myusername.github.io/my-app", // for a GitHub project page
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we split this into two separate examples? Just a separate json snippet with text preceding it saying like "or for a GitHub project page ..."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll tweak it.

or for a GitHub user page:

```json
"homepage": "https://myusername.github.io,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing " missing!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh! (fixed)

@Timer Timer added this to the 1.0.17 milestone Nov 27, 2017
@Timer
Copy link
Contributor

Timer commented Nov 27, 2017

Cheers, thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants