Dev.java is the official website for the Java platform and language maintained by the Java Platform Group at Oracle. We accept contributions from community members through this repository. Click here for examples of contributed content.
This repository contains the contribution guidelines as well as a lightweight JavaScript toolchain to build the site into static HTML.
Here are the sections of this document:
Thank you for showing interest in contributing to Dev.java. Getting your content featured and seen by hundreds of thousands of developers worldwide, and the endorsement of the Java Platform Group, is very exciting but will require some effort.
This document will outline the steps to get there. Please read and understand the complete document and any supporting documents as well.
When referring to the editors, the document is referring directly to the Java Developer Relations team on the Java Platform Group at Oracle.
Note: the editors reserve the right to accept, or reject, any contributions. Like contributing to Java itself, the bar is high, but the outcome is your contribution and attribution on the official Java developer site.
The process at a high level is as follows:
requested
content issues.proposed
stage and will use the Issue Template "Content Proposal". This is detailed in the Proposal section below.approved
, you will begin working on your contribution.scheduled
and published
phases.We use GitHub issues to track articles from conception to publication. An article will go through the following stages, which are marked with labels:
All content must start with a Content Proposal. This will be in the form of a GitHub issue using the Content Proposal
issue template. Basic steps:
Content Proposal
. Please make sure the proposal thoroughly describes what you intend to contribute. An outline format detailing the sections and a sentence that describes what will be covered in each section, is preferred.approved
or rejected
.Once your proposal has been moved to the approved
stage, you can begin working on your content. Here are the steps to do this:
main
for each piece of contentContributors must sign the Oracle Contributor Agreement which will be verified once there is a pull request created. Contributed content is made available under the UPL license. You can find examples here.
There is some basic JavaScript infrastructure to help build the static site. There are two options:
nvm use
in this directory.npm install
npm install gulp -g
gulp
A browser should launch viewing https://localhost:3000
docker build --tag devjava .
docker run --publish 3000:3000 --init -it --rm devjava
You should then be able to open a browser and visit https://localhost:3000
(For a more dynamic development experience avoiding a Docker build after every change, you can mount the local /app folder to the container by adding option -v $PWD/app:/app/app
to your docker run
command. Note: $PWD may not work in Windows.)