@@ -205,14 +205,23 @@ class EnvTmpPaths(BaseModel):
205205 )
206206 "Temporary metadata directory."
207207
208- tmp_build_dir : str = Field (
209- title = "Temporary Build Directory" ,
210- description = "Temporary directory for intermediate files (contains placeholders)." ,
211- examples = [
212- "/var/tmp/docbuild/doc-example-com/build/{{product}}-{{docset}}-{{lang}}"
213- ],
208+ # SPLIT: static base directory (validated)
209+ tmp_build_base_dir : EnsureWritableDirectory = Field (
210+ title = "Temporary Build Base Directory" ,
211+ description = "The base directory where intermediate build files are stored." ,
212+ examples = ["/var/tmp/docbuild/doc-example-com/build/" ],
214213 )
215- "Temporary build output directory."
214+ "Base path for build output."
215+
216+ # SPLIT: dynamic suffix (string only, not validated as path)
217+ # Added a default value so it's not required in defaults.py or user configs
218+ tmp_build_dir_dyn : str = Field (
219+ default = "{{product}}-{{docset}}-{{lang}}" ,
220+ title = "Temporary Build Directory Suffix" ,
221+ description = "The dynamic part of the build path containing runtime placeholders." ,
222+ examples = ["{{product}}-{{docset}}-{{lang}}" ],
223+ )
224+ "Dynamic suffix for build directory."
216225
217226 tmp_out_dir : EnsureWritableDirectory = Field (
218227 title = "Temporary Output Directory" ,
@@ -228,28 +237,37 @@ class EnvTmpPaths(BaseModel):
228237 )
229238 "Directory for log files."
230239
231- tmp_deliverable_name : str = Field (
232- title = "Temporary Deliverable Name" ,
240+ # RENAMED: To indicate this is a dynamic template
241+ tmp_deliverable_name_dyn : str = Field (
242+ title = "Temporary Deliverable Name (Dynamic)" ,
233243 description = (
234- "The name used for the current deliverable being built "
235- "(e.g., branch name or version)."
244+ "The dynamic template name used for the current deliverable being built."
236245 ),
237246 examples = ["{{product}}_{{docset}}_{{lang}}_XXXXXX" ],
238247 )
239- "Temporary deliverable name."
248+ "Temporary deliverable name template ."
240249
241250
242251class EnvTargetPaths (BaseModel ):
243252 """Defines target paths."""
244253
245254 model_config = ConfigDict (extra = "forbid" )
246255
247- target_dir : str = Field (
248- title = "Target Server Deployment Directory" ,
249- description = "The final remote destination for the built documentation" ,
256+ # SPLIT: static base directory or remote destination
257+ target_base_dir : str = Field (
258+ title = "Target Server Base Directory" ,
259+ description = "The static remote destination or base path for built documentation." ,
250260 examples = [
"[email protected] :/srv/docs" ],
251261 )
252- "The destination directory for final built documentation."
262+ "The base destination for final built documentation."
263+
264+ # SPLIT: dynamic suffix
265+ target_dir_dyn : str = Field (
266+ title = "Target Directory Suffix" ,
267+ description = "The dynamic suffix of the remote path containing runtime placeholders." ,
268+ examples = ["{{product}}" ],
269+ )
270+ "Dynamic suffix for final remote destination."
253271
254272 backup_dir : Path = Field (
255273 title = "Build Server Backup Directory" ,
0 commit comments