Skip to content

Commit ef550ea

Browse files
authored
Merge pull request #14228 from nextcloud/fix/default-link-domain
fix(ci): use default GH page url to test actual links
2 parents 995b28d + 2d956f3 commit ef550ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build/verify-index.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
* - Relative documentation links point to existing files
1010
*
1111
* Environment Variables:
12-
* - VERIFY_DOCS_BASE_URL: Base URL for documentation files (default: https://docs.nextcloud.com)
12+
* - VERIFY_DOCS_BASE_URL: Base URL for documentation files (default: https://nextcloud.github.io/documentation/)
1313
* Set to empty string to skip file existence checks
1414
*/
1515

16-
$html_file = 'build/index.html';
17-
$base_url = getenv('VERIFY_DOCS_BASE_URL') ?: 'https://docs.nextcloud.com';
16+
# If custom domain is enabled, this should still handle the redirection
17+
$base_url = getenv('VERIFY_DOCS_BASE_URL') ?: 'https://nextcloud.github.io/documentation/';
1818

19+
$html_file = 'build/index.html';
1920
if (!file_exists($html_file)) {
2021
fwrite(STDERR, "⚠️ $html_file not found\n");
2122
exit(0);

0 commit comments

Comments
 (0)