strontic.github.io
strontic.github.io copied to clipboard
Security. Automation. Analytics.
trafficstars
STRONTIC
This project is the source code (markdown) for https://strontic.github.io. The markdown pages are built locally and pushed to the gh-pages branch as HTML.
Jekyll Local Build Instructions
- Open Git Bash
cd ~/Documents/GitHub/strontic.github.io(cloned project directory)bundle update github-pages- (OPTIONAL)
export JEKYLL_GITHUB_TOKEN=<your token> export JEKYLL_ENV=productionbundle exec jekyll build --incremental- (OPTIONAL) Incremental build:
--incremental(Experimental!) - (OPTIONAL) Listen for changes:
--watch(Info)
- (OPTIONAL) Incremental build:
- (OPTIONAL) for testing what it looks like in a browser:
bundle exec jekyll serve cd Docsgit initgit add .- (OPTIONAL)
touch .nojekyll git commit -m "Add Lastest GH-PAGES Files"- (OPTIONAL)
git remote add origin [email protected]:strontic/strontic.github.io.git(required for first run. change value to your project destination) git push --force origin master:gh-pages
Helpful Resources:
- https://docs.github.com/en/github/working-with-github-pages/creating-a-github-pages-site-with-jekyll
- https://docs.github.com/en/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll
- https://blog.bloomca.me/2017/12/15/how-to-push-folder-to-github-pages.html
Prerequisites
Ruby
If Ruby is not already installed... https://www.ruby-lang.org/en/documentation/installation/
Bundler
- Git Bash:
gem install bundler - Git Bash (At project root):
bundle install
Git SSH Keys
- If SSH keys were not already configured
- Generate SSH Keys
ssh-keygen -t ed25519 -C "[email protected]" - Ensure
ssh-agentis running:eval $(ssh-agent -s) - From the Git Bash terminal:
ssh-add ~/.ssh/id_ed25519, thenclip < ~/.ssh/id_ed25519.pub - Paste into Github Account. Instructions
- Done. Additional Resources
Note: For legacy systems, generate SSH Keys using
ssh-keygen -t rsa -b 4096 -C "[email protected]"and,ssh-add ~/.ssh/id_rsa, thenclip < ~/.ssh/id_rsa