Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laughk/docker-pelican-sitebuilder
https://github.com/laughk/docker-pelican-sitebuilder
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/laughk/docker-pelican-sitebuilder
- Owner: laughk
- Created: 2017-12-18T14:32:55.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T01:55:13.000Z (about 2 years ago)
- Last Synced: 2024-11-30T22:27:20.308Z (about 1 month ago)
- Language: Shell
- Homepage: https://hub.docker.com/r/laughk/sitebuild-by-pelican/
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-sitebuild-by-pelican
Docker container include [pelican](https://github.com/getpelican/pelican), [pelican-plugins](https://github.com/getpelican/pelican-plugins), [getpelican/pelican-themes](https://github.com/getpelican/pelican-themes)
## use case
### build pelican site in localmachine
put `docker-compose.yml` like below to your pelican site project root directory.
```yml
version: '3'
services:
pelican-sitebuilder:
image: laughk/pelican-sitebuilder
volumes:
- .:/project-root
```and execute below command.
```
docker-compose run pelican-sitebuilder
```then, static site contents will be generated to `output` directory with using `pelicanconf.py`.
#### use with publishconf.py
If you want use `publishconf.py`, update docker-compose.yml to like below.
```yml
version: '3'
services:
pelican-sitebuilder:
image: laughk/pelican-sitebuilder
volumes:
- .:/project-root
command: builder -c publish
```#### use theme you want use
If you want use `publishconf.py`, update docker-compose.yml to like below.
```yml
version: '3'
services:
pelican-sitebuilder:
image: laughk/pelican-sitebuilder
volumes:
- .:/project-root
- /path/to/pelican-theme-which-you-want:/my-theme
command: builder -T
```