Skip to content

Commit cb6ff57

Browse files
committed
Try setting up a demo site in GitHub Pages with wget
1 parent 6f7acd4 commit cb6ff57

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929
- tox -e lint
3030
# Docs website build.
3131
- poetry run mkdocs build --strict
32+
- poetry run django-admin runserver --settings=tests.settings.production --pythonpath=. &
33+
- wget --mirror --page-requisites --no-parent http://localhost:8000/django-pattern-library/demo/pattern-library/
34+
- mv localhost:8000/django-pattern-library/demo site
3235
# Package build, incl. publishing an experimental pre-release via GitHub Pages for builds on `master`.
3336
- cat pyproject.toml| awk '{sub(/^version = .+/,"version = \"0.0.0.dev\"")}1' > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
3437
- npm run build
3538
- poetry build
36-
- cp -R dist site
39+
- mv dist site
3740
deploy:
3841
- provider: pages
3942
skip_cleanup: true

docs/guides/static-site-export.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ mv static dpl-rendered-patterns/static
4141
It’s very straightforward to export the whole pattern library as a static site, including all templates, and the pattern library UI. Here is an example exporting the pattern library with [`wget`](https://en.wikipedia.org/wiki/Wget):
4242

4343
```sh
44-
wget --mirror --page-requisites --no-parent http://localhost:8000/pattern-library
44+
wget --mirror --page-requisites --no-parent http://localhost:8000/pattern-library/
4545
```

0 commit comments

Comments
 (0)