Skip to content

Commit

Permalink
writing docs with rst and sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaan7 committed Oct 25, 2020
1 parent ca3cc08 commit 5d788d9
Show file tree
Hide file tree
Showing 27 changed files with 65 additions and 483 deletions.
1 change: 1 addition & 0 deletions .flake8
Expand Up @@ -4,3 +4,4 @@ exclude =
*migrations*,
*venv*
virtualenv
docs
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,6 +3,8 @@ __pycache__/
*.py[cod]

venv/
.vscode/
build/

# C extensions
*.so
Expand Down
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

2 changes: 0 additions & 2 deletions CHANGELOG.md

This file was deleted.

4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

13 changes: 4 additions & 9 deletions README.md
Expand Up @@ -16,14 +16,13 @@ Durin authentication is token based, similar to the `TokenAuthentication`
built in to DRF. However, it adds some extra sauce:

- Durin allows **multiple tokens per user**. But only one token each user per API client.
- Each user token is associated with an API Client. These API Clients are configurable via Django's Admin Interface.
- Each user token is associated with an API Client. These API Clients are configurable via Django's Admin Interface. This allows restricting certain `APIViews` to only specific clients or vice-a-versa.
- All Durin **tokens have an expiration time**. This expiration time can be different per API client.
- Durin provides an option for a logged in user to remove *all*
tokens that the server has - forcing him/her to re-authenticate for all API clients.
- Durin provides an option for a logged in user to **remove all tokens** that the server has - forcing them to re-authenticate for all API clients.
- Durin **tokens can be renewed** to get a fresh expiry.
- Durin provides a `CachedTokenAuthentication` backend as well which uses memoization for faster look ups.

More information can be found in the [Documentation](https://django-rest-durin.readthedocs.io/).
More information can be found in the [Documentation](https://django-rest-durin.readthedocs.io/en/latest/installation.html).

## Django Compatibility Matrix

Expand All @@ -47,8 +46,4 @@ This project is published with the [MIT License](LICENSE). See [https://chooseal

## Credits

<<<<<<< HEAD
Durin is inpired by the [django-rest-knox](https://github.com/James1345/django-rest-knox) and [django-rest-multitokenauth](https://github.com/anexia-it/django-rest-multitokenauth) libraries and includes some learnings and code from both.
=======
Durin is inpired by the [django-rest-knox](https://github.com/James1345/django-rest-knox) and [django-rest-multitokenauth](https://github.com/anexia-it/django-rest-multitokenauth) libraries and includes some learnings, docs and code from both.
>>>>>>> docs
Durin is inpired by the [django-rest-knox](https://github.com/James1345/django-rest-knox) and [django-rest-multitokenauth](https://github.com/anexia-it/django-rest-multitokenauth) libraries and adopts some learnings, docs and code from both.
108 changes: 0 additions & 108 deletions docs/auth.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/changelog.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/index.md

This file was deleted.

66 changes: 0 additions & 66 deletions docs/installation.md

This file was deleted.

3 changes: 2 additions & 1 deletion docs/requirements.docs.txt
@@ -1,4 +1,5 @@
../requirements.dev.txt
-r ../requirements.dev.txt
django>=2.2
commonmark==0.9.1
docutils==0.16
Sphinx==3.2.1
Expand Down
105 changes: 0 additions & 105 deletions docs/settings.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/source/changelog.rst
@@ -0,0 +1,7 @@
Changelog
============

`v0.1.0 <https://github.com/eshaan7/django-rest-durin/releases/tag/v0.1.0>`__
--------------------------------------------------------------------------------

- Initial release

0 comments on commit 5d788d9

Please sign in to comment.