Giter Site home page Giter Site logo

muflhi01 / processing-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from processing/processing-website

0.0 0.0 0.0 106.31 MB

Repository for the new processing.org

License: BSD Zero Clause License

JavaScript 44.09% CSS 6.46% Processing 49.44%

processing-website's Introduction

Processing Website

This repo holds the code for the processing.org website. The website is built with Gatsby.

Running the site locally

To run the site locally, make sure that you have Node.js installed (v12 minimum).

  1. Clone down this repo and cd into the folder via the command-line
  2. Run npm install to install the dependencies
  3. Run npm run dev to run the development server

Now open localhost:8000 in your browser of choice.

Editing content

In order to edit the content on the website, it's important to understand how the translation and internationalization frameworks are set up. For this, we distinguish between two things:

UI language

This content is more static, such as page headings and the descriptions on the front page. This is controlled by the react-intl package, and all definitions of UI language can be found in the i18n/react-intl folder. Each language will have its own .json file in this folder, and this is where edits to the UI language should happen.

Page content

This content includes most of the content on the website such as the individual items under reference, tutorials, tools, etc. Each content type has its own setup based on where the source lives. As an example, the reference is generated from the Processing source code and has its own way of translating those generated files. The following guides explain how to change the content on the website by section.

When translating the content to a new language you need to edit the i18n/config.json file and add your language information. Then follow the instructions for each Content list (same links as above).

Writing code

Deploying the site

The website is set up to deploy itself whenever a new GitHub release is created from the master branch:

  1. Go to Releases
  2. Click "Create a new release"
  3. Choose a tag for this release. This value is not used for much, so you can just use DD-MM-YYYY
  4. Create the release. A GitHub action will run, which will build the website and upload to the S3 bucket.

keywords.txt

The website repo has a script that generates the keywords.txt file into the processing4 repo to use for syntax highlighting the PDE. Follow these steps in order to generate that file:

  1. Make sure you have this processing-website repo and the processing4 repo next to each other on your computer
  2. Run npm run updateKeywords

The processing4 repo now has an updated java/keywords.txt file.

processing-website's People

Contributors

runemadsen avatar anadroid avatar ejsandoval avatar bravomartin avatar makio135 avatar ogoregen avatar reas avatar digitalcoleman avatar cacheflowe avatar whoisbma avatar tisanesound avatar tetraleaf avatar karandudeja avatar tabreturn avatar freeartbureau avatar smrnjeet222 avatar aemonm avatar amruth-acharya avatar rucha0702 avatar seenahm avatar nking07049925 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.