Skip to content

Commit 8c14748

Browse files
committed
Collect apis under separate sidebar item
1 parent ba6440b commit 8c14748

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

docs/docs/apis/air-pollution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Air Pollution API
3-
sidebar_label: 'API: Air Pollution'
3+
sidebar_label: 'Air Pollution'
44
---
55

66
This API allows you to retrieve the current, forecast and historic ultraviolet index (UV index).

docs/docs/apis/current-weather.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Current Weather API
3-
sidebar_label: 'API: Current Weather'
3+
sidebar_label: 'Current Weather'
44
---
55

66
This API allows you to retrieve the current weather data.

docs/docs/apis/uv-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Ultraviolet Index API
3-
sidebar_label: 'API: Ultraviolet Index'
3+
sidebar_label: 'Ultraviolet Index'
44
---
55

66
This API allows you to retrieve the current, forecast and historic ultraviolet index (UV index).

docs/docs/apis/weather-forecast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Weather Forecast API
3-
sidebar_label: 'API: Weather Forecast'
3+
sidebar_label: 'Weather Forecast'
44
---
55

66
This API allows you to retrieve 16-day/daily and 5-day/3-hourly weather forecasts.

docs/docusaurus.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ module.exports = {
8383
copyright: `Copyright © ${new Date().getFullYear()} Christian Flach.
8484
This project is not affiliated with OpenWeatherMap.`,
8585
},
86-
disableDarkMode: true // dark mode requires localstorage, which requires a cookie banner. We don't want the cookie banner.
86+
disableDarkMode: true, // dark mode requires localstorage, which requires a cookie banner. We don't want the cookie banner.
87+
sidebarCollapsible: false,
8788
},
8889
presets: [
8990
[

docs/sidebars.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ module.exports = {
1010
'getting-started',
1111
'api-key',
1212
'usage',
13-
...[
14-
'apis/current-weather',
15-
'apis/weather-forecast',
16-
'apis/air-pollution',
17-
'apis/uv-index',
18-
]
19-
// {
20-
// type: 'category',
21-
// label: 'APIs',
22-
// items: []
23-
// }
13+
{
14+
type: 'category',
15+
label: 'APIs',
16+
items: [
17+
'apis/current-weather',
18+
'apis/weather-forecast',
19+
'apis/air-pollution',
20+
'apis/uv-index',
21+
]
22+
}
2423
],
2524
};

0 commit comments

Comments
 (0)