Commit 5ed5416d authored by Michael McAndrew's avatar Michael McAndrew

always update the symlinks for each build (even if you don't need to). Also...

always update the symlinks for each build (even if you don't need to). Also updated user stable and latest branches
parent b2a06401
......@@ -142,13 +142,17 @@ class Publisher{
$langDir = realpath("$publishDir/..");
foreach($symlinks as $destination => $source){
if (!$this->fs->exists("$langDir/$destination")) {
if (!$this->fs->exists("$langDir/$source")) {
$this->addMessage('CRITICAL', "'$source' is defined as the $destination version of this documentation but is not yet published. <a href='{$this->baseUrl}/admin/publish/{$book}/{$lang}/{$source}'>Publish now</a>");
}else{
$this->fs->symlink("$langDir/$source", "$langDir/$destination");
}
$this->fs->remove("$langDir/$destination");
if ($this->fs->exists("$langDir/$source")) {
$this->fs->symlink("$langDir/$source", "$langDir/$destination");
} else {
$this->addMessage('CRITICAL', "'$source' is defined as the $destination version of this documentation but is not yet published. <a href='{$this->baseUrl}/admin/publish/{$book}/{$lang}/{$source}'>Publish now</a>");
}
// if ($this->fs->exists("$langDir/$destination")) {
// echo $this->fs->remove("$langDir/$destination");exit;
// }
// }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment