Debian Codegraph @

docs/ref/rst/history.rst

raw
1 .. include:: ../../header2.rst
2
3 =============================
4 History of reStructuredText
5 =============================
6 :Author: David Goodger
7 :Contact: [email protected]
8 :Revision: $Revision$
9 :Date: $Date$
10 :Copyright: This document has been placed in the public domain.
11
12 reStructuredText_, the specification, is based on StructuredText_ and
13 Setext_. StructuredText was developed by Jim Fulton of `Zope
14 Corporation`_ (formerly Digital Creations) and first released in 1996.
15 It is now released as a part of the open-source "Z Object Publishing
16 Environment" (ZOPE_). Ian Feldman's and Tony Sanders' earlier Setext_
17 specification was either an influence on StructuredText or, by their
18 similarities, at least evidence of the correctness of this approach.
19
20 I discovered StructuredText_ in late 1999 while searching for a way to
21 document the Python modules in one of my projects. Version 1.1 of
22 StructuredText was included in Daniel Larsson's pythondoc_. Although
23 I was not able to get pythondoc to work for me, I found StructuredText
24 to be almost ideal for my needs. I joined the Python Doc-SIG_
25 (Documentation Special Interest Group) mailing list and found an
26 ongoing discussion of the shortcomings of the StructuredText
27 "standard". This discussion has been going on since the inception of
28 the mailing list in 1996, and possibly predates it.
29
30 I decided to modify the original module with my own extensions and
31 some suggested by the Doc-SIG members. I soon realized that the
32 module was not written with extension in mind, so I embarked upon a
33 general reworking, including adapting it to the "re" regular
34 expression module (the original inspiration for the name of this
35 project). Soon after I completed the modifications, I discovered that
36 StructuredText.py was up to version 1.23 in the ZOPE distribution.
37 Implementing the new syntax extensions from version 1.23 proved to be
38 an exercise in frustration, as the complexity of the module had become
39 overwhelming.
40
41 In 2000, development on StructuredTextNG ("Next Generation") began at
42 `Zope Corporation`_ (then Digital Creations). It seems to have many
43 improvements, but still suffers from many of the problems of classic
44 StructuredText.
45
46 I decided that a complete rewrite was in order, and even started a
47 `reStructuredText SourceForge project`_ (now inactive). My
48 motivations (the "itches" I aim to "scratch") are as follows:
49
50 - I need a standard format for inline documentation of the programs I
51 write. This inline documentation has to be convertible to other
52 useful formats, such as HTML. I believe many others have the same
53 need.
54
55 - I believe in the Setext/StructuredText idea and want to help
56 formalize the standard. However, I feel the current specifications
57 and implementations have flaws that desperately need fixing.
58
59 - reStructuredText could form part of the foundation for a
60 documentation extraction and processing system, greatly benefitting
61 Python. But it is only a part, not the whole. reStructuredText is
62 a markup language specification and a reference parser
63 implementation, but it does not aspire to be the entire system. I
64 don't want reStructuredText or a hypothetical Python documentation
65 processor to die stillborn because of over-ambition.
66
67 - Most of all, I want to help ease the documentation chore, the bane
68 of many a programmer.
69
70 Unfortunately I was sidetracked and stopped working on this project.
71 In November 2000 I made the time to enumerate the problems of
72 StructuredText and possible solutions, and complete the first draft of
73 a specification. This first draft was posted to the Doc-SIG in three
74 parts:
75
76 - `A Plan for Structured Text`__
77 - `Problems With StructuredText`__
78 - `reStructuredText: Revised Structured Text Specification`__
79
80 __ https://mail.python.org/pipermail/doc-sig/2000-November/001239.html
81 __ https://mail.python.org/pipermail/doc-sig/2000-November/001240.html
82 __ https://mail.python.org/pipermail/doc-sig/2000-November/001241.html
83
84 In March 2001 a flurry of activity on the Doc-SIG spurred me to
85 further revise and refine my specification, the result of which you
86 are now reading. An offshoot of the reStructuredText project has been
87 the realization that a single markup scheme, no matter how well
88 thought out, may not be enough. In order to tame the endless debates
89 on Doc-SIG, a flexible `Docstring Processing System framework`_ needed
90 to be constructed. This framework has become the more important of
91 the two projects; reStructuredText_ has found its place as one
92 possible choice for a single component of the larger framework.
93
94 The project web site and the first project release were rolled out in
95 June 2001, including posting the second draft of the spec [#spec-2]_
96 and the first draft of PEPs 256, 257, and 258 [#peps-1]_ to the
97 Doc-SIG. These documents and the project implementation proceeded to
98 evolve at a rapid pace. Implementation history details can be found
99 in the `project history file`_.
100
101 In November 2001, the reStructuredText parser was nearing completion.
102 Development of the parser continued with the addition of small
103 convenience features, improvements to the syntax, the filling in of
104 gaps, and bug fixes. After a long holiday break, in early 2002 most
105 development moved over to the other Docutils components, the
106 "Readers", "Writers", and "Transforms". A "standalone" reader
107 (processes standalone text file documents) was completed in February,
108 and a basic HTML writer (producing HTML 4.01, using CSS-1) was
109 completed in early March.
110
111 `PEP 287`_, "reStructuredText Standard Docstring Format", was created
112 to formally propose reStructuredText as a standard format for Python
113 docstrings, PEPs, and other files. It was first posted to
114 comp.lang.python_ and the Python-dev_ mailing list on 2002-04-02.
115
116 Version 0.4 of the reStructuredText__ and `Docstring Processing
117 System`_ projects were released in April 2002. The two projects were
118 immediately merged, renamed to "Docutils_", and a 0.1 release soon
119 followed.
120
121 .. __: `reStructuredText SourceForge project`_
122
123 .. [#spec-2] The second draft of the spec:
124
125 - `An Introduction to reStructuredText`__
126 - `Problems With StructuredText`__
127 - `reStructuredText Markup Specification`__
128 - `Python Extensions to the reStructuredText Markup
129 Specification`__
130
131 __ https://mail.python.org/pipermail/doc-sig/2001-June/001858.html
132 __ https://mail.python.org/pipermail/doc-sig/2001-June/001859.html
133 __ https://mail.python.org/pipermail/doc-sig/2001-June/001860.html
134 __ https://mail.python.org/pipermail/doc-sig/2001-June/001861.html
135
136 .. [#peps-1] First drafts of the PEPs:
137
138 - `PEP 256: Docstring Processing System Framework`__
139 - `PEP 258: DPS Generic Implementation Details`__
140 - `PEP 257: Docstring Conventions`__
141
142 Current working versions of the PEPs can be found in
143 https://docutils.sourceforge.io/docs/peps/, and official versions
144 can be found in the `master PEP repository`_.
145
146 __ https://mail.python.org/pipermail/doc-sig/2001-June/001855.html
147 __ https://mail.python.org/pipermail/doc-sig/2001-June/001856.html
148 __ https://mail.python.org/pipermail/doc-sig/2001-June/001857.html
149
150
151 .. _reStructuredText: https://docutils.sourceforge.io/rst.html
152 .. _StructuredText: https://zopestructuredtext.readthedocs.org/
153 .. _Setext: https://docutils.sourceforge.io/mirror/setext.html
154 .. _Docutils: https://docutils.sourceforge.io/
155 .. _Doc-SIG: https://www.python.org/sigs/doc-sig/
156 .. _Zope Corporation: http://www.zope.com
157 .. _ZOPE: https://www.zope.dev
158 .. _reStructuredText SourceForge project:
159 http://structuredtext.sourceforge.net/
160 .. _pythondoc: http://starship.python.net/crew/danilo/pythondoc/
161 .. _project history file: ../../../HISTORY.html
162 .. _PEP 287: ../../peps/pep-0287.html
163 .. _Docstring Processing System framework: ../../peps/pep-0256.html
164 .. _comp.lang.python: news:comp.lang.python
165 .. _Python-dev: https://mail.python.org/pipermail/python-dev/
166 .. _Docstring Processing System: http://docstring.sourceforge.net/
167 .. _master PEP repository: https://peps.python.org/