Git Product home page Git Product logo

db-jdo-site's Introduction

JDO Website

This repository contains the sources for the Apache DB JDO website.

Building the Site

The content and styling of the site is defined in the AsciiDoc format. It is built using Maven. For details on publishing the site see section Publishing the Site.

The site can be built by calling mvn clean compile. This generates the HTML files in target/site. Most of the site will work with the exception of the javadoc file downloads. If needed, call mvn package. This copies the javadoc files to target/site. The site can then be viewed by opening the local file target/site/index.html in a browser.

Adding Javadoc

The site contains a packaged version of the JDO API javadoc. It can be updated as follows:

  • Create the javadoc jar (e.g. jdo-api-3.2-javadoc.jar) in the db-jdo repository by calling the following command in the api submodule: mvn clean install -Papache-release.
  • Create a new folder in the javadoc resources directory e.g. src/main/resources/javadoc/api32.
  • Copy the javadocs jar into the new folder, e.g. cp jdo-api-3.2-javadoc.jar src/main/resources/javadoc/api32.
  • Create a new subfolder, e.g. src/main/resources/javadoc/api32/jdo-api-3.2-javadoc.
  • Unpack the javadoc jar in the subfolder.
  • Edit javadoc.adoc under src/main/asciidoc and create a new section 'JDO 3.2 javadoc'.
  • Add two links: one referring index.html in the subfolder and one referring the javadoc jar.

Contributing to the Site

Contributions to the website are always appreciated. If you are new to this project, please have a look at our Get Involved page first.

This repository contains the JDO website source.

  • The AsciiDoc sources can be found in src/main/asciidoc.
  • The website menu is defined in src/main/template.
  • The converter for migrating the old HTML files to AsciiDoc can be found in src/main/java.
  • Additional pre-compiled resources are located in src/main/resources.

Contributions to this repository follow the default GitHub workflow using forks.

To contribute changes, you can follow these steps:

  • Adapt the AsciiDoc files in src/main/asciidoc or the website menu in src/main/template.
  • Build the site (see above) and verify the generated website by viewing target/site/index.html locally with a web browser.
  • Commit the source changes (not the build artifacts) in your branch and open a pull request.

Reporting issues

If you find any issues please provide a PR or create a JIRA ticket.

Publishing the Site

After changes have been made to the sources in the src/main/asciidoc or src/main/template directory, changes will be published automatically to the live web site by simply pushing changes to the main branch of the repository. The process is as follows:

  1. Pushing changes to the main branch invokes the post-push script in db-jdo-site/.github/workflows/deploy-site.yml which builds the site in target/site via mvn clean package.

  2. If the build is successful, the build artifacts in the main branch are pushed to the publish branch.

  3. Once the changes have been pushed to the publish branch, the script in .asf.yaml.publish is automatically invoked. This script is executed by Apache Infrastructure machines, and it publishes changes to db.apache.org/jdo. It may take some time for the changes to be seen on the live site. Details on the use of .asf.yaml is found here.

db-jdo-site's People

Contributors

andyjefferson avatar clr-apache avatar humbedooh avatar mboapache avatar tobous avatar tzaeschke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.