Skip to content

Commit

Permalink
make jsdoc a little more responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatthieu3 committed Sep 24, 2024
1 parent f2687bf commit 8a33084
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions jsdoc-make-responsive.js
Original file line number Diff line number Diff line change
@@ -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
)
6 changes: 4 additions & 2 deletions jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"docdash": {
"scripts": [
"jsdoc-custom-style.css"
"jsdoc-custom-style.css",
"jsdoc-make-responsive.js"
],
"sectionOrder": [
"Namespaces",
Expand Down Expand Up @@ -58,7 +59,8 @@
"default": {
"staticFiles": {
"include": [
"./jsdoc-custom-style.css"
"./jsdoc-custom-style.css",
"./jsdoc-make-responsive.js"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 8a33084

Please sign in to comment.