Skip to content

Commit 408b4e7

Browse files
author
Ben Dickinson
committed
Fix typo in minimum Poetry version and move demo app pattern library to /
1 parent a721f5b commit 408b4e7

File tree

9 files changed

+20
-15
lines changed

9 files changed

+20
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ jobs:
8181
# Docs website build.
8282
- run: poetry run mkdocs build --strict
8383
# Demo website build.
84-
- run: wget --mirror --page-requisites --no-parent --no-verbose http://localhost:8000/django-pattern-library/demo/pattern-library/
84+
- run: wget --mirror --page-requisites --no-parent --no-verbose http://localhost:8000/django-pattern-library/demo/
8585
- run: mv localhost:8000/django-pattern-library/demo site
8686
# Demo render_patterns.
8787
- run: poetry run django-admin render_patterns --settings=tests.settings.production --pythonpath=. --wrap-fragments --output=site/dpl-rendered-patterns
8888
# Package build, incl. publishing an experimental pre-release via GitHub Pages for builds on `main`.
89-
- run: cat pyproject.toml| awk '{sub(/^version = .+/,"version = \"0.0.0.dev\"")}1' > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
89+
- run: cat pyproject.toml | awk '{sub(/^version = .+/,"version = \"0.0.0.dev\"")}1' > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
9090
- run: poetry build
9191
- run: mv dist site
9292
- uses: actions/upload-artifact@v2

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
- Support for Python 3.10 ([#163](https://github.com/torchbox/django-pattern-library/pull/163)).
99
- VS Code devcontainer for development [#178](https://github.com/torchbox/django-pattern-library/pull/178)
1010

11+
### Changed
12+
13+
- Change Poetry version to be `>=1.1.12,<2` in Docker development setup (prevents `JSONDecodeError` issue under Python 3.10) [#178](https://github.com/torchbox/django-pattern-library/pull/178)
14+
- Move demo/test app pattern-library from `/pattern-library/` to `/` [#178](https://github.com/torchbox/django-pattern-library/pull/178)
15+
1116
### Removed
1217

1318
- We no longer support Python 3.6, as it has reached its end of life ([#163](https://github.com/torchbox/django-pattern-library/pull/163).
@@ -30,7 +35,7 @@ This addresses the following limitations of the pattern library:
3035
- [#113 Django form fields not well supported](https://github.com/torchbox/django-pattern-library/issues/113)
3136
- [#135 Competing tag/context config for image provides inconsistent result](https://github.com/torchbox/django-pattern-library/issues/135)
3237

33-
View the [documentation](https://torchbox.github.io/django-pattern-library/guides/defining-template-context/#modifying-template-contexts-with-python), as well as demos leveraging the new capability: [forms](https://torchbox.github.io/django-pattern-library/demo/pattern-library/pattern/patterns/pages/forms/example_form.html) (see [forms and fields recipe](https://torchbox.github.io/django-pattern-library/recipes/forms-and-fields/)), and [pagination](https://torchbox.github.io/django-pattern-library/demo/pattern-library/pattern/patterns/pages/search/search.html) (see [pagination recipe](https://torchbox.github.io/django-pattern-library/recipes/pagination/)).
38+
View the [documentation](https://torchbox.github.io/django-pattern-library/guides/defining-template-context/#modifying-template-contexts-with-python), as well as demos leveraging the new capability: [forms](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/forms/example_form.html) (see [forms and fields recipe](https://torchbox.github.io/django-pattern-library/recipes/forms-and-fields/)), and [pagination](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/search/search.html) (see [pagination recipe](https://torchbox.github.io/django-pattern-library/recipes/pagination/)).
3439

3540
## [0.4.0](https://github.com/torchbox/django-pattern-library/releases/tag/v0.4.0) - 2021-05-20
3641

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ docker-compose up
4141
docker-compose exec web django-admin runserver 0.0.0.0:8000
4242
```
4343

44-
Once the server is started, the pattern library will be available at `http://localhost:8000/pattern-library/`.
44+
Once the server is started, the pattern library will be available at `http://localhost:8000/`.
4545

4646
### Run locally with Poetry
4747

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM python:3.10
33
WORKDIR /app
44

55
RUN useradd --create-home dpl && \
6-
pip install "poetry>=1.1.2,<2" && \
7-
poetry config virtualenvs.create false
6+
pip install "poetry>=1.1.12,<2" && \
7+
e poetry config virtualenvs.create false
88

99
COPY pyproject.toml ./
1010
RUN poetry install --no-root

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![PyPI](https://img.shields.io/pypi/v/django-pattern-library.svg)](https://pypi.org/project/django-pattern-library/) [![PyPI downloads](https://img.shields.io/pypi/dm/django-pattern-library.svg)](https://pypi.org/project/django-pattern-library/) [![Build status](https://github.com/torchbox/django-pattern-library/workflows/CI/badge.svg)](https://github.com/torchbox/django-pattern-library/actions) [![Total alerts](https://img.shields.io/lgtm/alerts/g/torchbox/django-pattern-library.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/torchbox/django-pattern-library/alerts/)
44

5-
> UI pattern libraries for Django templates. Try our [online demo](https://torchbox.github.io/django-pattern-library/demo/pattern-library/).
5+
> UI pattern libraries for Django templates. Try our [online demo](https://torchbox.github.io/django-pattern-library/demo/).
66
77
![Screenshot of the pattern library UI, with navigation, pattern rendering, and configuration](https://raw.githubusercontent.com/torchbox/django-pattern-library/main/.github/pattern-library-screenshot.webp)
88

@@ -31,8 +31,8 @@ Learn more by watching our presentation – [Reusable UI components: A journey f
3131

3232
The pattern library is dependent on Django for rendering – but also supports exporting as a static site if needed. Try out our online demo:
3333

34-
- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern-library/pattern/patterns/molecules/accordion/accordion.html)
35-
- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern-library/pattern/patterns/pages/people/person_page.html)
34+
- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/molecules/accordion/accordion.html)
35+
- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/people/person_page.html)
3636

3737
## Documentation
3838

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Getting started
22

3-
> If you just want to see django-pattern-library up and running, have a look at our [online demo](https://torchbox.github.io/django-pattern-library/demo/pattern-library/pattern/patterns/molecules/accordion/accordion.html).
3+
> If you just want to see django-pattern-library up and running, have a look at our [online demo](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/molecules/accordion/accordion.html).
44
55
## Installation
66

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Pattern libraries will change your workflow for the better:
2929

3030
The pattern library is dependent on Django for rendering – but also supports exporting as a static site if needed. Try out our online demo:
3131

32-
- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern-library/pattern/patterns/molecules/accordion/accordion.html)
33-
- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern-library/pattern/patterns/pages/people/person_page.html)
32+
- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/molecules/accordion/accordion.html)
33+
- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/people/person_page.html)
3434

3535
## Why this exists
3636

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ nav:
5858
- 'Related projects': 'community/related-projects.md'
5959
- 'Code of conduct': 'community/code-of-conduct.md'
6060
- 'Security policy': 'community/security-policy.md'
61-
- 'Online demo': '/django-pattern-library/demo/pattern-library/'
61+
- 'Online demo': '/django-pattern-library/demo/'

tests/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
if settings.GITHUB_PAGES_EXPORT:
77
urlpatterns = [
8-
path('django-pattern-library/demo/pattern-library/', include(pattern_library_urls)),
8+
path('django-pattern-library/demo/', include(pattern_library_urls)),
99
]
1010
else:
1111
urlpatterns = [
12-
path('pattern-library/', include(pattern_library_urls)),
12+
path('', include(pattern_library_urls)),
1313
]

0 commit comments

Comments
 (0)