S0AndS0 / S0AndS0.github.io

Miscellaneous tips, tricks, and thoughts from the author known as S0AndS0

Home Page:https://s0ands0.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Miscellaneous tips, tricks, and thoughts from the author known as S0AndS0

Byte size of S0AndS0.github.io Open Issues Open Pull Requests Latest commits Feed Atom Demos


Table of Contents


Quick Start

The following are for those that wish to build documentation privatively or on another server.

Downloading Source

  1. Make a directory path for GitHub sources and change directory

  2. Clone the source and any submodules utilized by this repository

  3. Change directory again and checkout a new branch for tracking changes

mkdir -vp ~/git/hub/S0AndS0
cd ~/git/hub/S0AndS0

git clone --recurse-submodules git@github.com:S0AndS0/S0AndS0.github.io.git

cd S0AndS0.github.io
git checkout -b fork

Note if building on a server, consider utilizing the Jekyll Administration project that is maintained for emulating many features of GitHub Pages privatively.

Forking

  1. Change directory to repository

  2. Add remote pointing to where you've forked this repository on GitHub

  3. Fetch and set fork as default upstream that is pushed to and pulled from

cd ~/git/hub/S0AndS0/S0AndS0.github.io

## Replace <your-name> with your GitHub account name
git remote add fork git@github.com:<your-name>/S0AndS0.github.io

git fetch fork
git branch --set-upstream-to=fork/master

Building

  1. Change directory to repository, and generate a coma separated list of configuration files

  2. Update submodules and Jekyll related dependencies

  3. Build source into files that many web-browsers understand

cd ~/git/hub/S0AndS0/S0AndS0.github.io
_config_files="_config.yml"
while read _p; do
    _f="${_p##*/}"
    [[ "${_f}" == '_config.yml' ]] && continue
    [[ "${_f}" == '_config.yaml' ]] && continue
    _config_files+=",${_f}"
done < <(ls -1 ./_config*.y*ml)

git submodule update --init --recursive --merge
# bundle install --path="${HOME}/.bundle/install"
bundle update

bundle exec jekyll build\
 --config "${_config_files}"\
 --destination "${HOME}/www"

Notes

For private builds GitHub Authentication setup is required to make full use of Metadata plugins. Those utilizing the Jekyll_Admin repository may use the edit-configs git shell command setting such configurations.


Attribution

Note, if something is missing from the following please issue a Pull Request so that corrections may be reviewed.

  • Jekyll is what builds this repository into something that web servers may serve statically and many web-browsers are to render

  • GitHub Pages is what publicly hosts this repository, and may others.


License

Legal bits of Open Source software

Content and code (aside from third-party injections), of this file.
Copyright (C) 2019  S0AndS0

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation; version 3 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

About

Miscellaneous tips, tricks, and thoughts from the author known as S0AndS0

https://s0ands0.github.io

License:GNU Affero General Public License v3.0


Languages

Language:SCSS 56.8%Language:HTML 30.4%Language:Ruby 7.7%Language:Liquid 5.1%