FeaturesPluginsDocs & SupportCommunityPartners

Working With Content on www

Introduction

This guide is intended for anyone who would like to submit content for the www.netbeans.org site (www specifically, not the module websites like core.netbeans.org). "Submitting content" might mean corrections or updates to existing docs, completely new docs, or translated versions of some docs.

www is a module website in CVS just like any other, and can be checked out. However the NetBeans Web Team have implemented a publishing system for www, and adding or editing content there is quite different than for other module websites.

The Publishing System

Basically, the "content" part of any www page is commited to a staging server at testwww/www. You can browse the content there at http://testwww.netbeans.org/ (though that site is not exposed publicly or linked from anywhere). Note that none of the headers, footers, or navigation appear there. The publishing system reads content from that site, wraps it in navigation templates, and publishes it to the live site at www/www/.This means that all changes or additions should be made on testwww/www/! Never commit to www/www/.

The only exceptions are buildmasters and release engineers who may need to commit to special directories like www/www/updates/ and www/www/download/.

Some Guidelines

Please observere the following guidelines when commiting to the site :

Got Permissions ?

If you have CVS write permissions for www and testwww, and you are comfortable with how the publishing system works, it's probably fine to go ahead and commit your changes yourself. If you don't have permissions, or are not 100% comfortable with CVS and/or html, please see the Submitting Updates section below.

When your file is ready, the procedure to commit your files is the same for any CVS commit.

  1. Checkout the website content (testwww!). If you do :

       $ cvs -z4 co testwww/www

    you will get the full website - including images, so it is quite large and might take a while.

  2. Make your updates/additions. testwww/www/ maps to the docroot of http://www.netbeans.org/, so for eg to edit

       http://www.netbeans.org/directory1/file2.html

    look for the file

       testwww/www/directory1/file2.html

    Edit or create your file and check your changes in a browser to make sure all looks good.

  3. If you are editing and existing file, check nobody else has edited the file since you started :

       $ cvs update dir1/file2.html

    If you are adding a new file, add it to CVS :

       $ cvs add dir1/file2.html

    Assuming all is well, go ahead and commit it :

       $ cvs commit -m "brief informative message about this update" dir1/file2.html

    You can immediately view your changes on the testwww site, so double check them. Browse to http://testwww.netbeans.org/dir1/file2.html.

    From here, the publishing system will automaticlaly propagate your changes to the live www site. This will happen within 1 hour.

Submitting Updates

If you don't have a CVS account, or permissions to commit to www, and you've found something on the site that needs updating, please let us know about it. Even better, contribute the updated content! Remember all updates should be made against testwww, rather than www, as described in the publishing system section above.

There are a few preferred methods for submitting updates - using one of the following methods will help the webmasters to quickly and easily verify your changes and apply them.

  • Submit a patch for the HTML. This is by far the easiest for the webmasters and should ensure the fix is applied and goes live fastest. The following example uses the Unix command line CVS, if you are using Windows or a GUI client the basic procedure should be the same.

    1. Checkout the website content. If you do :

         $ cvs -z4 co testwww/www

      you will get the full website - including images, so it is quite large and might take a while.

    2. Make your updates. Find the file you want to update. testwww/www/ maps to the docroot of http://www.netbeans.org/, so for eg to edit

         http://www.netbeans.org/directory1/file2.html

      look for the file

         testwww/www/directory1/file2.html

      Edit the file and check your changes in a browser to make sure all looks good.

    3. Make the patch. Once you're done with your edits, from the command line, do :

         $ cd testwww/www/
         $ cvs diff -u directory1/file2.html > file2.patch

      Replacing directory1 and file2.html with the real location and filename of course.

    4. Submit your patch! Either file an issue, adding the patch as an attachment, or simply email it - as an attachment - to webmaster. Please explicitly summarise what the patch is for, and why you think it's needed.

  • Submit the whole updated HTML file. If you'd rather not use CVS or checkout the site, you can simply send in the update HTML file.

    1. Browse to the testwww version of the page. First find the page on the normal www site, and then in the location bar of your browser change www to testwww. Eg, if the problem page is at :

         http://www.netbeans.org/directory1/file2.html

      then edit the URL to read :

         http://testwww.netbeans.org/directory1/file2.html

      and hit return - you'll see the same page, minus navigation, logos etc.

    2. Edit the HTML source. Select the View -> Source menu item in your browser. Select all of the source, and save it as plain text somewhere on your system. Edit the page as you wish, and check your changes in a browser to make sure all looks good.

    3. Submit the file! Either file an issue, adding the updated file as an attachment, or simply email it - as an attachment - to webmaster. Please explicitly summarise what the updates are, and for which file, and why you think it's needed.

  • Just submit the text of your updates!. Obviously quickest and easiest to do, but might take more time for the webmasters to check and apply your suggestions.

Submitting Links to Off-Site Docs

If there's content hosted on some other site that you think is relevant to netbeans.org, send us the link, including a brief description of what the article is about.

Translating Content

If you're interested in translating either web content or the IDE itself into your native language, we'd love your help. See the following guides to get started :

The Right Column

To add content to the right column of a page on www, you need to put that content in a special .inc file. The .inc file is not a standalone html file, it should not include any <head>, <title> or <body> tags! Just the content you want, eg styled text.

The .inc file must live in the same directory as the main parent file. The filename is critical - it should always take the form ${parent_filename}.inc.html. This is perhaps best explained by looking at some examples :

For file ...
Put right col content in ...
downloads.html
downloads.inc.html
community/releases/roadmap.html
community/releases/roadmap.inc.html
features/ide/index_ru.html
features/ide/index_ru.inc.html
kb/60/using-netbeans/ant_zh_CN.html
kb/60/using-netbeans/ant_zh_CN.inc.html

Projects

Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Open ESB - The Open Enterprise Service Bus Powered by