This page describes how to change the Trafodion web pages. Please refer to the Contribute page for information about other ways to contribute to the Trafodion project.

Source: docs/src in the Trafodion source tree.

Publication: https://git-wip-us.apache.org/repos/asf/incubator-trafodion-site.git

You develop and test all changes in the Trafodion source tree. Once checked in and built, the content of docs/target plus different documentation are copied to https://git-wip-us.apache.org/repos/asf/incubator-trafodion-site.git. The changes are then pushed out by Apache svnpubsub, thereby populating http://incubator.trafodion.apache.org.

Making Changes

The following information helps you understand how to make changes to the web-site content.

Technology

The Trafodion website uses the following technologies:

Note markdown was chosen since it supports inline HTML, which provides better table control than APT. Asciidoc does not work well with the Reflow Maven Skin — we tested.

Note: Markdown supports basic tables only; that is, you’ll need to use <table> HTML definitions for formatted tables such as cells with bullet lists.

Code Organization

The code is located in the docs directory. The code organization follows the Maven standard.

docs/src/site.xml is configured per the Reflow Maven Skin documentation. Pages and menus are defined and configured in this file. By default, all pages use an automated table of contents; override as needed.

docs/src/site/markdown contains the files that generate the different HTML files.

docs/target contains the generated HTML files after you run a build.

Managing Pages

You add/rename/delete pages in docs/src/site/markdown. You make corresponding changes in docs/src/site.xml adding/renaming/deleting pages from menus and defining page configuration; for example: removal of the table of contents bar and the special page formatting provided by the Reflow skin. Refer to the Maven Documentation for more information.

Providing Content

When possible, ensure that you write in active voice and to the point.

Special functions such as buttons etc. can be access by clicking Preview in the theme preview. There’s a <> feature on each function, which allows you to copy the special \<div\> you need to insert the selected object.

Development Environment

Typically, you’ll use Eclipse to develop and build the website pages. The configuration goal is: clean site. The pom.xml file in the top-level directory drives the build steps for the web site.

Testing Changes

The website files are located in docs/target. Open index.html from your browser and test your changes. For example, you want to validate the page layout, page navigation, links, and review the overall content on the pages you modified or added/deleted.

Publishing

Publication is done when a committer is ready to update the external web site. You do not perform these steps as part of checking in changes.

Do the following:

  1. Check in your changes to the Trafodion source tree.
  2. Build Trafodion.
  3. If there are documentation changes: Follow the documentation publishing instructions.
  4. svn checkout https://git-wip-us.apache.org/repos/asf/incubator-trafodion-site.git
  5. Copy content of docs/target into the svn asf-site directory.
  6. svn commit the changes.

Once committed, Apache svnpubsub takes care of populating http://incubator.trafodion.apache.org with your new changes.

Back to top


Disclaimer: Apache Trafodion is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Apache, Apache Maven, Apache Maven Fluido Skin, the Apache feather logo, the Apache Maven project logo and the Apache Incubator project logo are trademarks of The Apache Software Foundation.