The main Apache CloudStack Web site is managed using the Apache CMS. All of the content is stored in the Apache CloudStack Subversion repository. To make changes to the site - modifying existing content or adding/removing content - you either need to use the Web interface or make changes via SVN.
This guide will explain how to make changes via SVN. Even if you're not a committer to Apache CloudStack, it's not that hard.
If you need to report a bug in the content, or request new content, please open a Jira ticket with the Component field set to Website. Note that the Wiki is not part of the Website component. (Edit boldly!) Assign the bug to Joe Brockmeier.
To check out the Web site, use:
svn co
https://svn.apache.org/repos/asf/cloudstack/site/
The content is under site/trunk/content/cloudstack/
. The site template is under site/trunk/templates
, and we'll cover that shortly.
You'll five kinds of content here:
.mdtext
extension. These are Markdown files that are converted to HTML when processed by the Apache build system.site/trunk/content/cloudstack/images
directory. If you add images to the site, please try to be sure that they're optimized for the Web. (That is, make sure they've been optimized for size so that users aren't downloading files larger than 1MB when it's not necessary.)site/trunk/content/cloudstack/css
directory. The CSS for the current iteration of the site comes from the Bootstrap project (lightly modified for the CloudStack site).site/trunk/content/cloudstack/js
directory. The JavaScript for the current iteration of the site comes from the Bootstrap project.For the most part, you'll only need to work with the Markdown files.
If you need to make a change to the site content, follow these steps:
svn co
https://svn.apache.org/repos/asf/cloudstack/site/
svn up
to ensure that you're working on the latest version..mdtext
files (as opposed to HTML).svn add
like so: svn add
newfile.mdtext
. You can omit this if the file already existed.svn status
. You should see something like this:[jzb@localhost cloudstack]$ svn status M mailing-lists.mdtext
svn status
shows the changes you expect to see, you're ready to commit to SVN. Use svn ci -m "Useful commit message goes here"
.[jzb@localhost cloudstack]$ svn ci -m "Modified the mailing list page slightly. Added links to the archives." Sending mailing-lists.mdtext Transmitting file data . Committed revision 1447815.
curl -sL http://s.apache.org/cms-cli | perl
You'll be prompted for the project name, your username, and password.
Note that you'll need to have the LWP::Protocol::https (this is the perl-LWP-Protocol-https
package on Fedora) and possibly other dependencies to work. Alternately, you can run:
ssh -t _user_@people.apache.org publish.pl cloudstack _apacheID_
svn co
https://svn.apache.org/repos/asf/cloudstack/site/
svn up
to ensure that you're working on the latest version..mdtext
files (as opposed to HTML).svn add
like so: svn add
newfile.mdtext
. You can omit this if the file already existed.svn status
. You should see something like this:[jzb@localhost cloudstack]$ svn status M mailing-lists.mdtext
svn status
shows the changes you expect to see, you're ready to create a diff.