Skip to content

Commit

Permalink
Merge pull request #1604 from dbauszus-glx/jsdoc-header-links
Browse files Browse the repository at this point in the history
Header links not working on deployed documentation
  • Loading branch information
RobAndrewHurst authored Oct 28, 2024
2 parents e5833e7 + 953332c commit 8135995
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ An example Express application script is provided in the project root.

XYZ API modules should be run with a Node.js runtime v18 or higher.

The [XYZ API](/docs/module-_api.html) module is located in the api folder as a requirement for using the offical Node.js runtime in Vercel's Edge Network.
The [XYZ API](/xyz/module-_api.html) module is located in the api folder as a requirement for using the offical Node.js runtime in Vercel's Edge Network.

All other XYZ API modules are located in the /mod directory.

Expand All @@ -16,12 +16,12 @@ The [clean-jsdoc-theme](https://www.npmjs.com/package/clean-jsdoc-theme) is used

The XYZ API modules are:

### [Workspace](/docs/module-_workspace)
### [Workspace](/xyz/module-_workspace)

### [View](/docs/module-_view)
### [View](/xyz/module-_view)

### [Query](/docs/module-_query)
### [Query](/xyz/module-_query)

### [User](/docs/module-_user)
### [User](/xyz/module-_user)

### [Sign](/docs/module-_sign)
### [Sign](/xyz/module-_sign)
2 changes: 1 addition & 1 deletion express.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const cookieParser = require('cookie-parser')

const app = express()

app.use('/docs', express.static('docs', {
app.use('/xyz', express.static('docs', {
extensions: ['html']
}))

Expand Down
9 changes: 4 additions & 5 deletions jsdoc_mapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"plugins": [
"plugins/markdown"
],

"opts": {
"encoding": "utf8",
"readme": "./lib/README.md",
Expand All @@ -22,14 +21,14 @@
"favicon": "../public/icons/favicon.ico",
"menu": [
{
"title": "Github",
"id": "github",
"link": "https://github.com/GEOLYTIX/xyz"
"title": "Github",
"id": "github",
"link": "https://github.com/GEOLYTIX/xyz"
},
{
"title": "XYZ",
"id": "xyz",
"link": "/docs"
"link": "/xyz"
}
]
}
Expand Down
5 changes: 3 additions & 2 deletions jsdoc_xyz.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"source": {
"include": [
"api", "mod"
"api",
"mod"
],
"includePattern": ".js$"
},
Expand Down Expand Up @@ -31,7 +32,7 @@
{
"title": "Mapp",
"id": "mapp",
"link": "/docs/mapp"
"link": "/xyz/mapp"
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions lib/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## MAPP API

The MAPP API is a collection of javascript modules to interface with the [XYZ API](/docs).
The MAPP API is a collection of javascript modules to interface with the [XYZ API](/xyz).

The [mapp.mjs](/docs/mapp/module-mapp) module imports any modules required to create an interactive Openlayers mapview in a web document.
The [mapp.mjs](/xyz/mapp/module-mapp) module imports any modules required to create an interactive Openlayers mapview in a web document.

### MAPP/UI

A collection of modules for the creation of user interfaces to support the interaction with MAPP elements like the mapview, layer, and locations can be accessed through the [ui.mjs](/docs/mapp/module-ui).
A collection of modules for the creation of user interfaces to support the interaction with MAPP elements like the mapview, layer, and locations can be accessed through the [ui.mjs](/xyz/mapp/module-ui).
2 changes: 1 addition & 1 deletion lib/mapp.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The `mapp.mjs` module is used as entry point for the esbuild process to bundle t
@requires /mapview
@requires /layer
@requires /layer
@requires /location
@requires /utils
@requires /dictionary
@requires /dictionaries
Expand Down

0 comments on commit 8135995

Please sign in to comment.