Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a .md template alongside the .rst one #94

Merged
merged 11 commits into from
Jan 14, 2025
8 changes: 5 additions & 3 deletions final/0001-dep-process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,13 @@ DEP format

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

DEPs must be written in `reStructuredText <http://docutils.sourceforge.net/rst.html>`_
(the same format as Django's documentation).
DEPs may be written in `reStructuredText <http://docutils.sourceforge.net/rst.html>`_
(the same format as Django's documentation) or
`MarkDown <https://www.markdownguide.org>` (the same as GitHub issues).
nanuxbe marked this conversation as resolved.
Show resolved Hide resolved

Each DEP should have the following parts:
carltongibson marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
100 changes: 100 additions & 0 deletions template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
DEP: XXXX
Author: Jacob Kaplan-Moss
Implementation Team: Jacob Kaplan-Moss
Shepherd: Andrew Godwin, Carl Meyer
Status: Draft
Type: Feature
Created: 2014-11-16
Last-Modified: 2014-11-18
---
# DEP XXXX: DEP template

Table of Contents
- [Abstract](#abstract)
- [Specification](#specification)
- [Motivation](#motivation)
- [Rationale](#rationale)
- [Backwards Compatibility](#backwards-compatibility)
- [Reference Implementation](#reference-implementation)
- [Copyright](#copyright)

This DEP provides a sample template for creating your own DEPs. In
conjunction with the content guidelines in [DEP
1](https://github.com/django/deps/final/0001-dep-process.rst), this
nanuxbe marked this conversation as resolved.
Show resolved Hide resolved
should make it easy for you to conform your own DEPs to the format
outlined below.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In #85 there’s also a mention of removing the wrapping to 80 characters, what do you think of updating this template accordingly?


Note: if you are reading this DEP via the web, you should first grab
[the source of this
DEP](https://raw.githubusercontent.com/django/deps/template.md) in
nanuxbe marked this conversation as resolved.
Show resolved Hide resolved
order to complete the steps below. **DO NOT USE THE HTML FILE AS YOUR
TEMPLATE!**

To get the source this (or any) DEP, look at the top of the Github page
and click \"raw\".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and further through the rest of the doc, I think it’d be nice to remove the unnecessary escaping.


If you\'re unfamiliar with MarkDown, this template also exists
nanuxbe marked this conversation as resolved.
Show resolved Hide resolved
as a [reStructuredText template](./template.rst).

Once you\'ve made a copy of this template, remove this abstract, fill
out the metadata above and the sections below, then submit the DEP.
Follow the guidelines in [DEP
1](https://github.com/django/deps/final/0001-dep-process.rst).

## Abstract

This should be a short (\~200 word) description of the technical issue
being addressed.

This (and the above metadata) is the only section strictly required to
submit a draft DEP; the following sections can be barebones and fleshed
out as you work through the DEP process.

## Specification

This section should contain a complete, detailed technical specification
which should describe the syntax and semantics of any new feature. The
specification should be detailed enough to allow implementation \-- that
is, developers other than the author should (given the right experience)
be able to independently implement the feature, given only the DEP.

## Motivation

This section should explain *why* this DEP is needed. The motivation is
critical for DEPs that want to add substantial new features or
materially refactor existing ones. It should clearly explain why the
existing solutions are inadequate to address the problem that the DEP
solves. DEP submissions without sufficient motivation may be rejected
outright.

## Rationale

This section should flesh out out the specification by describing what
motivated the specific design and why particular design decisions were
made. It should describe alternate designs that were considered and
related work.

The rationale should provide evidence of consensus within the community
and discuss important objections or concerns raised during discussion.

## Backwards Compatibility

If this DEP introduces backwards incompatibilities, you must must
include this section. It should describe these incompatibilities and
their severity, and what mitigation you plan to take to deal with these
incompatibilities.

## Reference Implementation

If there\'s an implementation of the feature under discussion in this
DEP, this section should include or link to that implementation and
provide any notes about installing/using/trying out the implementation.

## Copyright

This document has been placed in the public domain per the Creative
Commons CC0 1.0 Universal license
(<http://creativecommons.org/publicdomain/zero/1.0/deed>).

(All DEPs must include this exact copyright statement.)
12 changes: 2 additions & 10 deletions template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,8 @@ TEMPLATE!**
To get the source this (or any) DEP, look at the top of the Github page
and click "raw".

If you're unfamiliar with reStructuredText (the format required of DEPs),
see these resources:

* `A ReStructuredText Primer`__, a gentle introduction.
* `Quick reStructuredText`__, a users' quick reference.
* `reStructuredText Markup Specification`__, the final authority.

__ http://docutils.sourceforge.net/docs/rst/quickstart.html
__ http://docutils.sourceforge.net/docs/rst/quickref.html
__ http://docutils.sourceforge.net/spec/rst/reStructuredText.html
If you're unfamiliar with reStructuredText, this template also exists as a
`MarkDown template <./template.md>`_.
nanuxbe marked this conversation as resolved.
Show resolved Hide resolved

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