Write your article in Markdown, save it to _posts
folder.
If this is your first post, prepare your Bio.
Launch the site using jekyll, does your article is rendered correctly?
Create a Pull Request and get some feedback.
- _posts/2015-03-09-shaken-not-stirred.md
- _posts/2014-11-12-my-new-awsome-post-about-dreams.md
If first time on the blog, add your short Bio to this file:
_data/members.yml
Don’t forget about your photo, add it here:
img/authors/
Then, prepare your profile page. Create a file:
authors/firstname.lastname/index.md
using the following template:
---
layout: author_index
author: firstname.lastname
---
Articles have to be written in Markdown. Use github-flavored-markdown
Read more about Markdown at
- http://daringfireball.net/projects/markdown/
- syntax http://daringfireball.net/projects/markdown/syntax
We use Jekyll Front Matter for metadata. You should put following HEAD into your article.
---
layout: post
title: Java Testing Toolbox
author: rafal.glowinski
tags: [tech, java, testing, rest, mockito, junit, assertj]
---
There are two special tags: tech
and agile
.
Choose tech
if you want to publish on Tech Blog.
Choose agile
if you want your to publish on Agile Blog.
Text lines should not be longer than 120 characters, for the same reason as lines in the source code.
Inlined code fragments like user_id
should be wrapped with backtick quotes (`).
Code blocks should be formatted with syntax highlighting,
using github style syntax - ```language
```java
public class User {
//...
```
Avoid raw links like http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Preconditions.html.
Instead, use meaningful names for links, like Preconditions.
Avoid enigmatic names for links, like see it here.
When you mention some technology, library or project like Mockito , link it at least first time when it appears in the text.
If you are using only one level of headers use ### (h3).
If you want to distinguish between section headers and subsection headers, use ## (h2) for section headers ### (h3) for subsection headers.
Never use # (H1) as it’s reserved for the title. Don’t repeat the title in the first header (Jekyll takes care of rendering the title of your post).
In English, we use hyphens (-) for hyphenation and phrases like 4–10 points, so-so.
For separating two parts of a sentence we always use em dash character (—).
For example: I pay the bills — she has all the fun
For keyboard shortcuts, refer to the table below or just copy-paste a special character from this page.
In good typography, straight quotes should be avoided..
Instead of using straight single quote (') and the straight double quote ("), use curly quotes:
- opening single quote (‘),
- closing single quote (’),
- opening double quote (“),
- and closing double quote (”).
Why? Compare:
"That's a 'magic' sock." // wrong“That’s a ‘magic’ sock.” //right
Most frequently you will use the closing single quote (’) for words like: don’t, it’s.
char | name | Windows | Mac | Linux | HTML |
---|---|---|---|---|---|
— | em dash | alt 0151 | option + shift + hyphen | Compose, -, -, - | — |
‘ | opening single quote | alt 0145 | option + ] | Compose, ', < | ‘ |
’ | closing single quote | alt 0146 | option + shift + ] | Compose, ', > | ’ |
“ | opening double quote | alt 0147 | option + [ | RightAlt + v | “ |
” | closing double quote | alt 0148 | option + shift + [ | RightAlt + b | ” |
You can visit fsymbols for information about configuring and using Compose key on Linux. You can also enter any Unicode character based on its hex code as described here.