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

docs: update GitHub Pages documentation #12035

Merged
merged 11 commits into from
Feb 15, 2023

Conversation

DoodlesEpic
Copy link
Contributor

@DoodlesEpic DoodlesEpic commented Feb 12, 2023

Description

The previous documentation would suggest to use a bash script which would either be run locally or in a third-party CI, however it's now possible to do the build and deployment step directly through a GitHub Actions workflow, the documentation has been updated to reflect that.

Additional context

Closes #10938


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the PR Title Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@DoodlesEpic DoodlesEpic changed the title docs: Update GitHub Pages documentation docs: update GitHub Pages documentation Feb 12, 2023
The previous documentation would suggest to use a bash script which would either be run locally or in a third-party CI, however it's now possible to do the build and deployment step directly through a GitHub Actions workflow, the documentation has been updated to reflect that.
For some reason the lint stage fails if there are double quotation marks inside the GitHub Actions workflow, hopefully this is the only needed change.
@sapphi-red sapphi-red added the documentation Improvements or additions to documentation label Feb 13, 2023
@sapphi-red
Copy link
Member

Using actions to deploy GitHub Pages is still in public beta. But given that it's been almost half a year since public beta started, maybe we can update the docs.
https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/

patak-dev
patak-dev previously approved these changes Feb 13, 2023
Copy link
Member

@patak-dev patak-dev left a comment

Choose a reason for hiding this comment

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

Agreed, GitHub isn't going to break the beta API after such a long time.

'main' is now the default branch name in GitHub.

Co-authored-by: 翠 / green <[email protected]>
As noted by sapphi-red in the PR at:
vitejs#12035

The rest of the documentation in this page assumes the developer is
using NPM, and that makes sense since it's the default, so this workflow
example should also default to NPM.
The documentation at static-deploy.md assumes the developer is using the
default build path of 'dist', telling that they can change that path or
might have to do it to adjust to their setup is just stating the
obvious.
The action at https://github.com/actions/setup-node allows you to
specify the desired nodejs version which is good for consistency as the
system version might change at any moment a new Ubuntu release comes out
when using the ubuntu-latest environment.
@DoodlesEpic
Copy link
Contributor Author

Hey, I applied a formatting change in 0d4bfbe but I'm not sure it was correct to do so? Some code samples in the same file do it with this amount of padding and others do it with 3 spaces of padding, which one would be the correct way?

Otherwise, I believe I've applied all the suggestions by @sapphi-red

@sapphi-red
Copy link
Member

sapphi-red commented Feb 14, 2023

Thanks!

Hey, I applied a formatting change in 0d4bfbe but I'm not sure it was correct to do so? Some code samples in the same file do it with this amount of padding and others do it with 3 spaces of padding, which one would be the correct way?

If the code block is a part of the list, it would need the indent. In this case, I think this code block is part of the "2. Go to your GitHub Pages...".

Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

Thanks!

@patak-dev patak-dev merged commit 301f160 into vitejs:main Feb 15, 2023
@DoodlesEpic DoodlesEpic deleted the docs/github-pages branch February 15, 2023 17:24
futurGH pushed a commit to futurGH/vite that referenced this pull request Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Add Example to publish to github pages
4 participants