-
Notifications
You must be signed in to change notification settings - Fork 75
Github Pages setup #10
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
Open
StoneCypher
wants to merge
29
commits into
transatomic:master
Choose a base branch
from
StoneCypher:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add node for doc build
Improve the site
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's site update time.
You can see the site changes here before you decide.
Too long, didn't read
If that says something tool looking, you're good. If not, install node js.
Then, after merging,
To update at any time,
Ok I'm reading now
This is a github pages setup. It relies on https://nodejs.org/en/ for update scripts, because that's more portable and less inscrutable than shell scripts on average.
I don't know you (I don't even know which transatomic person(s) I'm talking to) and I don't know if you're git/github sophisticated, so, instructions follow below. If this is something you already know, I apologize, and do not mean to be condescending.
What is this
Github Pages is free webhosting by Github. In the
gittradition, it can work too many ways, and it's best to have some neckbeard just make choices. This PR represents such an effort.Things in GH pages will be hosted at https://(orgname).github.io/(reponame)/. Note that it is .io, not .com.
The source of GH pages may be one of two things: the root
/docs/folder, or an alternate reality branch dedicated to the site. The latter choice is:Since you aren't using
/docs/, ... now you are. Your website lives there.How is it built
Simply. This is a
node.jsstandard package file usingpackage.jsonscripts for automation. It relies on exactly one external package -rimraf- a dead package with a simple premise that is unchanged for years.There are three steps. The first two are a single step together in
package. The machine will do this all for you.docs/docs/directory treemarkdownand thegithub pagesconfig back into docsAs a result of step #3, if you change the theme in your GH pages config, it'll change itself back to my initial choice. Instructions in fixing that are below.
Why does the nerd keep saying build product
It is important to understand that the
/docs/folder is a build product. No changes ever belong there. It will get carpet bombed and remade by robots. Leave it the hell alone. Do your changes the way you were already doing them.When you're done, just type
npm buildand wait a few seconds.Commit the results and wait another 2 minutes. Your site will update when it's good and ready, the lazy slob.
I merged this and nothing happened
Yeah. You have to turn GH pages on first. It's easy.
I screenshotted my way through turning it on for myself on the fork. Yours will probably be at https://transatomic.github.com/reactor/, though I'm not 100% confident of that because orgs can do silly things.
caymanby default from inheriting my testing. I'm not sure and I kind of don't care.)package.jsonthat copies its copy of the gh pages theme over the existing one/docs/_config.ymlgithubpages_config.ymlwith that