summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-10-06 23:41:37 +0900
committerTimotheus Kampik <timotheus.kampik@gmail.com>2019-10-06 16:41:37 +0200
commit7faeb793e2e16cde4e5759443fb7f84efddcd9ea (patch)
treef0dd1fabaee01d60a0d4b0cf9ea49e2fc848b852 /doc
parentb47458332a48c571f86bcb662efba70dbfd027c9 (diff)
downloadsphinx-git-7faeb793e2e16cde4e5759443fb7f84efddcd9ea.tar.gz
Close #6658: Add CODE_OF_CONDUCT (#6661)
* Close #6658: Add CODE_OF_CONDUCT * #6658 refine CoC * Base on Django CoC: https://www.djangoproject.com/conduct/ * Simplify: we are a smaller project and can be more concise * Add to ToC * Link from README * Link from index page
Diffstat (limited to 'doc')
-rw-r--r--doc/_templates/index.html4
-rw-r--r--doc/code_of_conduct.rst8
-rw-r--r--doc/contents.rst1
3 files changed, 13 insertions, 0 deletions
diff --git a/doc/_templates/index.html b/doc/_templates/index.html
index c22eebbf9..1fc4ee51c 100644
--- a/doc/_templates/index.html
+++ b/doc/_templates/index.html
@@ -120,4 +120,8 @@
<li>{%trans path=pathto("authors")%}<a href="{{ path }}">Sphinx Authors</a></li>{%endtrans%}
</ul>
+ <h2>{%trans%}Code of Conduct{%endtrans%}</h2>
+
+ {%trans path=pathto("code_of_conduct")%}Please adhere to our <a href="{{ path }}">Code of Conduct</a>.{%endtrans%}
+
{% endblock %}
diff --git a/doc/code_of_conduct.rst b/doc/code_of_conduct.rst
new file mode 100644
index 000000000..c1af92ddc
--- /dev/null
+++ b/doc/code_of_conduct.rst
@@ -0,0 +1,8 @@
+:tocdepth: 2
+
+.. _code_of_conduct:
+
+Sphinx Code of Conduct
+======================
+
+.. include:: ../CODE_OF_CONDUCT
diff --git a/doc/contents.rst b/doc/contents.rst
index 91ce55917..7e87cfffa 100644
--- a/doc/contents.rst
+++ b/doc/contents.rst
@@ -34,6 +34,7 @@ Sphinx documentation contents
changes
examples
authors
+ code_of_conduct