diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c4e3de..7524aaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.13.1 +- the about page now points to the github page +- move tutorial.md to root of repo + ## 0.13.0 - The gallery / examples can now be view in the UI via the Gallery in the navigation diff --git a/package.json b/package.json index 21947b4..0694d18 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "p5-cljs-web-editor", "private": true, - "version": "0.13.0", + "version": "0.13.1", "type": "module", "scripts": { "dev": "vite", diff --git a/src/App.jsx b/src/App.jsx index b108307..dbd714b 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -6,18 +6,12 @@ import { useState } from 'react' const App = () => { - const [about, setAbout] = useState("") const [tutorial, setTutorial] = useState("") const [changelog, setChangelog] = useState("") const [gallery, setGallery] = useState("") const [methods, setMethods] = useState(null) - import("./pages/about.md").then(res => { - fetch(res.default) - .then(res => res.text()) - .then(text => setAbout(text)) - }) - import("./pages/tutorial.md").then(res => { + import("../tutorial.md").then(res => { fetch(res.default) .then(res => res.text()) .then(text => setTutorial(text)) @@ -40,7 +34,6 @@ const App = () => { }> } /> - } /> } /> } /> } /> diff --git a/src/components/Article.jsx b/src/components/Article.jsx index 681c053..f932e65 100644 --- a/src/components/Article.jsx +++ b/src/components/Article.jsx @@ -23,14 +23,6 @@ const Article = ({ markdown }) => { h4: ({ ...props }) => , p: ({ ...props }) => , a: ({ ...props }) => , - // code: ({ ...props }) => }} /> diff --git a/src/components/NavBar.jsx b/src/components/NavBar.jsx index 07de10c..eeda6a8 100644 --- a/src/components/NavBar.jsx +++ b/src/components/NavBar.jsx @@ -29,7 +29,9 @@ const NavBar = ({ methods }) => { color="gray.600" > - + About diff --git a/src/pages/about.md b/src/pages/about.md deleted file mode 100644 index 8973b4e..0000000 --- a/src/pages/about.md +++ /dev/null @@ -1,21 +0,0 @@ -# About - -The P5.cljs web editor is inspired by the [P5 web -editor](https://editor.p5js.org/). It allows you to write p5.js in -[ClojureScript](https://clojurescript.org/)! - -### Sharing -Every sketch is compiled right here in your browser and encoded in the URL. -This makes your sketches _instantly shareable_. Simply copy the URL and share -your sketches! - -### Open Source -The editor is open sourced and the repo can be found -[here](https://github.com/somecho/p5-cljs-web-editor). Contributors are -welcome! - -### Disclaimer -The p5.cljs web editor is a personal project created by [Somē -Cho](https://somecho.github.io) and is not affiliated with -[p5.js](https://p5js.org/) or the [Processing -Foundation](https://processing.org/). diff --git a/src/pages/tutorial.md b/tutorial.md similarity index 100% rename from src/pages/tutorial.md rename to tutorial.md