From 8c6eb0dd5077c816ffd848e35d8f158d60c84d10 Mon Sep 17 00:00:00 2001 From: aoles Date: Tue, 10 Dec 2024 00:11:01 +0100 Subject: [PATCH] chore: avoid formatting changes --- docs/.vitepress/config.js | 105 ++++++++++---------------------------- 1 file changed, 26 insertions(+), 79 deletions(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 8222cbeeee..17917a6c03 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -51,12 +51,12 @@ export default withMermaid({ {text: 'API Playground', link: 'https://openrouteservice.org/dev/#/api-docs'}, {text: 'Forum', link: 'https://ask.openrouteservice.org'}, ], - // undocumented options for NotFound-Page - notFound: { - title: 'MAYBE YOU CLICKED AN OLD LINK?', - quote: 'We recently reworked most of our documentation. You probably ended up here by clicking an old link somewhere, e.g. in the forum. Let us know how you got here and we\'ll fix it. Click the link below and check "Getting Started" - this will help you figure out where to find what you came for.', - linkText: 'Documentation Home', - }, + // undocumented options for NotFound-Page + notFound: { + title: 'MAYBE YOU CLICKED AN OLD LINK?', + quote: 'We recently reworked most of our documentation. You probably ended up here by clicking an old link somewhere, e.g. in the forum. Let us know how you got here and we\'ll fix it. Click the link below and check "Getting Started" - this will help you figure out where to find what you came for.', + linkText: 'Documentation Home', + }, sidebar: [ { text: 'Home', link: '/', @@ -69,62 +69,25 @@ export default withMermaid({ text: 'Endpoints', collapsed: true, link: '/api-reference/endpoints/', items: [ { - text: 'Directions', - collapsed: true, - link: '/api-reference/endpoints/directions/', + text: 'Directions', collapsed: true, link: '/api-reference/endpoints/directions/', items: [ + {text: 'Requests and Return Types', link: '/api-reference/endpoints/directions/requests-and-return-types'}, + {text: 'Routing Options', link: '/api-reference/endpoints/directions/routing-options'}, { - text: 'Requests and Return Types', - link: '/api-reference/endpoints/directions/requests-and-return-types' - }, - { - text: 'Routing Options', - link: '/api-reference/endpoints/directions/routing-options' - }, - { - text: 'Extra info', - collapsed: true, - link: '/api-reference/endpoints/directions/extra-info/', + text: 'Extra info', collapsed: true, link: '/api-reference/endpoints/directions/extra-info/', items: [ - { - text: 'Steepness IDs', - link: '/api-reference/endpoints/directions/extra-info/steepness' - }, - { - text: 'Surface IDs', - link: '/api-reference/endpoints/directions/extra-info/surface' - }, - { - text: 'Category IDs', - link: '/api-reference/endpoints/directions/extra-info/waycategory' - }, - { - text: 'Type IDs', - link: '/api-reference/endpoints/directions/extra-info/waytype' - }, - { - text: 'Difficulty IDs', - link: '/api-reference/endpoints/directions/extra-info/trail-difficulty' - }, - { - text: 'Restriction IDs', - link: '/api-reference/endpoints/directions/extra-info/road-access-restrictions' - }, + {text: 'Steepness IDs', link: '/api-reference/endpoints/directions/extra-info/steepness'}, + {text: 'Surface IDs', link: '/api-reference/endpoints/directions/extra-info/surface'}, + {text: 'Category IDs', link: '/api-reference/endpoints/directions/extra-info/waycategory'}, + {text: 'Type IDs', link: '/api-reference/endpoints/directions/extra-info/waytype'}, + {text: 'Difficulty IDs', link: '/api-reference/endpoints/directions/extra-info/trail-difficulty'}, + {text: 'Restriction IDs', link: '/api-reference/endpoints/directions/extra-info/road-access-restrictions'}, {text: 'Country IDs', link: '/technical-details/country-list'}, ] }, - { - text: 'Route Attributes', - link: '/api-reference/endpoints/directions/route-attributes' - }, - { - text: 'Geometry Decoding', - link: '/api-reference/endpoints/directions/geometry-decoding' - }, - { - text: 'Instruction Types', - link: '/api-reference/endpoints/directions/instruction-types' - }, + {text: 'Route Attributes', link: '/api-reference/endpoints/directions/route-attributes'}, + {text: 'Geometry Decoding', link: '/api-reference/endpoints/directions/geometry-decoding'}, + {text: 'Instruction Types', link: '/api-reference/endpoints/directions/instruction-types'}, ] }, {text: 'Isochrones', link: '/api-reference/endpoints/isochrones/'}, @@ -218,7 +181,7 @@ export default withMermaid({ }, {text: 'ors.cors', link: '/run-instance/configuration/cors/'}, {text: 'ors.messages', link: '/run-instance/configuration/messages/'}, - {text: 'JSON config (deprecated)', link: '/run-instance/configuration/json.md'} + {text: 'JSON config (deprecated)', link:'/run-instance/configuration/json.md'} ] }, { @@ -231,10 +194,7 @@ export default withMermaid({ text: 'Contributing', collapsed: true, link: '/contributing/', items: [ {text: 'Backend documentation', link: '/contributing/backend-documentation'}, - { - text: 'Contribution guidelines', - link: 'https://github.com/GIScience/openrouteservice/blob/main/CONTRIBUTE.md' - }, + {text: 'Contribution guidelines', link: 'https://github.com/GIScience/openrouteservice/blob/main/CONTRIBUTE.md'}, {text: 'Contributing translations', link: '/contributing/contributing-translations'}, ] }, @@ -242,25 +202,12 @@ export default withMermaid({ text: 'Technical details', collapsed: true, link: '/technical-details/', items: [ {text: 'Country List', link: '/technical-details/country-list'}, - { - text: 'Travel Speeds', link: '/technical-details/travel-speeds/', + {text: 'Travel Speeds', link: '/technical-details/travel-speeds/', items: [ - { - text: 'Country Speeds', - link: '/technical-details/travel-speeds/country-speeds.md' - }, - { - text: 'Tracktype Speeds', - link: '/technical-details/travel-speeds/tracktype-speeds.md' - }, - { - text: 'Waytype Speeds', - link: '/technical-details/travel-speeds/waytype-speeds.md' - }, - { - text: 'Surface Speeds', - link: '/technical-details/travel-speeds/surface-speeds.md' - }, + {text: 'Country Speeds', link: '/technical-details/travel-speeds/country-speeds.md'}, + {text: 'Tracktype Speeds', link: '/technical-details/travel-speeds/tracktype-speeds.md'}, + {text: 'Waytype Speeds', link: '/technical-details/travel-speeds/waytype-speeds.md'}, + {text: 'Surface Speeds', link: '/technical-details/travel-speeds/surface-speeds.md'}, ] }, {text: 'Tag Filtering', link: '/technical-details/tag-filtering'},