You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ma...@apache.org on 2013/07/14 18:25:24 UTC
svn commit: r1502988 -
/incubator/stratos/site/trunk/content/development/test.mdtext
Author: madhura
Date: Sun Jul 14 16:25:24 2013
New Revision: 1502988
URL: http://svn.apache.org/r1502988
Log:
test page created
Added:
incubator/stratos/site/trunk/content/development/test.mdtext
Added: incubator/stratos/site/trunk/content/development/test.mdtext
URL: http://svn.apache.org/viewvc/incubator/stratos/site/trunk/content/development/test.mdtext?rev=1502988&view=auto
==============================================================================
--- incubator/stratos/site/trunk/content/development/test.mdtext (added)
+++ incubator/stratos/site/trunk/content/development/test.mdtext Sun Jul 14 16:25:24 2013
@@ -0,0 +1,127 @@
+Title: How to edit the Apache Stratos website
+Notice: Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+This HowTo documentation will show the needed steps to edit the stratos
+website. This includes creation of new pages, modification, and deletion - for files
+and sub-directories.stratos
+
+## How it works in general
+
+The website is hosted in a Content Management System (CMS). You will not edit the
+HTML pages directly. The actual edit is split up in 2 parts:
+
+ 1. First you edit the content which is provided as [Markdown text][1] (mdtext).
+ This will be committed into the staging section (see the SVN commit mail with
+ your log message) and automatically build HTML files out of the the mdtext files
+ (see the commit mail with "Staging update by buildbot" as log messge).
+ Before you publish youe changes in next step, you can verify the changes on the staging site
+ - [http://stratos.staging.apache.org/](http://stratos.staging.apache.org/).
+
+ 2. Second you need to publish the staging part to the production section (see the
+ commit mail with "Publishing merge to stratos site by <your Apache ID>"
+ as log message).
+
+## What do you prefer: Working via commandline or in the browser?
+
+### Via commandline
+
+It is assumed that you have already checked out the code from the SVN repository
+[https://svn.apache.org/repos/asf/incubator/stratos/site/trunk/](https://svn.apache.org/repos/asf/incubator/stratos/site/trunk/).
+
+Edit the file via your favorite editor like vi and finally commit via SVN:
+
+ vi myfile.mdtext
+ svn ci -m "My log message" myfile.mdtext
+
+Now wait a few seconds so that the entire website can be rebuilt. Then:
+
+ curl -sL http://s.apache.org/cms-cli | perl
+
+If this does not work on your local machine just do it on "people.apache.org" by
+executing this:
+
+ ssh -t <user>@people.apache.org publish.pl stratos <your Apache ID>
+
+### Editing in the browser
+
+#### Prerequisites
+
+##### Browser bookmark
+
+Normally you see the webpage in your browser. To update this page with an
+inline-editor and little preview you need to add a link as bookmark to your browser
+(more information see [here][2]).
+
+[Add this link as bookmark][3]
+
+##### Apache ID
+
+Furthermore, you need an Apache ID to authenticate to the system.
+
+#### Starting
+
+Browse to the respective webpage or directory you would like to edit and click on
+the bookmark. Now click on the [Edit this directory] link on the top. The following
+is displayed as content from the CMS.
+
+#### Edit an existing webpage
+
+Click on the actions link [Edit] in the appropriate table cell for editing the
+favorite file. If the file is not in this directory but in a subdir, just click on
+the directory name (e.g., "docs/") to enter this directory.
+
+Now you should see a new webpage with a 4 fields:
+
+ 1. Upper left is the inline editor for text in markdown syntax.
+ 2. Upper right shows the written text as a permanent preview or as HTML source code.
+ 3. Below the editor you can enter a log message.
+ 4. Enter a general header text, e.g., the license of the entered text.
+
+When you have finished writing your text, check the "Log message" box, enter a
+commit message and click on [Submit].
+
+#### Create a new webpage
+
+When in the correct directory, at the top enter a name for the new text file (e.g.,
+"my-file.mdtext"). Now you enter your text (see topic above).
+
+#### Create new subdirectory
+
+When in the correct directory, at the top enter a name for the new directory (e.g.,
+"my-dir/"). Make sure you entered a trailing "/"!
+
+#### Delete a webpage or subdirectory
+
+When in the corrext directory, click on the actions link [Delete] in the appropriate
+table cell and enter a commit message. Finally click on [Submit].
+
+#### How to put into production?
+
+After you have edited your files and/or directories, you need now to pubish your
+modifications into production. For this please click on the link
+[Publish site] on the top of the webpage. Enter a commit message on click on [Submit].
+Alterantively you can click on this [pubish link](https://cms.apache.org/stratos/publish), review the diff's and submit.
+
+### Links
+
+[CMS Documentation Reference][4]
+
+ [1]: http://en.wikipedia.org/wiki/Markdown
+ [2]: https://cms.apache.org/#bookmark
+ [3]: javascript:void(location.href='https://cms.apache.org/redirect?uri='+escape(location.href))
+ [4]: http://www.apache.org/dev/cmsref.html