|
1 | 1 | const user = "cmfcmf";
|
2 |
| -const repo = "OpenWeatherMap-PHP-API"; |
| 2 | +const project = "OpenWeatherMap-PHP-API"; |
3 | 3 | const githubUserUrl = `https://github.com/${user}`;
|
4 |
| -const githubUrl = `${githubUserUrl}/${repo}`; |
| 4 | +const githubUrl = `${githubUserUrl}/${project}`; |
| 5 | + |
| 6 | +const title = project.replace(/-/g, " "); |
5 | 7 |
|
6 | 8 | module.exports = {
|
7 |
| - title: 'OpenWeatherMap PHP API', |
| 9 | + title: title, |
8 | 10 | tagline: 'A PHP API to parse weather data and weather history from OpenWeatherMap.org.',
|
9 | 11 | url: 'https://christianflach.de',
|
10 |
| - baseUrl: '/OpenWeatherMap-PHP-API/', |
| 12 | + baseUrl: `/${project}/`, |
11 | 13 | 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. |
14 | 16 | themeConfig: {
|
15 | 17 | navbar: {
|
16 |
| - title: 'OpenWeatherMap PHP API', |
| 18 | + title: title, |
17 | 19 | logo: {
|
18 | 20 | alt: 'Sun Logo',
|
19 | 21 | src: 'img/logo.svg',
|
@@ -73,7 +75,7 @@ module.exports = {
|
73 | 75 | },
|
74 | 76 | {
|
75 | 77 | label: 'Privacy / Datenschutz',
|
76 |
| - href: 'https://cmfcmf.github.io/about' |
| 78 | + href: `https://${user}.github.io/about` |
77 | 79 | }
|
78 | 80 | ],
|
79 | 81 | },
|
|
0 commit comments