Source code for runway.module.staticsite.options._components
"""Runway Static Site Module options component classes."""from__future__importannotationsfrom...baseimportModuleOptionsfrom._modelsimportRunwayStaticSiteModuleOptionsDataModel
[docs]classStaticSiteOptions(ModuleOptions):"""Static site options. Attributes: build_output: Directory where build output is placed. Defaults to current working directory. build_steps: List of commands to run to build the static site. data: Options parsed into a data model. extra_files: List of files that should be uploaded to S3 after the build. Used to dynamically create or select file. pre_build_steps: Commands to be run prior to the build process. source_hashing: Overrides for source hash calculation and tracking. """
[docs]@classmethoddefparse_obj(cls,obj:object)->StaticSiteOptions:"""Parse options definition and return an options object. Args: obj: Object to parse. """returncls(data=RunwayStaticSiteModuleOptionsDataModel.model_validate(obj))