This commit is contained in:
WickedJack99
2022-09-21 15:36:17 +02:00
parent ebeeda5984
commit e5ab4f2c99
5 changed files with 29 additions and 20 deletions

View File

@@ -23,11 +23,11 @@ title: 2022 Week 38 How to create a static website with Jekyll and deploy it on
<div id="repository">
<h3>Local Repository</h3>
Clone the repository to a local directory:<br>
<i>SSH</i><br>
<i>ssh</i><br>
<div class="console">
<code>$ git clone --recursive SSH_URL</code>
</div>
<i>HTTPS</i><br>
<i>https</i><br>
<div class="console">
<code>$ git -c http.sslVerify=false clone --recursive HTTPS_URL</code>
</div>
@@ -54,12 +54,14 @@ title: 2022 Week 38 How to create a static website with Jekyll and deploy it on
<code>$ jekyll new --skip-bundle .</code><br>
</div>
(make sure you got the dot)<br>
Open the Gemfile that Jekyll created and comment out the line which starts with <i>gem "jekyll"</i><br>
</div>
<div>
<h3>Edit Gemfile</h3>
Open the Gemfile that Jekyll created and comment out (#) the line which starts with <i>gem "jekyll"</i><br>
Add the github-pages gem by editing the line starting with # gem "github-pages".<br>
Change this line (# gem "github-pages") to:<br>
<i>gem "github-pages", "~> GITHUB-PAGES-VERSION", group: :jekyll_plugins</i><br>
You can find the actual version of GitHub-pages <a href="https://rubygems.org/gems/github-pages" target="_blank">here</a><br>.
You can find the actual version of GitHub-pages <a href="https://rubygems.org/gems/github-pages" target="_blank">here</a>.<br>
Now save and close the Gemfile.<br>
<br>
@@ -73,6 +75,7 @@ title: 2022 Week 38 How to create a static website with Jekyll and deploy it on
<h3>Learn Jekyll</h3>
Follow <a href="https://jekyllrb.com/docs/step-by-step/01-setup/#create-a-site" target="_blank">this</a> guide to learn Jekyll. Make sure that all files and directories you create are in the localDev-directory.<br>
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)<br>
If it is, you have to not comment it out and do bundle install again. Afterwards you can test locally with jekyll serve.
</div>
<div id="buildProject">
<h3>Build Project</h3>

View File

@@ -2,8 +2,8 @@ div.console {
background-color: lightgray;
color: black;
padding-left: 10px;
padding-top: 5px;
padding-bottom: 5px;
padding-top: 10px;
padding-bottom: 10px;
}
div.outerDiv {