diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 2da046f..0000000 --- a/deploy.sh +++ /dev/null @@ -1,10 +0,0 @@ -# Deploy the docs to the `docs` branch. - -git branch -D docs-preview -git checkout -b docs-preview -sed -i '' '/dist/d' .gitignore -npm run build -git add . -git commit -m "Update docs" -git push origin docs-preview -f -git checkout - \ No newline at end of file diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js deleted file mode 100644 index 239ce9d..0000000 --- a/docs/.vitepress/config.js +++ /dev/null @@ -1,33 +0,0 @@ -import {defineConfig} from "vitepress"; -import config from "genji-theme-vitepress/config"; - -// https://vitepress.dev/reference/site-config -export default defineConfig({ - title: "Charming Cell", - description: "The creative coding language for ASCII Art", - extends: config, - themeConfig: { - nav: [ - {text: "Home", link: "/"}, - {text: "Examples", link: "https://observablehq.com/d/18b3d6f3affff5bb"}, - ], - sidebar: [ - { - text: "Introduction", - items: [ - {text: "What is Cell?", link: "/what-is-cell"}, - {text: "Getting started", link: "/get-started"}, - ], - }, - { - text: "Features", - items: [ - {text: "Sketches", link: "/features/sketches"}, - {text: "Shapes", link: "/features/shapes"}, - ], - }, - {text: "API Index", link: "/api-index"}, - ], - socialLinks: [{icon: "github", link: "https://github.com/charming-art/cell"}], - }, -}); diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js deleted file mode 100644 index 134ec93..0000000 --- a/docs/.vitepress/theme/index.js +++ /dev/null @@ -1,18 +0,0 @@ -// .vitepress/theme/index.js -import DefaultTheme from "vitepress/theme"; -import Layout from "genji-theme-vitepress"; -import {h} from "vue"; -import * as Cell from "../../../dist/es/index.js"; - -// More props: https://genji-md.dev/reference/props -const props = { - Theme: DefaultTheme, - library: { - Cell, - }, -}; - -export default { - extends: DefaultTheme, - Layout: () => h(Layout, props), -}; diff --git a/docs/api-index.md b/docs/api-index.md deleted file mode 100644 index d4830cf..0000000 --- a/docs/api-index.md +++ /dev/null @@ -1,19 +0,0 @@ -# API Index - -## Methods - -- render -- wide - -## Context - -- stroke -- point -- cols -- rows - -## Options - -- width -- height -- mode diff --git a/docs/features/shapes.md b/docs/features/shapes.md deleted file mode 100644 index 30e4ae8..0000000 --- a/docs/features/shapes.md +++ /dev/null @@ -1 +0,0 @@ -# Shapes diff --git a/docs/features/sketches.md b/docs/features/sketches.md deleted file mode 100644 index 1c14090..0000000 --- a/docs/features/sketches.md +++ /dev/null @@ -1 +0,0 @@ -# Sketches diff --git a/docs/get-started.md b/docs/get-started.md deleted file mode 100644 index 8efc13f..0000000 --- a/docs/get-started.md +++ /dev/null @@ -1,7 +0,0 @@ -# Getting Started - -> WIP - -```bash -npm install @charming-art/cell -``` diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index ec5322e..0000000 --- a/docs/index.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -# https://vitepress.dev/reference/default-theme-home-page -layout: home - -hero: - name: "Charming Cell" - text: "The creative coding language for ASCII Art" - tagline: Create expressive ASCII Art in a minute - actions: - - theme: brand - text: Get Started - link: /get-started - - theme: alt - text: What is Cell? - link: /what-is-cell - - theme: alt - text: Examples - link: https://observablehq.com/d/18b3d6f3affff5bb - -features: - - title: Concise - details: In the style of P5.js - - title: Fast - details: A software rasterizer written in Rust and compiled to WASM - - title: Amusing - details: Life is not just about work, right? ---- diff --git a/docs/what-is-cell.md b/docs/what-is-cell.md deleted file mode 100644 index e543eba..0000000 --- a/docs/what-is-cell.md +++ /dev/null @@ -1,17 +0,0 @@ -# What is Cell? - -```js eval -Cell.render((ctx) => ({ - mode: "double", - width: 520, - height: 520, - setup() { - for (let t = 0; t <= Math.PI * 2; t += Math.PI / 120) { - const x = ctx.cols() / 2 + 12 * Math.cos(t) * Math.cos(t * 3); - const y = ctx.rows() / 2 + 12 * Math.sin(t) * Math.cos(t * 3); - ctx.stroke(Cell.wide("🌟")); - ctx.point(x, y); - } - }, -})); -``` diff --git a/package.json b/package.json index 3ce5931..353adf8 100644 --- a/package.json +++ b/package.json @@ -35,11 +35,7 @@ "build:js": "rm -rf dist && rollup -c", "build:rust": "rm -rf ./src/wasm && wasm-pack build ./rust --out-dir ../src/wasm --out-name index --target web", "preview": "npm run build && vite preview", - "prepublishOnly": "npm run build", - "docs:dev": "vitepress dev docs", - "docs:build": "vitepress build docs", - "docs:preview": "vitepress preview docs", - "docs:deploy": "bash deploy.sh" + "prepublishOnly": "npm run build" }, "sideEffects": false, "devDependencies": { @@ -48,11 +44,9 @@ "@rollup/plugin-wasm": "^6.1.3", "eslint": "^8.44.0", "eslint-config-prettier": "^8.8.0", - "genji-theme-vitepress": "^0.2.6", "prettier": "^2.8.8", "rollup": "^3.26.0", "vite": "^4.3.9", - "vitepress": "^1.3.4", "vitest": "^0.32.1", "wasm-pack": "^0.13.0" },