Skip to content

Commit 72e3643

Browse files
committed
Remove experimental split spec processing from build.py
1 parent 101ad1a commit 72e3643

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

build.py

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
"""Script to build the spec."""
3+
"""Script to build the Bikeshed (.bs) files for the UI Events spec."""
44

55
from __future__ import print_function
66

@@ -11,6 +11,11 @@
1111

1212
DEBUG = False
1313

14+
# This Parser processes the base *.txt files in the section/ directory to produce a set
15+
# of output *.bs files that can be used as input to Bikeshed to create the final .html
16+
# file.
17+
# This pre-processing marks up the Key and Code values (with appropriate links) and
18+
# generates HTML tables from the ASCII markup.
1419
class Parser():
1520
"""Pre-bikeshed parser for uievents spec."""
1621

@@ -274,6 +279,8 @@ def process_main_spec():
274279
'glossary',
275280
]
276281

282+
# Generate an .include file for each .txt file in the sections/ directory.
283+
# These .include files are referenced by the main index.bs file.
277284
for section in sections:
278285
infilename = 'sections/' + section + '.txt'
279286
outfilename = 'sections/' + section + '.include'
@@ -291,34 +298,8 @@ def process_main_spec():
291298
cmd.append('--line-numbers')
292299
subprocess.call(cmd)
293300

294-
def process_split_spec():
295-
# Split version of the UIEvents spec.
296-
split_sections = [
297-
'composition-events',
298-
'focus-events',
299-
'input-events',
300-
'keyboard-events',
301-
'mouse-events',
302-
'ui-events',
303-
'wheel-events',
304-
]
305-
for section in split_sections:
306-
infilename = 'split/' + section + '.txt'
307-
outfilename = 'split/' + section + '.bs'
308-
309-
# Generate the bikeshed file.
310-
parser = Parser()
311-
parser.process(infilename, outfilename)
312-
313-
print('Bikeshedding split specs...')
314-
for section in split_sections:
315-
print('...' + section)
316-
cmd = ["bikeshed", "spec", "split/" + section + ".bs"]
317-
subprocess.call(cmd)
318-
319301
def main():
320302
process_main_spec()
321-
#process_split_spec()
322303

323304
if __name__ == '__main__':
324305
main()

0 commit comments

Comments
 (0)