Skip to content

Commit bc12766

Browse files
nanuxbethibaudcolasgvangoolcarltongibsonLilyAcorn
authored
Added a .md template alongside the .rst one. (#94)
Co-authored-by: Thibaud Colas <[email protected]> Co-authored-by: Gert Van Gool <[email protected]> Co-authored-by: Carlton Gibson <[email protected]> Co-authored-by: Lily Foote <[email protected]>
1 parent ec95d26 commit bc12766

File tree

3 files changed

+121
-15
lines changed

3 files changed

+121
-15
lines changed

final/0001-dep-process.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,21 +294,24 @@ DEP format
294294

295295
To save everyone time reading DEPs, they need to follow a common format
296296
and outline; this section describes that format. In most cases, it's probably
297-
easiest to start with copying the provided `DEP template <../template.rst>`_,
297+
easiest to start with copying one of the provided DEP templates
298+
(`rst template <../template.rst>`_ - `md template <../template.md>`_),
298299
and filling it in as you go.
299300

300-
DEPs must be written in `reStructuredText <http://docutils.sourceforge.net/rst.html>`_
301-
(the same format as Django's documentation).
301+
DEPs may be written in `reStructuredText <http://docutils.sourceforge.net/rst.html>`_
302+
(the same format as Django's documentation) or
303+
`Markdown <https://www.markdownguide.org>`_ (the same as GitHub issues).
302304

303305
Each DEP should have the following parts:
304306

305307
#. A short descriptive title (e.g. "ORM expressions"), which is also reflected
306308
in the DEP's filename (e.g. ``0181-orm-expressions.rst``).
307309

308-
#. A preamble -- a rST `field list <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists>`_
309-
containing metadata about the DEP, including the DEP number, the names of the
310-
various members of the `DEP team <#forming- the-team>`_, and so forth. See
311-
`DEP Metadata`_ below for specific details.
310+
#. A preamble -- containing metadata about the DEP, including the DEP number,
311+
the names of the various members of the `DEP team <#forming- the-team>`_, and so forth.
312+
See `DEP Metadata`_ below for specific details.
313+
This can be provided as a rST `field list <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists>`_
314+
or `Markdown frontmatter <https://github.com/Kernix13/markdown-cheatsheet/blob/master/frontmatter.md>`_.
312315

313316
#. Abstract -- a short (~200 word) description of the technical issue
314317
being addressed.

template.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
DEP: XXXX
3+
Author: Jacob Kaplan-Moss
4+
Implementation Team: Jacob Kaplan-Moss
5+
Shepherd: Andrew Godwin, Carl Meyer
6+
Status: Draft
7+
Type: Feature
8+
Created: 2014-11-16
9+
Last-Modified: 2014-11-18
10+
---
11+
# DEP XXXX: DEP template
12+
13+
Table of Contents
14+
- [Abstract](#abstract)
15+
- [Specification](#specification)
16+
- [Motivation](#motivation)
17+
- [Rationale](#rationale)
18+
- [Backwards Compatibility](#backwards-compatibility)
19+
- [Reference Implementation](#reference-implementation)
20+
- [Copyright](#copyright)
21+
22+
This DEP provides a sample template for creating your own DEPs. In
23+
conjunction with the content guidelines in [DEP
24+
1](https://github.com/django/deps/blob/main/final/0001-dep-process.rst), this
25+
should make it easy for you to conform your own DEPs to the format
26+
outlined below.
27+
28+
Note: if you are reading this DEP via the web, you should first grab
29+
[the source of this
30+
DEP](https://raw.githubusercontent.com/django/deps/refs/heads/main/template.md) in
31+
order to complete the steps below. **DO NOT USE THE HTML FILE AS YOUR
32+
TEMPLATE!**
33+
34+
To get the source this (or any) DEP, look at the top of the Github page
35+
and click "raw".
36+
37+
If you're unfamiliar with Markdown, this template also exists
38+
as a [reStructuredText template](./template.rst).
39+
40+
Once you've made a copy of this template, remove this abstract, fill
41+
out the metadata above and the sections below, then submit the DEP.
42+
Follow the guidelines in [DEP
43+
1](https://github.com/django/deps/final/0001-dep-process.rst).
44+
45+
## Abstract
46+
47+
This should be a short (~200 word) description of the technical issue
48+
being addressed.
49+
50+
This (and the above metadata) is the only section strictly required to
51+
submit a draft DEP; the following sections can be barebones and fleshed
52+
out as you work through the DEP process.
53+
54+
## Specification
55+
56+
This section should contain a complete, detailed technical specification
57+
which should describe the syntax and semantics of any new feature. The
58+
specification should be detailed enough to allow implementation -- that
59+
is, developers other than the author should (given the right experience)
60+
be able to independently implement the feature, given only the DEP.
61+
62+
## Motivation
63+
64+
This section should explain *why* this DEP is needed. The motivation is
65+
critical for DEPs that want to add substantial new features or
66+
materially refactor existing ones. It should clearly explain why the
67+
existing solutions are inadequate to address the problem that the DEP
68+
solves. DEP submissions without sufficient motivation may be rejected
69+
outright.
70+
71+
## Rationale
72+
73+
This section should flesh out out the specification by describing what
74+
motivated the specific design and why particular design decisions were
75+
made. It should describe alternate designs that were considered and
76+
related work.
77+
78+
The rationale should provide evidence of consensus within the community
79+
and discuss important objections or concerns raised during discussion.
80+
81+
## Backwards Compatibility
82+
83+
If this DEP introduces backwards incompatibilities, you must must
84+
include this section. It should describe these incompatibilities and
85+
their severity, and what mitigation you plan to take to deal with these
86+
incompatibilities.
87+
88+
## Reference Implementation
89+
90+
If there's an implementation of the feature under discussion in this
91+
DEP, this section should include or link to that implementation and
92+
provide any notes about installing/using/trying out the implementation.
93+
94+
## Copyright
95+
96+
This document has been placed in the public domain per the Creative
97+
Commons CC0 1.0 Universal license
98+
(<http://creativecommons.org/publicdomain/zero/1.0/deed>).
99+
100+
(All DEPs must include this exact copyright statement.)

template.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@ TEMPLATE!**
2727
To get the source this (or any) DEP, look at the top of the Github page
2828
and click "raw".
2929

30-
If you're unfamiliar with reStructuredText (the format required of DEPs),
31-
see these resources:
30+
This template uses reStructuredText. A `Markdown version<./template.md>`_ is
31+
also available.
3232

33-
* `A ReStructuredText Primer`__, a gentle introduction.
34-
* `Quick reStructuredText`__, a users' quick reference.
35-
* `reStructuredText Markup Specification`__, the final authority.
33+
These resources are a good place to start if you are unfamiliar with
34+
reStructuredText:
3635

37-
__ http://docutils.sourceforge.net/docs/rst/quickstart.html
38-
__ http://docutils.sourceforge.net/docs/rst/quickref.html
39-
__ http://docutils.sourceforge.net/spec/rst/reStructuredText.html
36+
* `A ReStructuredText Primer`__, a gentle introduction.
37+
* `Quick reStructuredText`__, a users' quick reference.
38+
* `reStructuredText Markup Specification`__, the final authority.
39+
40+
__ http://docutils.sourceforge.net/docs/rst/quickstart.html
41+
__ http://docutils.sourceforge.net/docs/rst/quickref.html
42+
__ http://docutils.sourceforge.net/spec/rst/reStructuredText.html
4043

4144
Once you've made a copy of this template, remove this abstract, fill out the
4245
metadata above and the sections below, then submit the DEP. Follow the

0 commit comments

Comments
 (0)