Return-Path: X-Original-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC6B21863A for ; Tue, 1 Mar 2016 00:12:15 +0000 (UTC) Received: (qmail 92609 invoked by uid 500); 1 Mar 2016 00:12:15 -0000 Delivered-To: apmail-asterixdb-notifications-archive@asterixdb.apache.org Received: (qmail 92573 invoked by uid 500); 1 Mar 2016 00:12:15 -0000 Mailing-List: contact notifications-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list notifications@asterixdb.incubator.apache.org Received: (qmail 92564 invoked by uid 99); 1 Mar 2016 00:12:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2016 00:12:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 32090C09BE for ; Tue, 1 Mar 2016 00:12:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.126 X-Spam-Level: ** X-Spam-Status: No, score=2.126 tagged_above=-999 required=6.31 tests=[MISSING_HEADERS=1.207, SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id FK0FzISCIJKD for ; Tue, 1 Mar 2016 00:12:12 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 106EE5FAE1 for ; Tue, 1 Mar 2016 00:12:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id 0F04A241902; Mon, 29 Feb 2016 16:07:35 -0800 (PST) Date: Mon, 29 Feb 2016 16:07:35 -0800 From: "Till Westmann (Code Review)" CC: Jenkins , Ian Maxon Reply-To: tillw@apache.org X-Gerrit-MessageType: merged Subject: Change in incubator-asterixdb-site[asf-site]: add instructions for 'git gerrit update' X-Gerrit-Change-Id: I1bd5d9b1adff37436d2ab14d7d76ae8fe9020388 X-Gerrit-ChangeURL: X-Gerrit-Commit: 1dba888ae8937da44c9aeb50cb22193ffea17877 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.8.4 Message-Id: <20160301000735.0F04A241902@unhygienix.ics.uci.edu> Till Westmann has submitted this change and it was merged. Change subject: add instructions for 'git gerrit update' ...................................................................... add instructions for 'git gerrit update' Change-Id: I1bd5d9b1adff37436d2ab14d7d76ae8fe9020388 Reviewed-on: https://asterix-gerrit.ics.uci.edu/682 Reviewed-by: Ian Maxon --- M content/site.html M site.md 2 files changed, 40 insertions(+), 26 deletions(-) Approvals: Ian Maxon: Looks good to me, approved diff --git a/content/site.html b/content/site.html index 370df09..4c13db6 100644 --- a/content/site.html +++ b/content/site.html @@ -109,24 +109,37 @@

The website is managed using git. Clone the site as usual

-
     ➤ git clone https://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site.git
+
     ➤ git clone -b asf-site https://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site.git
+
+ +

and cd into the clone

+ +
     ➤ cd incubator-asterixdb-site
 

You will notice lots of Markdown files and HTML templates in the repository root. The compiled content of the website itself is served from the content/ folder in this repository. That is to say, that the actual content of the website itself, as well as its sources are stored in the same repository. Additionally, the main branch on this repository is asf-site and not master

Gerrit is used to submit code reviews for the website just as it is with the main codebase. The main difference the site is not strictly subject to code reviews.

-

To add the Gerrit repository for this site, add it as a normal git remote:

+

Then, you likely will want to check out to make your own topic branch as to not work directly on the “live” branch, like so:

-
    ➤ git remote add gerrit ssh://YOU@asterix-gerrit.ics.uci.edu:29418/incubator-asterixdb-site
+
    ➤ git checkout -b YOU/site
+
+ +

And perform the git-gerrit init on this branch

+ +
    ➤ git gerrit init -u ssh://YOU@asterix-gerrit.ics.uci.edu:29418/ -p incubator-asterixdb-site
 

Making a change to the site

-

The general overview is as follows: -- Make edits and check the output of ‘jekyll build’ -- Commit the change and propose it for review -- Either wait for a review, or submit the change

+

The general overview is as follows:

+ +
    +
  • Make edits and check the output of jekyll build
  • +
  • Commit the change and propose it for review
  • +
  • Either wait for a review, or submit the change
  • +

Editing and viewing the change.

@@ -137,25 +150,28 @@

This sets up a small integrated web server and compiles the site dynamically as it is edited. Once you are satisfied with how the site looks, go ahead and commit your changes with git.

-

Right now git gerrit submit isn’t used for the website, so you must construct the proper commit for Gerrit by hand. In your commit message, be sure to include a Change-Id footer that is unique to your change. You may take previous Change-Id: footers as an example.

-

Once you have made your commit, push it to Gerrit for review:

-
   ➤ git push gerrit HEAD:refs/for/asf-site
+
   ➤ git gerrit submit -b asf-site
 
-

If no Change-Id is provided, “ERROR: missing Change-Id in commit message footer” is returned when attempting to push to Gerrit. The error description also contains a) a proposal for a Change-Id that can be pasted to the commit message and b) instructions how to install a commit-msg hook into the local git repository that will automatically add a Change-Id.

+

For longer edits you might need to update your local asf-site mirror, and then merge that onto your working branch. This will prevent your branch from falling too far out of date, and ensure that your code review proposals will merge successfully with master. Similar to the way this is done for code changes you can use

+ +
   ➤ git gerrit update -b asf-site
+
+ +

to do this.

Submitting the change to the live site

When the submitted review is committed in Gerrit, pull it and overwrite your current asf-site branch:

-
   ➤ git pull gerrit
+
   ➤ git fetch gerrit
 

Then, push the exact commit from the Gerrit web interface to the ASF git repository. Do this with care! ASF git doesn’t allow hard resets on branches, so whatever you push here is final.

-
   ➤ git push origin (SHA1 of submitted commit)
+
   ➤ git push origin (SHA1 of submitted commit):asf-site
 
diff --git a/site.md b/site.md index 06e87fb..44aaaed 100644 --- a/site.md +++ b/site.md @@ -24,18 +24,19 @@ ➤ git clone -b asf-site https://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site.git +and `cd` into the clone + + ➤ cd incubator-asterixdb-site + You will notice lots of Markdown files and HTML templates in the repository root. The compiled content of the website itself is served from the `content/` folder in this repository. That is to say, that the actual content of the website itself, as well as its sources are stored in the same repository. Additionally, the main branch on this repository is `asf-site` and not `master` Gerrit is used to submit code reviews for the website just as it is with the main codebase. The main difference the site is not strictly subject to code reviews. - Then, you likely will want to check out to make your own topic branch as to not work directly on the "live" branch, like so: - ➤ git checkout -b YOU/site And perform the git-gerrit init on this branch - ➤ git gerrit init -u ssh://YOU@asterix-gerrit.ics.uci.edu:29418/ -p incubator-asterixdb-site @@ -43,7 +44,8 @@ ## Making a change to the site The general overview is as follows: -- Make edits and check the output of 'jekyll build' + +- Make edits and check the output of `jekyll build` - Commit the change and propose it for review - Either wait for a review, or submit the change @@ -51,31 +53,27 @@ For whichever section of the site you want to edit, go ahead and do so with the text editor of your choice. Then, to see what your change looks like, in the repository root, execute: - ➤ jekyll serve --watch - This sets up a small integrated web server and compiles the site dynamically as it is edited. Once you are satisfied with how the site looks, go ahead and commit your changes with git. -Right now git gerrit submit isn't used for the website, so you must construct the proper commit for Gerrit by hand. In your commit message, be sure to include a Change-Id footer that is unique to your change. You may take previous Change-Id: footers as an example. - Once you have made your commit, push it to Gerrit for review: - ➤ git gerrit submit -b asf-site +For longer edits you might need to update your local `asf-site` mirror, and then merge that onto your working branch. This will prevent your branch from falling too far out of date, and ensure that your code review proposals will merge successfully with `master`. Similar to the way this is done for code changes you can use + + ➤ git gerrit update -b asf-site + +to do this. ### Submitting the change to the live site When the submitted review is committed in Gerrit, pull it and overwrite your current asf-site branch: - ➤ git fetch gerrit - Then, push the exact commit from the Gerrit web interface to the ASF git repository. Do this with care! ASF git doesn't allow hard resets on branches, so whatever you push here is final. - ➤ git push origin (SHA1 of submitted commit):asf-site - -- To view, visit https://asterix-gerrit.ics.uci.edu/682 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: merged Gerrit-Change-Id: I1bd5d9b1adff37436d2ab14d7d76ae8fe9020388 Gerrit-PatchSet: 2 Gerrit-Project: incubator-asterixdb-site Gerrit-Branch: asf-site Gerrit-Owner: Till Westmann Gerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Till Westmann