Skip to content

Commit

Permalink
Update Doc deps
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Apr 18, 2024
1 parent 9e20d21 commit be87326
Show file tree
Hide file tree
Showing 18 changed files with 2,759 additions and 10,918 deletions.
2 changes: 1 addition & 1 deletion docs/src/js/extra-notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ ${content}
if (!initialized) {
initialized = true
pyodide = await loadPyodide({ // eslint-disable-line no-undef
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.24.1/full/",
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.25.1/full/",
fullStdLib: false
})
}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/markdown/demos/3d_models.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h1>ColorAide Color Space Models</h1>
</footer>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/plotly.js/2.27.0/plotly.min.js"></script>
<script src="https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js"></script>
<script src="https://cdn.jsdelivr.net/pyodide/v0.25.1/full/pyodide.js"></script>
<script id="init" type="text/python">
from coloraide.everything import ColorAll as Color
from coloraide.spaces import Regular
Expand Down Expand Up @@ -1045,7 +1045,7 @@ <h1>ColorAide Color Space Models</h1>
busyTarget = document.getElementsByTagName('body')[0]
showBusy(busyTarget, 'Setting up Environment...')
pyodide = await loadPyodide({
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.24.1/full/",
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.25.1/full/",
fullStdLib: false
})

Expand Down
4 changes: 2 additions & 2 deletions docs/src/markdown/demos/colorpicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ <h1>ColorAide Color Picker</h1>
<div>Copyright &copy; 2020 - 2023 <a href="https://github.com/facelessuser">Isaac Muse</a></div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js"></script>
<script src="https://cdn.jsdelivr.net/pyodide/v0.25.1/full/pyodide.js"></script>
<script>

(() => {
Expand Down Expand Up @@ -744,7 +744,7 @@ <h1>ColorAide Color Picker</h1>
busyTarget = document.getElementById('color-display')
showBusy(busyTarget, 'Loading ColorAide...')
pyodide = await loadPyodide({
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.24.1/full/",
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.25.1/full/",
fullStdLib: false
})

Expand Down
4 changes: 2 additions & 2 deletions docs/src/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ extra_css:
- assets/coloraide-extras/extra.css
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
- playground-config-91c1cf40.js
- https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js
- playground-config-b488062d.js
- https://cdn.jsdelivr.net/pyodide/v0.25.1/full/pyodide.js
- assets/coloraide-extras/extra-notebook.js

extra:
Expand Down
2 changes: 1 addition & 1 deletion docs/src/scss/_loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
height: 80px;
margin-top: -40px;
margin-left: -40px;
border-style: solid;
border-width: 10px;
border-style: solid;
border-top-color: rgb(0, 255, 255);
border-right-color: rgb(255, 255, 0);
border-bottom-color: rgb(0, 255, 0);
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/theme/assets/coloraide-extras/extra-notebook-Cs6O_Czb.js

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions docs/theme/assets/coloraide-extras/extra-notebook-dHZZ0bnu.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions docs/theme/playground-config-91c1cf40.js

This file was deleted.

5 changes: 5 additions & 0 deletions docs/theme/playground-config-b488062d.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var colorNotebook = {
"playgroundWheels": ['pygments-2.17.2-py3-none-any.whl', 'coloraide-3.3.1-py3-none-any.whl'],
"notebookWheels": ['pyyaml', 'Markdown-3.6-py3-none-any.whl', 'pymdown_extensions-10.8-py3-none-any.whl', 'pygments-2.17.2-py3-none-any.whl', 'coloraide-3.3.1-py3-none-any.whl'],
"defaultPlayground": "import coloraide\ncoloraide.__version__\nColor('red')"
}
32 changes: 17 additions & 15 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import yargs from "yargs"
import {hideBin} from "yargs/helpers"
import gulp from "gulp"
import gulpSass from "gulp-sass"
import * as sasCompile from "sass"
import * as sassCompiler from "sass"
import postcss from "gulp-postcss"
import scss from "postcss-scss"
import autoprefixer from "autoprefixer"
Expand All @@ -31,14 +31,14 @@ import touch from "gulp-touch-fd"
import path from "path"
import inlineSvg from "postcss-inline-svg"
import cssSvgo from "postcss-svgo"
import replace from "gulp-replace"
// `import replace from "gulp-replace"`
import outputManifest from "rollup-plugin-output-manifest"
import sourcemaps from "gulp-sourcemaps"
import regenerator from "rollup-plugin-regenerator"
import fs from "fs"
import rollupReplace from "@rollup/plugin-replace"

const sass = gulpSass(sasCompile)
const sass = gulpSass(sassCompiler)

/* Argument Flags */
const args = yargs(hideBin(process.argv))
Expand Down Expand Up @@ -267,27 +267,29 @@ gulp.task("js:build:rollup", async() => {
)
})

gulp.task("html:build", () => {
return gulp.src("./docs/src/html/*")
.pipe(gulpif(config.revision, revReplace({
manifest: gulp.src(`${config.folders.theme}/manifest*.json`, {allowEmpty: true}),
replaceInExtensions: [".html"]
})))
.pipe(replace(/((?:\r?\n?\s*)<!--[\s\S]*?-->(?:\s*)(?=\r?\n)|<!--[\s\S]*?-->)/g, ""))
.pipe(gulp.dest("./docs/theme/partials"))
})
// ````
// gulp.task("html:build", () => {
// return gulp.src("./docs/src/html/*.html")
// .pipe(gulpif(config.revision, revReplace({
// manifest: gulp.src(`${config.folders.theme}/manifest*.json`, {allowEmpty: true}),
// replaceInExtensions: [".html"]
// })))
// .pipe(replace(/((?:\r?\n?\s*)<!--[\s\S]*?-->(?:\s*)(?=\r?\n)|<!--[\s\S]*?-->)/g, ""))
// .pipe(gulp.dest("./docs/theme/partials/"))
// })
// ````

gulp.task("html:watch", () => {
gulp.watch("./docs/src/html/*", gulp.series("html:build", "mkdocs:update"))
gulp.watch("./docs/src/html/*.html", gulp.series("mkdocs:update"))
})

gulp.task("js:build", gulp.series("js:build:rollup", "html:build", () => {
gulp.task("js:build", gulp.series("js:build:rollup", () => {
return gulp.src(config.files.mkdocsSrc)
.pipe(gulpif(config.revision, revReplace({
manifest: gulp.src(`${config.folders.theme}/manifest*.json`, {allowEmpty: true}),
replaceInExtensions: [".yml"]
})))
.pipe(gulp.dest("."))
.pipe(gulp.dest("./"))
}))

gulp.task("js:lint", () => {
Expand Down
8 changes: 4 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ markdown_extensions:
alternate_style: True

extra_css:
- assets/coloraide-extras/extra-e1cd7ecf37.css
- assets/coloraide-extras/extra-51c649e973.css
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
- playground-config-91c1cf40.js
- https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js
- assets/coloraide-extras/extra-notebook-Cs6O_Czb.js
- playground-config-b488062d.js
- https://cdn.jsdelivr.net/pyodide/v0.25.1/full/pyodide.js
- assets/coloraide-extras/extra-notebook-dHZZ0bnu.js

extra:
social:
Expand Down
Loading

0 comments on commit be87326

Please sign in to comment.