make jsdoc a little more responsive

This commit is contained in:
Matthieu Baumann
2024-09-25 00:24:14 +02:00
parent f2687bf860
commit 8a33084de9
3 changed files with 12 additions and 3 deletions

7
jsdoc-make-responsive.js Normal file
View File

@@ -0,0 +1,7 @@
var meta = document.createElement("meta");
meta.name = "viewport"
meta.content = "width=device-width, height=device-height, initial-scale=1.0, user-scalable=no"
document.querySelector("head").appendChild(
meta
)

View File

@@ -12,7 +12,8 @@
}, },
"docdash": { "docdash": {
"scripts": [ "scripts": [
"jsdoc-custom-style.css" "jsdoc-custom-style.css",
"jsdoc-make-responsive.js"
], ],
"sectionOrder": [ "sectionOrder": [
"Namespaces", "Namespaces",
@@ -58,7 +59,8 @@
"default": { "default": {
"staticFiles": { "staticFiles": {
"include": [ "include": [
"./jsdoc-custom-style.css" "./jsdoc-custom-style.css",
"./jsdoc-make-responsive.js"
] ]
} }
} }

View File

@@ -44,7 +44,7 @@
"test:build": "cd src/core && cargo test --release --features webgl2", "test:build": "cd src/core && cargo test --release --features webgl2",
"test:playwright": "npx playwright test", "test:playwright": "npx playwright test",
"test:update-snapshots": "npx playwright test --update-snapshots", "test:update-snapshots": "npx playwright test --update-snapshots",
"doc": "jsdoc -c jsdoc.json src/js src/js/shapes src/js/libs/astro && cp aladin-logo.png docs/ && cp jsdoc-custom-style.css docs/", "doc": "jsdoc -c jsdoc.json src/js src/js/shapes src/js/libs/astro && cp aladin-logo.png docs/ && cp jsdoc-custom-style.css docs/ && cp jsdoc-make-responsive.js docs/",
"doc:dev": "npm run doc && open docs/index.html" "doc:dev": "npm run doc && open docs/index.html"
}, },
"devDependencies": { "devDependencies": {