From f4cc8ce7a8712e2e840b0c120a3f86eadb665626 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 28 Aug 2023 11:50:57 -0400 Subject: add, sub, div, more work on the guide --- guide-src/development/index.html | 27 +++++++++++++++++++++++++++ guide-src/development/js-features.html | 22 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 guide-src/development/index.html create mode 100644 guide-src/development/js-features.html (limited to 'guide-src/development') diff --git a/guide-src/development/index.html b/guide-src/development/index.html new file mode 100644 index 0000000..717ff6d --- /dev/null +++ b/guide-src/development/index.html @@ -0,0 +1,27 @@ +--- getting started + +

+note: this section is only for people who want to contribute to pugl itself. +

+ +

+after cloning the repository, +make sure you run +

npm install
+ln -s ../../pre-commit .git/hooks/
+ +this ensures that your changes are prettified & linted. +

+ +

+the main files of interest are index.html and pugl.js, which has all +the JavaScript for pugl (hopefully it doesn't become too unmanageable to have just one file). +

+ +

contributing to the guide

+

+the guide is automatically generated from the files in guide-src/ by guide-src/make.py +(you can also just run make to generate it), which is a simple script whose main purpose is adding +a sidebar to all of the guide pages. any PNG files are automatically copied from guide-src/ to guide/. +when you add or remove pages from the guide, you'll need to edit guide-src/outline.txt. +

diff --git a/guide-src/development/js-features.html b/guide-src/development/js-features.html new file mode 100644 index 0000000..ea8ac97 --- /dev/null +++ b/guide-src/development/js-features.html @@ -0,0 +1,22 @@ +--- modern JavaScript features + +

+pugl has no dependencies, and i'd like to keep it that way. +

+ +

+i've been pretty liberal about using modern javascript; +even though this could in theory run on IE it doesn't +(in particular it's very nice to have template literals). +that said, try to only use features that have at least as much +support as webgl2 (i.e. >94%). +

+ +

+we use webgl2 because: +

+

-- cgit v1.2.3