0021
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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"><div class="outerDiv">
|
||||
<?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"><div class="outerDiv">
|
||||
<div id="prerequisits">
|
||||
<h3>Prerequisits</h3>
|
||||
Install <a href="https://git-scm.com/downloads" target="_blank">Git</a><br>
|
||||
@@ -46,9 +46,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>
|
||||
@@ -59,7 +58,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>
|
||||
@@ -73,11 +72,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>
|
||||
|
||||
Reference in New Issue
Block a user