Pull down the latest website codebase for the current posts
git pull
Create a new entry in the www/_posts directory.
Use an earlier post an a template. Edit your md file to remove undesired markdown links. If there is a phrase in square brackets that isn't a CB-xxxx reference, escape it with backslashes. Otherwise, heruko might error out and fail to build all the html.
[CB-1234] \[iOS\] \[Camera\] add a whizzbang to the snarfblat
Set a marker where the summary on the home page should stop displaying. Add the following html comment line to your md file at the desired cutoff point:
<!--more-->
In the front matter of your blog entry, set the date:
field to the desired date that you want to appear near the title. Be aware that the date (explicit here or implied via the filename) will be used to generate the relative path to this html file (e.g. "/announcements/2014/09/22/cordova-361.html"), as will the categories:
front matter value.
date: 2014-09-22
categories: announcements
Run gulp link-bugs to linkify
gulp link-bugs
Preview it locally by running the site using gulp
Raise a Pull Request with the changes
Announcements - releases, call for translators, etc
Core Content - If the content has to do with cordova-core, or publishing guides, etc., we should publish the full text directly on the cordova Blog (by whichever author), as-if written by the organization.
Linked Posts - If the content was written by a contributor and is worth curating for the whole community, but is not really core ie. non-core plugins, dev tips, research, opinion-pieces, statistics, etc., post a short description, perhaps adding a document-snippet, but then link to the externally hosted content, making it clearly not written by the organization.
howto
news
releases
announcements
blog
(the catch-all category)tools
plugins
android
ios
windowsphone
blackberry
plugin-$FOO
cli
performance
last-week
security
<!--more-->
tag to specify the cutoff point for displaying your post on the main page.To get a summary of changes (and count the changes):
for l in cordova-*; do ( cd $l ; git log --format="$(printf %30s $l) %s" --no-merges --since='1 week ago' ) ; done | grep -iv version | grep -v CHANGELOG > all_logs.txt
To get the number of authors:
for l in cordova-*; do ( cd $l ; git log --format="%an" --no-merges --since='1 week ago' ) ; done | sort | uniq | wc -l
Create a copy of a previous post and update it.
Run:
for d in *-plugin-*; do ( cd $d && echo "* $(basename $PWD): $(grep version plugin.xml|grep -v encoding|cut -d'"' -f2)" ) ; done | grep '^\*'