2021-09-08 14:28:29 +02:00
|
|
|
<?php
|
|
|
|
$extraMenu = require __DIR__.'/../../scripting_api_extra_doc/menu.php';
|
|
|
|
$extraUtilsMenu = require __DIR__.'/../../scripting_api_extra_doc/menu_functions.php';
|
|
|
|
|
|
|
|
return [
|
|
|
|
[
|
|
|
|
'title' => 'Getting started',
|
2021-09-27 11:13:35 +02:00
|
|
|
'url' => '/map-building/',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.index',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/index.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'WorkAdventure maps',
|
2021-09-27 11:13:35 +02:00
|
|
|
'url' => '/map-building/wa-maps.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.wa-maps',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/wa-maps.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Entries and exits',
|
|
|
|
'url' => '/map-building/entry-exit.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.entry-exit',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/entry-exit.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Opening a website',
|
|
|
|
'url' => '/map-building/opening-a-website.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.opening-a-website',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/opening-a-website.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Meeting rooms',
|
|
|
|
'url' => '/map-building/meeting-rooms.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.meeting-rooms',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/meeting-rooms.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Special zones',
|
|
|
|
'url' => '/map-building/special-zones.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.special-zones',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/special-zones.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Animations',
|
|
|
|
'url' => '/map-building/animations.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.animations',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/animations.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Integrated websites',
|
|
|
|
'url' => '/map-building/website-in-map.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.website-in-map',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/website-in-map.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
2021-12-14 12:03:05 +01:00
|
|
|
[
|
|
|
|
'title' => 'Camera',
|
|
|
|
'url' => '/map-building/camera.md',
|
|
|
|
'markdown' => 'maps.camera',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/camera.md',
|
|
|
|
],
|
2021-09-08 14:28:29 +02:00
|
|
|
[
|
|
|
|
'title' => 'Variables',
|
|
|
|
'url' => '/map-building/variables.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.variables',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/variables.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Self-hosting your map',
|
|
|
|
'url' => '/map-building/hosting.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.hosting',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/hosting.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
$extraMenu,
|
|
|
|
[
|
|
|
|
'title' => 'Scripting maps',
|
2021-09-27 12:01:40 +02:00
|
|
|
'url' => '/map-building/scripting.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
'markdown' => 'maps.scripting',
|
|
|
|
'children' => [
|
|
|
|
[
|
|
|
|
'title' => 'Using Typescript',
|
|
|
|
'url' => '/map-building/using-typescript.md',
|
2021-09-27 11:32:57 +02:00
|
|
|
'markdown' => 'maps.using-typescript',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/using-typescript.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'API Reference',
|
|
|
|
'url' => '/map-building/api-reference',
|
|
|
|
'markdown' => 'maps.api-reference',
|
|
|
|
'collapse' => true,
|
|
|
|
'children' => [
|
|
|
|
[
|
|
|
|
'title' => 'Initialization',
|
|
|
|
'url' => '/map-building/api-start.md',
|
|
|
|
'markdown' => 'maps.api-start',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-start.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Navigation',
|
|
|
|
'url' => '/map-building/api-nav.md',
|
|
|
|
'markdown' => 'maps.api-nav',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-nav.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Chat',
|
|
|
|
'url' => '/map-building/api-chat.md',
|
|
|
|
'markdown' => 'maps.api-chat',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-chat.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Room',
|
|
|
|
'url' => '/map-building/api-room.md',
|
|
|
|
'markdown' => 'maps.api-room',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-room.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'State',
|
|
|
|
'url' => '/map-building/api-state.md',
|
|
|
|
'markdown' => 'maps.api-state',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-state.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Player',
|
|
|
|
'url' => '/map-building/api-player.md',
|
|
|
|
'markdown' => 'maps.api-player',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-player.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'UI',
|
|
|
|
'url' => '/map-building/api-ui.md',
|
|
|
|
'markdown' => 'maps.api-ui',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-ui.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Sound',
|
|
|
|
'url' => '/map-building/api-sound.md',
|
|
|
|
'markdown' => 'maps.api-sound',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-sound.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Controls',
|
|
|
|
'url' => '/map-building/api-controls.md',
|
|
|
|
'markdown' => 'maps.api-controls',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-controls.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
2022-02-14 09:07:37 +01:00
|
|
|
[
|
|
|
|
'title' => 'Camera',
|
|
|
|
'url' => '/map-building/api-camera.md',
|
|
|
|
'markdown' => 'maps.api-camera',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-camera.md',
|
|
|
|
],
|
2021-09-08 14:28:29 +02:00
|
|
|
[
|
|
|
|
'title' => 'Deprecated',
|
|
|
|
'url' => '/map-building/api-deprecated.md',
|
|
|
|
'markdown' => 'maps.api-deprecated',
|
2021-09-27 11:32:57 +02:00
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/api-deprecated.md',
|
2021-09-08 14:28:29 +02:00
|
|
|
],
|
|
|
|
]
|
|
|
|
],
|
2022-01-12 17:22:41 +01:00
|
|
|
$extraUtilsMenu,
|
|
|
|
[
|
|
|
|
'title' => 'Scripting internals',
|
|
|
|
'url' => '/map-building/scripting-internals.md',
|
|
|
|
'markdown' => 'maps.scripting-internals',
|
|
|
|
'editUrl' => 'https://github.com/thecodingmachine/workadventure/edit/develop/docs/maps/scripting-internals.md',
|
|
|
|
],
|
2021-09-08 14:28:29 +02:00
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'title' => 'Troubleshooting',
|
|
|
|
'url' => '/map-building/troubleshooting',
|
|
|
|
'view' => 'content.map.troubleshooting'
|
|
|
|
],
|
|
|
|
];
|