We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e8d6b6 commit 1204b62Copy full SHA for 1204b62
readthedocs/config/validation.py
@@ -79,9 +79,9 @@ def validate_path(value, base_path):
79
string_value = validate_string(value)
80
if not string_value:
81
raise ValidationError(value, INVALID_PATH)
82
- pathed_value = os.path.join(base_path, string_value)
83
- final_value = os.path.abspath(pathed_value)
84
- return final_value
+ full_path = os.path.join(base_path, string_value)
+ rel_path = os.path.relpath(full_path, base_path)
+ return rel_path
85
86
87
def validate_string(value):
0 commit comments