Merge pull request #1486 from thecodingmachine/fix-links
Fixing links in the documentation
This commit is contained in:
commit
2b5211d098
@ -5,64 +5,75 @@ $extraUtilsMenu = require __DIR__.'/../../scripting_api_extra_doc/menu_functions
|
|||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
'title' => 'Getting started',
|
'title' => 'Getting started',
|
||||||
'url' => '/map-building',
|
'url' => '/map-building/',
|
||||||
'markdown' => 'maps.index'
|
'markdown' => 'maps.index',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/index.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'WorkAdventure maps',
|
'title' => 'WorkAdventure maps',
|
||||||
'url' => '/map-building/wa-maps',
|
'url' => '/map-building/wa-maps.md',
|
||||||
'markdown' => 'maps.wa-maps'
|
'markdown' => 'maps.wa-maps',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/wa-maps.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Entries and exits',
|
'title' => 'Entries and exits',
|
||||||
'url' => '/map-building/entry-exit.md',
|
'url' => '/map-building/entry-exit.md',
|
||||||
'markdown' => 'maps.entry-exit'
|
'markdown' => 'maps.entry-exit',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/entry-exit.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Opening a website',
|
'title' => 'Opening a website',
|
||||||
'url' => '/map-building/opening-a-website.md',
|
'url' => '/map-building/opening-a-website.md',
|
||||||
'markdown' => 'maps.opening-a-website'
|
'markdown' => 'maps.opening-a-website',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/opening-a-website.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Meeting rooms',
|
'title' => 'Meeting rooms',
|
||||||
'url' => '/map-building/meeting-rooms.md',
|
'url' => '/map-building/meeting-rooms.md',
|
||||||
'markdown' => 'maps.meeting-rooms'
|
'markdown' => 'maps.meeting-rooms',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/meeting-rooms.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Special zones',
|
'title' => 'Special zones',
|
||||||
'url' => '/map-building/special-zones.md',
|
'url' => '/map-building/special-zones.md',
|
||||||
'markdown' => 'maps.special-zones'
|
'markdown' => 'maps.special-zones',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/special-zones.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Animations',
|
'title' => 'Animations',
|
||||||
'url' => '/map-building/animations.md',
|
'url' => '/map-building/animations.md',
|
||||||
'markdown' => 'maps.animations'
|
'markdown' => 'maps.animations',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/animations.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Integrated websites',
|
'title' => 'Integrated websites',
|
||||||
'url' => '/map-building/website-in-map.md',
|
'url' => '/map-building/website-in-map.md',
|
||||||
'markdown' => 'maps.website-in-map'
|
'markdown' => 'maps.website-in-map',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/website-in-map.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Variables',
|
'title' => 'Variables',
|
||||||
'url' => '/map-building/variables.md',
|
'url' => '/map-building/variables.md',
|
||||||
'markdown' => 'maps.variables'
|
'markdown' => 'maps.variables',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/variables.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Self-hosting your map',
|
'title' => 'Self-hosting your map',
|
||||||
'url' => '/map-building/hosting.md',
|
'url' => '/map-building/hosting.md',
|
||||||
'markdown' => 'maps.hosting'
|
'markdown' => 'maps.hosting',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/hosting.md',
|
||||||
],
|
],
|
||||||
$extraMenu,
|
$extraMenu,
|
||||||
[
|
[
|
||||||
'title' => 'Scripting maps',
|
'title' => 'Scripting maps',
|
||||||
'url' => '/map-building/scripting',
|
'url' => '/map-building/scripting.md',
|
||||||
'markdown' => 'maps.scripting',
|
'markdown' => 'maps.scripting',
|
||||||
'children' => [
|
'children' => [
|
||||||
[
|
[
|
||||||
'title' => 'Using Typescript',
|
'title' => 'Using Typescript',
|
||||||
'url' => '/map-building/using-typescript.md',
|
'url' => '/map-building/using-typescript.md',
|
||||||
'markdown' => 'maps.using-typescript'
|
'markdown' => 'maps.using-typescript',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/using-typescript.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'API Reference',
|
'title' => 'API Reference',
|
||||||
@ -74,51 +85,61 @@ return [
|
|||||||
'title' => 'Initialization',
|
'title' => 'Initialization',
|
||||||
'url' => '/map-building/api-start.md',
|
'url' => '/map-building/api-start.md',
|
||||||
'markdown' => 'maps.api-start',
|
'markdown' => 'maps.api-start',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-start.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Navigation',
|
'title' => 'Navigation',
|
||||||
'url' => '/map-building/api-nav.md',
|
'url' => '/map-building/api-nav.md',
|
||||||
'markdown' => 'maps.api-nav',
|
'markdown' => 'maps.api-nav',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-nav.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Chat',
|
'title' => 'Chat',
|
||||||
'url' => '/map-building/api-chat.md',
|
'url' => '/map-building/api-chat.md',
|
||||||
'markdown' => 'maps.api-chat',
|
'markdown' => 'maps.api-chat',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-chat.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Room',
|
'title' => 'Room',
|
||||||
'url' => '/map-building/api-room.md',
|
'url' => '/map-building/api-room.md',
|
||||||
'markdown' => 'maps.api-room',
|
'markdown' => 'maps.api-room',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-room.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'State',
|
'title' => 'State',
|
||||||
'url' => '/map-building/api-state.md',
|
'url' => '/map-building/api-state.md',
|
||||||
'markdown' => 'maps.api-state',
|
'markdown' => 'maps.api-state',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-state.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Player',
|
'title' => 'Player',
|
||||||
'url' => '/map-building/api-player.md',
|
'url' => '/map-building/api-player.md',
|
||||||
'markdown' => 'maps.api-player',
|
'markdown' => 'maps.api-player',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-player.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'UI',
|
'title' => 'UI',
|
||||||
'url' => '/map-building/api-ui.md',
|
'url' => '/map-building/api-ui.md',
|
||||||
'markdown' => 'maps.api-ui',
|
'markdown' => 'maps.api-ui',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-ui.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Sound',
|
'title' => 'Sound',
|
||||||
'url' => '/map-building/api-sound.md',
|
'url' => '/map-building/api-sound.md',
|
||||||
'markdown' => 'maps.api-sound',
|
'markdown' => 'maps.api-sound',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-sound.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Controls',
|
'title' => 'Controls',
|
||||||
'url' => '/map-building/api-controls.md',
|
'url' => '/map-building/api-controls.md',
|
||||||
'markdown' => 'maps.api-controls',
|
'markdown' => 'maps.api-controls',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-controls.md',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Deprecated',
|
'title' => 'Deprecated',
|
||||||
'url' => '/map-building/api-deprecated.md',
|
'url' => '/map-building/api-deprecated.md',
|
||||||
'markdown' => 'maps.api-deprecated',
|
'markdown' => 'maps.api-deprecated',
|
||||||
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-deprecated.md',
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function goToBuildingMap() {
|
function goToBuildingMap() {
|
||||||
const sparkHost = "https://workadventu.re/map-building";
|
const sparkHost = "https://workadventu.re/map-building/";
|
||||||
window.open(sparkHost, "_blank");
|
window.open(sparkHost, "_blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user