mirror of
https://github.com/servo/servo
synced 2026-04-28 02:19:14 +02:00
Generate apis.html and css-properties.json for docs as part of crates’ build scripts
… rather than as an extra step after `cargo doc`. This helps always using the correct set of CSS properties (for layout 2013 v.s. 2020).
This commit is contained in:
@@ -7550,7 +7550,7 @@ impl %(base)s {
|
||||
def SupportedDomApis(config):
|
||||
descriptors = config.getDescriptors(isExposedConditionally=False)
|
||||
|
||||
base_path = os.path.join('dom', 'bindings', 'codegen')
|
||||
base_path = os.path.dirname(__file__)
|
||||
with open(os.path.join(base_path, 'apis.html.template')) as f:
|
||||
base_template = f.read()
|
||||
with open(os.path.join(base_path, 'api.html.template')) as f:
|
||||
|
||||
Reference in New Issue
Block a user