55## Table of contents
66
77- [ Fragaria.cz website] ( #fragariacz-website )
8- - [ Table of contents] ( #table-of-contents )
8+ - [ Table of contents] ( #table-of-contents )
99- [ Creating posts] ( #creating-posts )
10- - [ Providing images for the posts] ( #providing-images-for-the-posts )
11- - [ Including images within the post body] ( #including-images-within-the-post-body )
12- - [ Including Youtube videos in the post body] ( #including-youtube-videos-in-the-post-body )
13- - [ Including embeddables like iframes] ( #including-embeddables-like-iframes )
14- - [ Highlighting code blocks] ( #highlighting-code-blocks )
10+ - [ Providing images for the posts] ( #providing-images-for-the-posts )
11+ - [ Including images within the post body] ( #including-images-within-the-post-body )
12+ - [ Including Youtube videos in the post body] ( #including-youtube-videos-in-the-post-body )
13+ - [ Including embeddables like iframes] ( #including-embeddables-like-iframes )
14+ - [ Highlighting code blocks] ( #highlighting-code-blocks )
1515- [ Development] ( #development )
16- - [ Installation] ( #installation )
17- - [ Install build dependencies] ( #install-build-dependencies )
18- - [ Ubuntu 18.04] ( #ubuntu-1804 )
19- - [ Fedora 28] ( #fedora-28 )
20- - [ Install rbenv] ( #install-rbenv )
21- - [ Installing dependencies on macOS] ( #installing-dependencies-on-macos )
22- - [ Installing the app] ( #installing-the-app )
23- - [ Launching the app] ( #launching-the-app )
24- - [ Viewing future articles and drafts] ( #viewing-future-articles-and-drafts )
25- - [ Using Docker] ( #using-docker )
16+ - [ Installation] ( #installation )
17+ - [ Install build dependencies] ( #install-build-dependencies )
18+ - [ Ubuntu 18.04] ( #ubuntu-1804 )
19+ - [ Fedora 28] ( #fedora-28 )
20+ - [ Install rbenv] ( #install-rbenv )
21+ - [ Installing dependencies on macOS] ( #installing-dependencies-on-macos )
22+ - [ Installing the app] ( #installing-the-app )
23+ - [ Launching the app] ( #launching-the-app )
24+ - [ Viewing future articles and drafts] ( #viewing-future-articles-and-drafts )
25+ - [ Using Docker] ( #using-docker )
26+ - [ Deployment] ( #deployment )
2627
2728# Creating posts
2829
@@ -44,11 +45,11 @@ E.g.: `2014-10-20-ako-vyrobit-staticky-web-efektivne.md`
4445
4546At minimum, following properties need to be declared in the front matter:
4647
47- - ` title ` : title of your post
48- - ` date ` : publication date of the post in ISO format (e.g. 2014-10-20T13:37:00.002+02:00)
49- - ` author ` : your name
50- - ` lang ` : language of the post (cs, sk, en)... we generally recommend writing all posts in English
51- - ` tags ` : keywords of the post as a YAML array
48+ - ` title ` : title of your post
49+ - ` date ` : publication date of the post in ISO format (e.g. 2014-10-20T13:37:00.002+02:00)
50+ - ` author ` : your name
51+ - ` lang ` : language of the post (cs, sk, en)... we generally recommend writing all posts in English
52+ - ` tags ` : keywords of the post as a YAML array
5253
5354## Providing images for the posts
5455
@@ -118,7 +119,6 @@ First, install required development dependencies:
118119
119120#### Ubuntu 18.04
120121
121-
122122```
123123sudo apt-get update
124124sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common
@@ -175,8 +175,8 @@ Switch to the cloned repository:
175175cd fragaria.cz
176176```
177177
178- Then, install Ruby gems using following from * within the
179- repository directory * :
178+ Then, install Ruby gems using following from _ within the
179+ repository directory _ :
180180
181181```
182182rbenv install # Installs Ruby version required by the project
@@ -210,15 +210,14 @@ to get things up and running.
210210First, make sure you have Docker along with ` docker-comopose ` installed. To do
211211so, please follow a guide according to you OS of choice:
212212
213- * [ Windows] ( https://docs.docker.com/docker-for-windows/install/ )
214- * [ macOS] ( https://docs.docker.com/docker-for-mac/install/ )
215- * [ Ubuntu] ( https://docs.docker.com/install/linux/docker-ce/ubuntu/ )
216- * [ Fedora] ( https://docs.docker.com/install/linux/docker-ce/fedora/ )
213+ - [ Windows] ( https://docs.docker.com/docker-for-windows/install/ )
214+ - [ macOS] ( https://docs.docker.com/docker-for-mac/install/ )
215+ - [ Ubuntu] ( https://docs.docker.com/install/linux/docker-ce/ubuntu/ )
216+ - [ Fedora] ( https://docs.docker.com/install/linux/docker-ce/fedora/ )
217217
218218` docker-compose ` can be installed by following
219219[ official resources] ( https://docs.docker.com/compose/install/ ) .
220220
221-
222221** Note for Fedora** : It's better to run docker-compose without ` sudo ` . Please
223222follow [ this guide] ( https://bluntinstrumentsoftesting.com/2016/12/03/run-docker-without-sudo-in-fedora-25/ )
224223to allow running without it.
@@ -232,3 +231,16 @@ docker-compose up
232231
233232First boot might take some time, but you should be presented with a running
234233app after a while.
234+
235+ # Deployment
236+
237+ Use provided ` build.sh ` script. It will build the site using Docker and automatically commit to the ` gh-pages ` branch.
238+ You simply confirm your will by pushing:
239+
240+ ``` sh
241+ ./build.sh
242+ git push
243+ ```
244+
245+ Note: make sure you've committed all your work before running this as it will fail when switching to ` gh-pages ` branch
246+ otherwise.
0 commit comments