Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Latest commit

 

History

History
115 lines (72 loc) · 3.72 KB

BLOG.md

File metadata and controls

115 lines (72 loc) · 3.72 KB

Blog

This page explains how to write a blog post.

The vert.x blog

The vert.x web site has a blog section. Feel free to contribute to the blog by writing posts.

Writing a post

First, fork the https://github.com/vert-x3/vertx-web-site project in order to create a pull request with your content.

Once forked, create a new branch from the master branch. Create a markdown document in src/site/blog/posts.

The documents's filename must be in the form date-title.md or more precisely YYYY-MM-DD-post-title.md. For example, if you want to write a post with the title 'My first blog post' and you want to publish it on 28 June 2078 then the filename should be 2078-06-28-my-first-blog-post.md.

The post must start with some metadata contained in a header part:

---
title: My first blog post
template: post.html
date: 2078-06-28
author: cescoffier
---

An introduction paragraph that will be use as _except_ in the RSS feed.

## Hello
...

Each line contained between the --- lines are metadata. Are required:

  • title: the post title
  • template: must be post.html
  • date: the publication date. The date must be provided using the YYYY-MM-DD format
  • author: the Github account of the author, such as cescoffier or vietj

After the second ---, you can start the post. To avoid messing up the style, the first header (your title) should use ##. Sub-section would use ###. The post are written in markdown, so code snippets are delimited using ```.

Assets

If your post have asset, please add them into src/site/assets/blog/a_directory_identifying_your_post. Please keep assets size small. Assets are references using an absolute URL such as: /assets/blog/....

Style

  1. Make sure your post does not contain hard wraps.
  2. Ensure the code is using the right markdown syntax
  3. Avoid tables

Gist

If you have long code snippet, please use a gist (http://gist.github.com). It will let reader to copy directly the code from gist, and also provide improvements.

Once your gist is created and ready, copy the embed url in the post (at the right location). The embed url is a script inserting the Gist content.

Admonitions

There is a built-in (home made) admonitions support for the blog posts. Are supported:

  • NOTE
  • INFO
  • WARNING
  • IMPORTANT

To create an admonition use the following syntax: [NOTE title | content] such as:

[NOTE this is my title | this is the content of the note, it can be pretty long, and contain **important** messages. In can be very very long.... Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.]

[WARNING Warning Warning | You need to
be careful about **this** (yes it can be multi-line)]

[INFO Info | Did you check the [news](http://lemonde.fr)?]

[IMPORTANT Something very important | don't forget to subscription to the google group.]

Title can be skipped using [NOTE_content]:

[IMPORTANT Wow, this is an untitled important message.]

Making a PR

Once your post is written create a pull request and we will publish your post. The pull request should only contain the file related to your post. Before sending the pull request, add the following header:

draft: true

It lets us review the post and decide when it goes public.

Publication

Once submitted your post is going to be published pretty soon. However, we won't publish more than two posts in a week, so it may be postponed a bit.

Drafts

You can add a special metadata to hide the post from the web site:

draft: true

Drafts are not processed, so won't be generated at all.

RSS Feed

The blog generates an Atom feed available on http://vertx.io/feed.xml. Don't forget to subscribe.