Skip to content

Commit 7c7f310

Browse files
🔖 bump version 0.1.0dev0 -> 0.1.0 (#15)
1 parent f90839a commit 7c7f310

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

CHANGELOG.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,31 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1616
### Security
1717
-->
1818

19+
## [0.1.0]
20+
21+
Initial release! 🎉
22+
23+
### Added
24+
25+
- A group of navigation classes -- `Nav`, `NavGroup`, and `NavItem` -- that can be used together to build a simple navigation structure.
26+
- `Nav` is the main container for a navigation structure.
27+
- `NavGroup` is a container for a group of `NavItem` objects.
28+
- `NavItem` is a single navigation item.
29+
- A `django_simple_nav` template tag that renders a `Nav` object to a template. The template tag takes a string represented the dotted path to a `Nav` object and renders it to the template.
30+
- Navigation item urls can be either a URL string (e.g. `https://example.com/about/` or `/about/`) or a Django URL name (e.g. `about-view`). When rendering out to the template, the template tag will resolve the URL name to the actual URL.
31+
- Navigation items also can take a list of permissions to control the visibility of the item. The permissions can be user attributes (e.g. `is_staff`, `is_superuser`, etc.) or a specific permission (e.g. `auth.add_user`).
32+
- Navigation items are marked as `active` if the current request path matches the item's URL. This is can be useful for highlighting the current page in the navigation.
33+
- A `Nav` object's template can either be set as a class attribute (`template_name`) or passed in as a keyword argument when rendering the template tag. This allows for easy customization of the navigation structure on a per-template or per-view basis.
34+
- Initial documentation.
35+
- Initial tests.
36+
- Initial CI/CD (GitHub Actions).
37+
38+
### New Contributors!
39+
40+
- Josh Thomas <josh@joshthomas.dev> (maintainer)
41+
- Jeff Triplett [@jefftriplett](https://github.com/jefftriplett)
42+
1943
## [Unreleased]
2044

21-
[unreleased]: https://github.com/westerveltco/django-simple-nav/compare/HEAD...HEAD
45+
[unreleased]: https://github.com/westerveltco/django-simple-nav/compare/v0.1.0...HEAD
46+
[0.1.0]: https://github.com/westerveltco/django-simple-nav/releases/tag/v0.1.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Source = "https://github.com/westerveltco/django-simple-nav"
7171
[tool.bumpver]
7272
commit = true
7373
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
74-
current_version = "0.1.0dev0"
74+
current_version = "0.1.0"
7575
push = false # set to false for CI
7676
tag = false
7777
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"

src/django_simple_nav/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from __future__ import annotations
22

3-
__version__ = "0.1.0dev0"
3+
__version__ = "0.1.0"

tests/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55

66
def test_version():
7-
assert __version__ == "0.1.0dev0"
7+
assert __version__ == "0.1.0"

0 commit comments

Comments
 (0)