diff --git a/docs/2022/09/20/how-to-create-githubpage.html b/docs/2022/09/20/how-to-create-githubpage.html index 07da800..3094332 100644 --- a/docs/2022/09/20/how-to-create-githubpage.html +++ b/docs/2022/09/20/how-to-create-githubpage.html @@ -2,7 +2,7 @@
-20 Sep 2022 - Aaron
-Install Git
Install Ruby
+
$ gem install jekyll bundler+
$ gem install jekyll bundler
+ +
$ git clone --recursive SSH_URL$ git clone --recursive SSH_URL
+ $ git -c http.sslVerify=false clone --recursive HTTPS_URL
- Create two directories: docs and localDev.
-
$ mkdir docs$ mkdir localDev$ git -c http.sslVerify=false clone --recursive HTTPS_URL
+ $ mkdir docs
+ $ mkdir localDev
+
$ cd localDev$ cd localDev
+
Create a new Jekyll-project at localDev-directory:
-
$ jekyll new --skip-bundle .
+
+
Open the Gemfile that Jekyll created and comment out the line which starts with gem "jekyll"
Add the github-pages gem by editing the line starting with # gem "github-pages".
Change this line (# gem "github-pages") to:
gem "github-pages", "~> GITHUB-PAGES-VERSION", group: :jekyll_plugins
You can find the actual version of GitHub-pages here
.
Now save and close the Gemfile.
-
+
+
Now still being at the localDev-directory, install the bundle:
$ bundle install+
+ Note that building locally will not work according to commenting out gem "Jekyll" at the Gemfile. (Atm I didn't check if this is right)
+
$ JEKYLL_ENV=production bundle exec jekyll build$ JEKYLL_ENV=production bundle exec jekyll build$ mv /localDev/_site docs+ And push your changes to your central GitHub-Repository. +
- Sources:
+ On the top of the page a box will appear with the url of your website.
+