https://dkessner.github.io/ProcessingExamples/
-
(First time only) Clone this repository, either in a GUI git client like GitHub Desktop or from the command line:
git clone [email protected]:dkessner/ProcessingExamples.git
-
Pull changes to your local repo. (
git pull
). -
Copy your entire sketch folder to the ProcessingExamples directory, and verify that the sketch runs.
-
Create a file
index.md
in the sketch folder:# Sketch Name You can put any description or notes here {% raw %}{% include embed_sketch_and_code.html sources="sketch_name.pde" %}{% endraw %}
-
Add an entry to the menu in
_includes/menu.html
. -
Add the new sketch folder to your local repo, commit and push your changes. (
git add/commit/push
).
GitHub Pages uses the static site generator Jekyll to convert Markdown files (.md) to HTML. You can test your local changes to the site using a local installation of Jekyll.
-
Install Jekyll.
-
Start a local server.
On the command line, in your local ProcessingExamples directory:
bundle exec jekyll serve
-
View the pages in your browser at: http://localhost:4000