1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-02 04:42:43 +02:00

don't deploy .md files

This commit is contained in:
Pomax
2020-09-27 10:30:22 -07:00
parent 4c264b2c0f
commit d05bee3949
8 changed files with 24 additions and 12 deletions

View File

@@ -31,7 +31,7 @@
<meta property="og:locale" content="en-GB" /> <meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" /> <meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
<meta property="og:updated_time" content="2020-09-27T17:04:48+00:00" /> <meta property="og:updated_time" content="2020-09-27T17:29:42+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />

View File

@@ -33,7 +33,7 @@
<meta property="og:locale" content="ja-JP" /> <meta property="og:locale" content="ja-JP" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" /> <meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
<meta property="og:updated_time" content="2020-09-27T17:04:48+00:00" /> <meta property="og:updated_time" content="2020-09-27T17:29:42+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />

View File

@@ -27,7 +27,7 @@
<meta property="og:locale" content="en-GB" /> <meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="Thu Sep 17 2020 17:00:00 +00:00" /> <meta property="og:published_time" content="Thu Sep 17 2020 17:00:00 +00:00" />
<meta property="og:updated_time" content="Sun Sep 27 2020 10:04:48 +00:00" /> <meta property="og:updated_time" content="Sun Sep 27 2020 10:29:42 +00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />

View File

@@ -26,7 +26,7 @@
<meta property="og:description" content="" /> <meta property="og:description" content="" />
<meta property="og:locale" content="en-GB" /> <meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="Sun Sep 27 2020 10:04:48 GMT-0700 (Pacific Daylight Time)" /> <meta property="og:published_time" content="Sun Sep 27 2020 10:29:42 GMT-0700 (Pacific Daylight Time)" />
<meta property="og:updated_time" content="" /> <meta property="og:updated_time" content="" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />

View File

@@ -6,7 +6,7 @@
<atom:link href="https://pomax.github.io/bezierinfo" rel="self"></atom:link> <atom:link href="https://pomax.github.io/bezierinfo" rel="self"></atom:link>
<description>News updates for the <a href="https://pomax.github.io/bezierinfo">primer on Bézier Curves</a> by Pomax</description> <description>News updates for the <a href="https://pomax.github.io/bezierinfo">primer on Bézier Curves</a> by Pomax</description>
<language>en-GB</language> <language>en-GB</language>
<lastBuildDate>Sun Sep 27 2020 10:04:48 +00:00</lastBuildDate> <lastBuildDate>Sun Sep 27 2020 10:29:42 +00:00</lastBuildDate>
<image> <image>
<url>https://pomax.github.io/bezierinfo/images/og-image.png</url> <url>https://pomax.github.io/bezierinfo/images/og-image.png</url>
<title>A Primer on Bézier Curves</title> <title>A Primer on Bézier Curves</title>

View File

@@ -33,7 +33,7 @@
<meta property="og:locale" content="zh-CN" /> <meta property="og:locale" content="zh-CN" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" /> <meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
<meta property="og:updated_time" content="2020-09-27T17:04:48+00:00" /> <meta property="og:updated_time" content="2020-09-27T17:29:42+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />

View File

@@ -14,31 +14,39 @@
"url": "https://github.com/Pomax/BezierInfo-2/issues" "url": "https://github.com/Pomax/BezierInfo-2/issues"
}, },
"scripts": { "scripts": {
"---": "--- These are the only three scripts you should care about ---",
"start": "run-s clean:* time lint:* build time clean:temp", "start": "run-s clean:* time lint:* build time clean:temp",
"test": "run-s start && run-p watch server browser", "test": "run-s start && run-p watch server browser",
"deploy": "run-s regenerate copy", "deploy": "run-s start polish copy",
"------": "--- note that due to github's naming policy, the public dir is called 'docs' rather than 'public' ---", "-------": "--- Note that due to github's naming policy, the public dir is called `docs` rather than `public` ---",
"browser": "open-cli http://localhost:8000", "browser": "open-cli http://localhost:8000",
"build": "node ./src/build.js", "build": "node ./src/build.js",
"time": "node ./src/mark.js",
"clean:temp": "rm -f .timing && rm -rf ./temp", "clean:temp": "rm -f .timing && rm -rf ./temp",
"clean:news": "rm -f ./docs/news/*.html", "clean:news": "rm -f ./docs/news/*.html",
"polish": "run-s pretty link-checker", "polish": "run-s pretty link-checker",
"regenerate": "run-s start polish", "----": "--- The copy commands rely on a parallel `bezierinfo` git repo existing ---",
"copy": "mkdir _ && mv ../bezierinfo/.git _ && rm -rf ../bezierinfo && cp -r ./docs/. ../bezierinfo && mv _/.git ../bezierinfo && rm -rf _", "copy": "run-s copy:*",
"copy:prepare": "mkdir _ && mv ../bezierinfo/.git _ && rm -rf ../bezierinfo ",
"copy:files": "cp -r ./docs/. ../bezierinfo",
"copy:remove-md": "rm ../bezierinfo/chapters/**/*.md && rm ../bezierinfo/news/*.md",
"copy:cleanup": "mv _/.git ../bezierinfo && rm -rf _",
"----------": "--- Prettier is your friend. ---",
"lint:tools": "prettier \"./src/**/*.js\" --print-width 150 --write", "lint:tools": "prettier \"./src/**/*.js\" --print-width 150 --write",
"lint:lib": "prettier \"./docs/js/**/*.js\" --print-width 150 --write", "lint:lib": "prettier \"./docs/js/**/*.js\" --print-width 150 --write",
"lint:css": "prettier \"./docs/**/*.css\" --print-width 150 --write", "lint:css": "prettier \"./docs/**/*.css\" --print-width 150 --write",
"link-checker": "link-checker \"docs/index.html\" --allow-hash-href --url-ignore \"(ja-JP|zh-CN|legendre).*\" --ignore-error-exit", "link-checker": "link-checker \"docs/index.html\" --allow-hash-href --url-ignore \"(ja-JP|zh-CN|legendre).*\" --ignore-error-exit",
"pretty": "prettier \"./docs/{!(legendre-gauss),**/*}.html\" --use-tabs --print-width 150 --write", "pretty": "prettier \"./docs/{!(legendre-gauss),**/*}.html\" --use-tabs --print-width 150 --write",
"------": "--- Server and watch tasks ---",
"server": "cd docs && http-server -e -p 8000 --cors", "server": "cd docs && http-server -e -p 8000 --cors",
"watch": "run-p watch:*", "watch": "run-p watch:*",
"watch:chapters": "chokidar \"./docs/chapters/**/*.(md|js)\" -c \"npm run build\"", "watch:chapters": "chokidar \"./docs/chapters/**/*.(md|js)\" -c \"npm run build\"",
"watch:news": "chokidar \"./docs/news/**/*.md\" -c \"npm run build\"", "watch:news": "chokidar \"./docs/news/**/*.md\" -c \"npm run build\"",
"watch:customelement": "chokidar \"./docs/js/custom-element/**/*.js\" -c \"npm run build\"", "watch:customelement": "chokidar \"./docs/js/custom-element/**/*.js\" -c \"npm run build\"",
"watch:src": "chokidar \"./src/**/*.*\" -c \"npm run build\"", "watch:src": "chokidar \"./src/**/*.*\" -c \"npm run build\"",
"-----": "--- Used as part of LaTeX generation: ---",
"svgo": "svgo", "svgo": "svgo",
"svgo:pretty": "node ./src/svgo-pretty.js", "svgo:pretty": "node ./src/svgo-pretty.js"
"time": "node ./src/mark.js"
}, },
"keywords": [ "keywords": [
"Bezier", "Bezier",

View File

@@ -4,6 +4,10 @@ import { processLocale } from "./build/process-locale.js";
import { createIndexPages } from "./build/create-index-pages.js"; import { createIndexPages } from "./build/create-index-pages.js";
import { createNewsPages } from "./build/create-news-pages.js"; import { createNewsPages } from "./build/create-news-pages.js";
// TODO: figure out a way to cleanly indicate which dir is "the main content", needing
// to be compiled into the index.html file, and which dirs are "satellite content"
// that should get compiled into its own dir.
/** /**
* main entry point: * main entry point:
*/ */