Skip to content

Commit

Permalink
Update README: export content to distribution (#54)
Browse files Browse the repository at this point in the history
* Update README: export content to distribution

* Update Makefile: match target

Co-authored-by: Steve Piercy <[email protected]>

* Update README.md

Co-authored-by: Steve Piercy <[email protected]>

* Update README.md: export content

* Update CHANGELOG.md

---------

Co-authored-by: Steve Piercy <[email protected]>
  • Loading branch information
ksuess and stevepiercy authored Sep 7, 2024
1 parent ae21500 commit 3564d96
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2024-09-07

- Update instructions. [ksuess]


# 2024-05-17

Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ install-backend: ## Create virtualenv and install Plone
build-backend: ## Build Backend
$(MAKE) -C "./backend/" build-dev

.PHONY: export-distribution
export-distribution: ## Export content
$(MAKE) -C "./backend/" export-distribution

.PHONY: create-site
create-site: ## Create a Plone site with default content
$(MAKE) -C "./backend/" create-site
Expand Down Expand Up @@ -128,6 +132,10 @@ install-classic: ## Create virtualenv and install Plone
build-classic: ## Build classic
$(MAKE) -C "./classic/" build-dev

.PHONY: export-distribution-classic
export-distribution-classic: ## Export content
$(MAKE) -C "./classic/" export-distribution

.PHONY: create-site-classic
create-site-classic: ## Create a Plone site with default content
$(MAKE) -C "./classic/" create-site
Expand Down
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,31 @@ The demo-sites use https://github.com/plone/plone.distribution to create and man

To update/extend the content run the site locally and make the changes you wish to see.

Use http://localhost:8080/Plone/@@dist_export_all to export the data.
Export and test depending on the type of site: Volto or Classic.

Test your changes by creating a fresh site:
#### Volto

Export the data to the distribution:

```shell
make export-distribution
```

Volto:
Test your changes by creating a fresh site:

```shell
make create-site
```

Classic:
#### Classic

Export the data to the distribution:

```shell
make export-distribution-classic
```

Test your changes by creating a fresh site:

```shell
make create-site-classic
Expand Down
4 changes: 4 additions & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ test: ## run tests
test_quiet: ## run tests removing deprecation warnings
PYTHONWARNINGS=ignore ./bin/zope-testrunner --auto-color --auto-progress --test-path src/plone6demo/src/

.PHONY: export-distribution
export-distribution: ## Export content
bin/export-distribution instance/etc/zope.conf Plone

.PHONY: create-site
create-site: ## Create a new site using default distribution and default answers
DEVELOP_DISTRIBUTIONS=$(DISTRIBUTIONS) ALLOWED_DISTRIBUTIONS=$(DISTRIBUTIONS) PYTHONWARNINGS=ignore ./bin/zconsole run instance/etc/zope.conf scripts/create_site.py
Expand Down
4 changes: 4 additions & 0 deletions classic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ test: ## run tests
test_quiet: ## run tests removing deprecation warnings
PYTHONWARNINGS=ignore ./bin/zope-testrunner --auto-color --auto-progress --test-path src/plonedemo.site/src/

.PHONY: export-distribution
export-distribution: ## Export content
bin/export-distribution instance/etc/zope.conf Plone

.PHONY: create-site
create-site: ## Create a new site using default distribution and default answers
DEVELOP_DISTRIBUTIONS=$(DISTRIBUTIONS) ALLOWED_DISTRIBUTIONS=$(DISTRIBUTIONS) PYTHONWARNINGS=ignore ./bin/zconsole run instance/etc/zope.conf scripts/create_site.py
Expand Down

0 comments on commit 3564d96

Please sign in to comment.