mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-05 20:39:56 -08:00
make jsdoc a little more responsive
This commit is contained in:
7
jsdoc-make-responsive.js
Normal file
7
jsdoc-make-responsive.js
Normal 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
|
||||
)
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user