Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions build/verify-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
* - Relative documentation links point to existing files
*
* Environment Variables:
* - VERIFY_DOCS_BASE_URL: Base URL for documentation files (default: https://docs.nextcloud.com)
* - VERIFY_DOCS_BASE_URL: Base URL for documentation files (default: https://nextcloud.github.io/documentation/)
* Set to empty string to skip file existence checks
*/

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

$html_file = 'build/index.html';
if (!file_exists($html_file)) {
fwrite(STDERR, "⚠️ $html_file not found\n");
exit(0);
Expand Down
Loading