GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - processing/processing-doclet

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
ReferenceGenerator
ReferenceGenerator
 
 
templates
templates
 
 
README.md
README.md
 
 

Repository files navigation

Doclet

This is a custom Doclet that generates JSON files based on Javadoc comments in .java files. These JSON files have all the information necessary for building the reference pages on processing.org.

The Doclet will run through the .java file in the following repositories:

  • processing/processing4
  • processing/processing-sound
  • processing/processing-video

It will read the JavaDoc comments, create a series of .json files, and save them into the Processing website repository in the content/references/translations/en/ folder:

  • processing/processing-website

You will need a local copy of at least one of processing/processing4, processing/processing-sound or processing/processing-video alongside the processing/processing-website repo. The repositories need to be alongside each other in the same folder.

How to use

First, make sure that you have the proper setup before running the script:

Get set up

  1. If this is your first time, clone fresh versions of the following repositories alongside each other in the same folder:
    • processing/processing4
    • processing/processing-sound
    • processing/processing-video
    • processing/processing-website

If you already have those repositories cloned locally, just make sure that the latest commit of the main branch is checked out on all of them.

  1. Make sure you have openjdk 17 installed and set the JAVA_HOME environment variable to point to the JDK installation. For example: /Users/yourName/Library/Java/JavaVirtualMachines/corretto-17.0.4.1/Contents/Home

Running java -version should return the following:

openjdk version "17.0.4.1" 2022-08-12 LTS
OpenJDK Runtime Environment Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS, mixed mode, sharing)

Note that the name of the JDK file may vary slightly depending on your exact version.

  1. Install the latest version of Apache Ant (1.10.13 or above).

  2. Build the code for processing/processing4 and processing/processing-sound by following the instructions on their respective repositories and running the necessary Ant commands.

Run the doclet script

Now you are ready to run the doclet:

  1. cd into the processing-doclet/ReferenceGenerator folder.
  2. Run ant compile.
  3. Run ./processingrefBuild.sh if you are updating all the repositories or ./processingrefBuild.sh processing, ./processingrefBuild.sh sound or ./processingrefBuild.sh video if you are updating a single repository.
  4. After the new JSON files are created, move into processing-website and run npx prettier --write content/references to format the JSON files.

Update the website

Follow the instructions over on the processing/processing-website repository to make a pull request for the newly updated reference files.

Testing the script

If you just want to test the Doclet without the processing-website repo, you can create the following folder structure in the root folder

processing-website/content/references/translations/en/

Then run the doclet script normally and it will generate the JSON files in the folder above.

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

10 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.