diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2025-04-18 21:57:38 +0200 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2025-05-20 16:30:07 -0400 |
| commit | e617459095273c5cc95390eafae4bee8b26228c2 (patch) | |
| tree | 02bce9e22c0f0046d042783ca80a4221d98d5510 /docs | |
| parent | 9bcc94ac91b9bdaaeea89f1e802874a8ad8a08b9 (diff) | |
[docs] Fixed stable symlink not updating when changed
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/management/commands/update_docs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/management/commands/update_docs.py b/docs/management/commands/update_docs.py index 18f01a23..8d6e053a 100644 --- a/docs/management/commands/update_docs.py +++ b/docs/management/commands/update_docs.py @@ -369,7 +369,9 @@ class Command(BaseCommand): """ stable = built_dir / "stable" target = built_dir / release.version - stable.symlink_to(target, target_is_directory=True) + if stable.resolve() != target: # Symlink is either missing or has changed + stable.unlink(missing_ok=True) + stable.symlink_to(target, target_is_directory=True) def gen_decoded_documents(directory): |
