diff --git a/jsdoc-make-responsive.js b/jsdoc-make-responsive.js new file mode 100644 index 00000000..e5a4d53b --- /dev/null +++ b/jsdoc-make-responsive.js @@ -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 +) \ No newline at end of file diff --git a/jsdoc.json b/jsdoc.json index 5d3cea9c..9585acdf 100644 --- a/jsdoc.json +++ b/jsdoc.json @@ -12,7 +12,8 @@ }, "docdash": { "scripts": [ - "jsdoc-custom-style.css" + "jsdoc-custom-style.css", + "jsdoc-make-responsive.js" ], "sectionOrder": [ "Namespaces", @@ -58,7 +59,8 @@ "default": { "staticFiles": { "include": [ - "./jsdoc-custom-style.css" + "./jsdoc-custom-style.css", + "./jsdoc-make-responsive.js" ] } } diff --git a/package.json b/package.json index fc64a84b..37866a70 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "test:build": "cd src/core && cargo test --release --features webgl2", "test:playwright": "npx playwright test", "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" }, "devDependencies": {