Skip to content

Commit 6dbf8b5

Browse files
committed
Minor docs cs fix
1 parent 9c4df93 commit 6dbf8b5

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/docusaurus.config.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
const user = "cmfcmf";
2-
const repo = "OpenWeatherMap-PHP-API";
2+
const project = "OpenWeatherMap-PHP-API";
33
const githubUserUrl = `https://github.com/${user}`;
4-
const githubUrl = `${githubUserUrl}/${repo}`;
4+
const githubUrl = `${githubUserUrl}/${project}`;
5+
6+
const title = project.replace(/-/g, " ");
57

68
module.exports = {
7-
title: 'OpenWeatherMap PHP API',
9+
title: title,
810
tagline: 'A PHP API to parse weather data and weather history from OpenWeatherMap.org.',
911
url: 'https://christianflach.de',
10-
baseUrl: '/OpenWeatherMap-PHP-API/',
12+
baseUrl: `/${project}/`,
1113
favicon: 'img/favicon.ico',
12-
organizationName: 'cmfcmf', // Usually your GitHub org/user name.
13-
projectName: 'OpenWeatherMap-PHP-API', // Usually your repo name.
14+
organizationName: user, // Usually your GitHub org/user name.
15+
projectName: project, // Usually your repo name.
1416
themeConfig: {
1517
navbar: {
16-
title: 'OpenWeatherMap PHP API',
18+
title: title,
1719
logo: {
1820
alt: 'Sun Logo',
1921
src: 'img/logo.svg',
@@ -73,7 +75,7 @@ module.exports = {
7375
},
7476
{
7577
label: 'Privacy / Datenschutz',
76-
href: 'https://cmfcmf.github.io/about'
78+
href: `https://${user}.github.io/about`
7779
}
7880
],
7981
},

0 commit comments

Comments
 (0)