This page collects information about the https://netbeans.apache.org website, the main Apache NetBeans website.

The source repository

The sources of the https://netbeans.apache.org website live in in the master branch of https://github.com/apache/incubator-netbeans-website/, inside the 
netbeans.apache.org directory. This is a direct link: https://github.com/apache/incubator-netbeans-website/tree/master/netbeans.apache.org

Content

This is a gradle project, that uses https://jbake.org/ to transform the content inside src/content to HTML.

The content is mainly written in https://asciidoctor.org/docs/asciidoctorj/ but markdown or html content is possible too.

Building

To build the project you need to clone it, and then run the command

./gradlew buildSite

to build it.

Running

You can run the project locally, so that you can visualize it in a web browser, issuing the command:

./gradlew run

Structure

The project has the following structure:

Publishing

Apache infra has set up a web hook that runs a Jenkins job whenever content is merged to master. The Jenkins job is at https://ci-builds.apache.org/job/Netbeans/job/netbeans-website/

The Jenkins job performs these operations:

As of March, 2021, the Jenkins job does not automatically update the website.

Synchronization failures

Sometimes the commit to the "asf-site" branch does not publish the website. In these cases you need to manually resynchronize this using this tool: https://gitbox.apache.org/setup/resync.cgi