1
0
Fork 0
forked from github/pelican
pelican-theme/docs
Johannes 'josch' Schauer a5edbf8546 Remove develop_server.sh in favour of pelican serving static files itself
Competing static site generators integrate the functionality of regenerating
content and serving it into their main executable. In pelican this
functionality used to be in an external script `develop_server.sh` which
resides in the blog base directory. This has the disadvantage that changes in
pelican can break the `develop_server.sh` scripts which will not automatically
be upgraded together with pelican by package managers. Thus, pelican should
integrate this functionality into its main executable.

To this end, this commit removes `develop_server.sh` and adds three command
line options to the pelican executable:

 * `-l/--listen` starts the HTTP server (`-s/--serve` was already taken)
 * `-p/--port` specifies the port to listen at
 * `-b/--bind` specifies the IP to bind to

`--listen` and `--autoreload` can be used together to achieve the same
effect that other static site generators offer: Serve files via HTTP
while at the same time auto-generating the content.

Since the `develop_server.sh` script was removed, pelican-quickstart looses the
`develop` option.

Since the `develop_server.sh` script was removed, the Makefile looses the
`stopserver` target and the `devserver` target is replaced by running `pelican
-l` in the foreground.

Since pelican now offers the `--listen` option, the fabfile uses that instead
of starting the socketserver itself.
2018-06-22 19:22:38 +02:00
..
_static Optimize PNG images losslessly using Google zopflipng 2017-12-25 01:43:34 +08:00
changelog.rst Add new signal: feed_generated 2017-01-16 11:33:13 +01:00
conf.py Align import style with flake8-import-order 0.15 2017-11-07 04:18:03 -08:00
content.rst Add template, save_as and url to list 2018-04-02 20:45:27 -04:00
contribute.rst Fix code-in-bold-text rendering in Contribute docs 2018-06-21 17:40:58 +02:00
faq.rst Remove spurious whitespace in documentation source 2016-12-03 14:53:26 -08:00
importer.rst Change pelican-import output directory default name to "content" (fix #2250) 2017-11-09 19:23:38 +01:00
index.rst Enhance feedback and contributing guidelines 2014-06-30 18:34:18 -07:00
install.rst Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
internals.rst Avoid Markdown 2.6 deprecations; make MD_EXTENSIONS a dict 2015-11-30 18:12:28 +01:00
Makefile Add the docs 2010-10-13 23:08:08 +01:00
pelican-themes.rst Fix spelling mistakes in docs 2015-05-24 13:08:23 +01:00
plugins.rst [DOC] register function missing 2018-02-12 15:14:27 +01:00
publish.rst Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
quickstart.rst Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
report.rst Eliminate extraneous whitespace 2012-10-12 23:01:50 +02:00
settings.rst Remove develop_server.sh in favour of pelican serving static files itself 2018-06-22 19:22:38 +02:00
themes.rst Fix documentation for *_SAVE_AS in themes.rst: 2017-12-10 07:17:51 +01:00
tips.rst support ssl in pelican.server with --ssl, --cert & --key 2018-04-07 15:06:38 -07:00