mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00: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:
parent
ddb4e369dd
commit
0215d09ccb
8 changed files with 67 additions and 173 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue