Skip to content

Commit c77e62f

Browse files
committed
Update documentation and readme
1 parent 4529d6c commit c77e62f

File tree

11 files changed

+63
-53
lines changed

11 files changed

+63
-53
lines changed

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<p align="center">
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/codingjoe/django-select2/raw/main/images/logo-dark.svg">
4+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/codingjoe/django-select2/raw/main/images/logo-light.svg">
5+
<img alt="Django Select2: Custom autocomplete fields for Django" src="https://github.com/codingjoe/django-select2/raw/main/images/logo-light.svg">
6+
</picture>
7+
<br>
8+
<a href="https://django-select2.rtfd.io">Documentation</a>
9+
</p>
10+
11+
# Django-Select2
12+
13+
[![version](https://img.shields.io/pypi/v/Django-Select2.svg)](https://pypi.python.org/pypi/Django-Select2/)
14+
[![coverage](https://codecov.io/gh/codingjoe/django-select2/branch/main/graph/badge.svg)](https://codecov.io/gh/codingjoe/django-select2)
15+
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/codingjoe/django-select2/main/LICENSE.txt)
16+
17+
Custom autocomplete fields for [Django](https://www.djangoproject.com/).
18+
19+
## Documentation
20+
21+
Documentation available at <https://django-select2.rtfd.io>.
22+
23+
> [!NOTE]
24+
> Django\'s admin comes with builtin support for Select2 via the [autocomplete_fields](https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields) feature.

README.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

SECURITY.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
version = ".".join(release.split(".")[:2])
2525

2626
master_doc = "index" # default in Sphinx v2
27+
html_theme = "furo"
2728

2829

2930
extensions = [

docs/index.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
.. include:: ../README.rst
1+
Django Select2
2+
==============
3+
4+
.. image:: https://github.com/codingjoe/django-select2/raw/main/images/logo-light.svg
5+
:align: center
6+
:class: only-light
7+
8+
.. image:: https://github.com/codingjoe/django-select2/raw/main/images/logo-dark.svg
9+
:align: center
10+
:class: only-dark
211

312
Installation
413
------------

images/logo-dark.svg

Lines changed: 13 additions & 0 deletions
Loading

images/logo-light.svg

Lines changed: 13 additions & 0 deletions
Loading

linter-requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "django-select2"
77
authors = [
88
{ name = "Johannes Maron", email = "johannes@maron.family" },
99
]
10-
readme = "README.rst"
10+
readme = "README.md"
1111
license = { file = "LICENSE" }
1212
keywords = ["Django", "select2", "autocomplete", "typeahead"]
1313
dynamic = ["version", "description"]
@@ -48,6 +48,7 @@ test = [
4848
]
4949
docs = [
5050
"sphinx",
51+
"furo",
5152
]
5253

5354
[project.urls]

0 commit comments

Comments
 (0)