This commit is contained in:
WickedJack99
2022-09-21 15:09:44 +02:00
parent 600097aa48
commit ebeeda5984
5 changed files with 25 additions and 21 deletions

View File

@@ -65,9 +65,8 @@
Create a new Jekyll-project at localDev-directory:<br>
<div class="console">
<code>$ jekyll new --skip-bundle .</code><br>
(make sure you got the dot)
</div>
<br>
(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>
Add the github-pages gem by editing the line starting with # gem "github-pages".<br>
@@ -78,7 +77,7 @@
<br>
Now still being at the localDev-directory, install the bundle:<br>
<div>
<div class="console">
<code>$ bundle install</code><br>
</div>
Optionally you can make changes at the <i>_config.yml</i> file.<br>
@@ -92,11 +91,13 @@
<h3>Build Project</h3>
After creating all necessary files and dirs, you can make a production build:<br>
Note that all files at _site will be cleared!
<code>$ JEKYLL_ENV=production bundle exec jekyll build</code><br>
<div class="console">
<code>$ JEKYLL_ENV=production bundle exec jekyll build</code>
</div>
Your Jekyll-project was now build and stored at _site.<br>
Now move the content of the localDev/_site to docs:<br>
<div>
<code>$ mv /localDev/_site docs</code><br>
<div class="console">
<code>$ cp -r _site/* ../docs</code><br>
</div>
And push your changes to your central GitHub-Repository.
</div>

View File

@@ -1 +1 @@
div.console{background-color:lightgray;color:black;padding-left:10px;padding-top:5px;padding-bottom:5px}div.outerDiv{padding-left:20px}
div.console{background-color:lightgray;color:black;padding-left:10px;padding-top:5px;padding-bottom:5px}div.outerDiv{padding-left:50px;padding-right:50px}

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2022-09-21T14:36:13+02:00</updated><id>/feed.xml</id><title type="html">Mr.</title><subtitle>Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.</subtitle><entry><title type="html">2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages</title><link href="/2022/09/20/how-to-create-githubpage.html" rel="alternate" type="text/html" title="2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages" /><published>2022-09-20T00:00:00+02:00</published><updated>2022-09-20T00:00:00+02:00</updated><id>/2022/09/20/how-to-create-githubpage</id><content type="html" xml:base="/2022/09/20/how-to-create-githubpage.html">&lt;div class=&quot;outerDiv&quot;&gt;
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2022-09-21T15:09:06+02:00</updated><id>/feed.xml</id><title type="html">Mr.</title><subtitle>Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.</subtitle><entry><title type="html">2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages</title><link href="/2022/09/20/how-to-create-githubpage.html" rel="alternate" type="text/html" title="2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages" /><published>2022-09-20T00:00:00+02:00</published><updated>2022-09-20T00:00:00+02:00</updated><id>/2022/09/20/how-to-create-githubpage</id><content type="html" xml:base="/2022/09/20/how-to-create-githubpage.html">&lt;div class=&quot;outerDiv&quot;&gt;
&lt;div id=&quot;prerequisits&quot;&gt;
&lt;h3&gt;Prerequisits&lt;/h3&gt;
Install &lt;a href=&quot;https://git-scm.com/downloads&quot; target=&quot;_blank&quot;&gt;Git&lt;/a&gt;&lt;br&gt;
@@ -46,9 +46,8 @@
Create a new Jekyll-project at localDev-directory:&lt;br&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ jekyll new --skip-bundle .&lt;/code&gt;&lt;br&gt;
(make sure you got the dot)
&lt;/div&gt;
&lt;br&gt;
(make sure you got the dot)&lt;br&gt;
Open the Gemfile that Jekyll created and comment out the line which starts with &lt;i&gt;gem &quot;jekyll&quot;&lt;/i&gt;&lt;br&gt;
Add the github-pages gem by editing the line starting with # gem &quot;github-pages&quot;.&lt;br&gt;
@@ -59,7 +58,7 @@
&lt;br&gt;
Now still being at the localDev-directory, install the bundle:&lt;br&gt;
&lt;div&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ bundle install&lt;/code&gt;&lt;br&gt;
&lt;/div&gt;
Optionally you can make changes at the &lt;i&gt;_config.yml&lt;/i&gt; file.&lt;br&gt;
@@ -73,11 +72,13 @@
&lt;h3&gt;Build Project&lt;/h3&gt;
After creating all necessary files and dirs, you can make a production build:&lt;br&gt;
Note that all files at _site will be cleared!
&lt;code&gt;$ JEKYLL_ENV=production bundle exec jekyll build&lt;/code&gt;&lt;br&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ JEKYLL_ENV=production bundle exec jekyll build&lt;/code&gt;
&lt;/div&gt;
Your Jekyll-project was now build and stored at _site.&lt;br&gt;
Now move the content of the localDev/_site to docs:&lt;br&gt;
&lt;div&gt;
&lt;code&gt;$ mv /localDev/_site docs&lt;/code&gt;&lt;br&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ cp -r _site/* ../docs&lt;/code&gt;&lt;br&gt;
&lt;/div&gt;
And push your changes to your central GitHub-Repository.
&lt;/div&gt;

View File

@@ -52,9 +52,8 @@ title: 2022 Week 38 How to create a static website with Jekyll and deploy it on
Create a new Jekyll-project at localDev-directory:<br>
<div class="console">
<code>$ jekyll new --skip-bundle .</code><br>
(make sure you got the dot)
</div>
<br>
(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>
Add the github-pages gem by editing the line starting with # gem "github-pages".<br>
@@ -65,7 +64,7 @@ title: 2022 Week 38 How to create a static website with Jekyll and deploy it on
<br>
Now still being at the localDev-directory, install the bundle:<br>
<div>
<div class="console">
<code>$ bundle install</code><br>
</div>
Optionally you can make changes at the <i>_config.yml</i> file.<br>
@@ -79,11 +78,13 @@ title: 2022 Week 38 How to create a static website with Jekyll and deploy it on
<h3>Build Project</h3>
After creating all necessary files and dirs, you can make a production build:<br>
Note that all files at _site will be cleared!
<code>$ JEKYLL_ENV=production bundle exec jekyll build</code><br>
<div class="console">
<code>$ JEKYLL_ENV=production bundle exec jekyll build</code>
</div>
Your Jekyll-project was now build and stored at _site.<br>
Now move the content of the localDev/_site to docs:<br>
<div>
<code>$ mv /localDev/_site docs</code><br>
<div class="console">
<code>$ cp -r _site/* ../docs</code><br>
</div>
And push your changes to your central GitHub-Repository.
</div>

View File

@@ -7,5 +7,6 @@ div.console {
}
div.outerDiv {
padding-left: 20px;
padding-left: 50px;
padding-right: 50px;
}