git @ Cat's Eye Technologies Chrysoberyl / e33ada3
Schema for Fork. Clean it up. Chris Pressey 2 years ago
3 changed file(s) with 70 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
114114 [Apple II][] floppy disk images. We use it as part of [Funicular][].
115115 There was a bug in it that we fixed so we maintain a fork for that.
116116
117 [Scheme]: TBW
118 [ANSI C]: TBW
119 [C99]: TBW
120 [AmigaDOS 1.3]: TBW
121 [Pixley]: TBW
122 [Zz]: TBW
123 [Zzrk]: TBW
124 [Java]: TBW
125 [Bubble Escape 2K]: TBW
126 [The Never-Ending Maze]: TBW
127 [Z-Machine]: TBW
128 [C++]: TBW
117 [Scheme]: ../article/Project%20Dependencies.md#scheme
118 [ANSI C]: ../article/Project%20Dependencies.md#ansi-c
119 [C99]: ../article/Project%20Dependencies.md#c99
120 [AmigaDOS 1.3]: ../article/Retrocomputing.md#amiga-500
121 [Pixley]: ../article/Languages.md#pixley
122 [Zz]: https://cdn.rawgit.com/catseye/OpenZz/90896648/doc/zzdoc.html
123 [Zzrk]: ../article/Games.md#zzrk
124 [Java]: ../article/Project%20Dependencies.md#java
125 [Bubble Escape 2K]: ../article/Games.md#bubble-escape
126 [The Never-Ending Maze]: ../article/Games.md#the-never-ending-maze
127 [Z-Machine]: ../article/Retrocomputing.md#z-machine
128 [C++]: http://www.open-std.org/jtc1/sc22/wg21/
129
0 Fork (schema)
1 =============
2
3 This is a schema which defines, for now, a few rudimentary things about
4 what properties Fork entries in Chrysoberyl should have.
5
6 The order in which they are listed here induces an order in which they
7 should appear on each entry.
8
9 * implementation of: [Scheme][] (R4RS)
10 * implementation type: interpreter
11 * license: Public Domain
12 * host language: [ANSI C][]
13 * inception date: Nov 5, 1989
14 * in distribution: [Minischeme distribution](http://catseye.tc/distribution/Minischeme_distribution)
15
16 ### implementation of
17
18 * optional: true
19
20 implementation of
21
22 ### implementation type
23
24 * optional: true
25
26 implementation type
27
28 ### license
29
30 * optional: true
31
32 license
33
34 ### host language
35
36 * optional: true
37
38 what it's written in
39
40 ### inception date
41
42 * optional: true
43
44 date
45
46 ### in distribution
47
48 where it's at
2121 ('Archived', 'Tool',),
2222 ('Languages', 'Language',),
2323 ('Language Implementations', 'Language Implementation',),
24 ('Forks', None,),
24 ('Forks', 'Fork',),
2525 ('Automata', 'Language',),
2626 ('Gewgaws', 'Gewgaw',),
2727 ('Events', 'Event',),
4545
4646 def rewrite_documents(refdex):
4747 for title, schema in ARTICLES:
48 if title in ('News',):
49 continue
4850 print("{}...".format(title))
4951 filename = document_name(title)
5052 document = read_document_from(filename)
5153 document.rewrite_reference_links(refdex)
54
5255 if schema:
5356 schema_document = read_document_from("schema/{}.md".format(schema))
5457 schema = Schema(schema_document)
5558 results = schema.check_documents([document])
5659 if results:
5760 raise ValueError(json.dumps(results, indent=4, sort_keys=True))
58 s = feedmark_markdownize(document, schema=schema)
59 with open(document.filename, 'w') as f:
60 f.write(s.encode('UTF-8'))
61
62 text = feedmark_markdownize(document, schema=schema)
63 with open(document.filename, 'w') as f:
64 f.write(text.encode('UTF-8'))
6165
6266
6367 def accumulate_article_refdex(refdex):