Hyde

一个 Python 静态网站生成器。(A Python Static Website Generator)

Github星跟踪图

Version 0.8.9

image

Overview

Hyde starter
kit
by
merlinrebrovic is a really nice way
to get started with hyde.

Hyde layout for bootstrap
by auzigog is also a good alternative if
you like Twitter's bootstrap
framework
.

You can also take a look at Hyde Powered
Websites
for
inspiration and reference.

Currently hyde is only supported on python 2.7.x. Python 3.x support is
in progress, thanks to jonafato.

Active development of hyde had stalled for some time, but thanks to
llonchj and
jonafato there is now a slow but steady
progress towards 1.0.

Mailing List:
hyde-dev on google
groups. IRC: #hyde on freenode

Installation

To get the latest released version:

pip install hyde

For the current trunk:

pip install -e git://github.com/hyde/hyde.git#egg=hyde

Creating a new hyde site

The following command:

hyde -s ~/test_site create

will create a new hyde site using the test layout.

Generating the hyde site

cd ~/test_site
hyde gen

Serving the website

cd ~/test_site
hyde serve
open http://localhost:8080

Publishing the website

cd ~/test_site
hyde publish -p github

Hyde supports extensible publishers.

Github

The hyde documentation is published to github pages using this command
with the following configuration:

publisher:
    github:
        type: hyde.ext.publishers.dvcs.Git
        path: ../hyde.github.com
        url: git@github.com:hyde/hyde.github.com.git

::: {.note}
::: {.admonition-title}
Note
:::

Currently, the initial path must have clone of the repository already in
place for this command to work.
:::

PyFS

Hyde also has a publisher that acts as a frontend to the awesome PyFS
library
(thanks to
rfk). Here are a few configuration options for
some PyFS backends:

publisher:
    zip:
        type: hyde.ext.publishers.pyfs.PyFS
        url: zip://~/deploy/hyde/docs.zip
    s3:
        type: hyde.ext.publishers.pyfs.PyFS
        url: s3://hyde/docs
    sftp:
        type: hyde.ext.publishers.pyfs.PyFS
        url: sftp:hydeuser:hydepassword@hydedocs.org

::: {.note}
::: {.admonition-title}
Note
:::

PyFS is not installed with hyde. In order to use the PyFS publisher, you
need to install pyfs separately.
:::

Any PyFS dependencies (Example: [boto]{.title-ref} for S3 publishing)
need to be installed separately as well.

pip install fs
pip install boto

To get additional help on PyFS backends, you can run the following
command once PyFS is installed:

fsls --listopeners

Examples

  1. julien.danjou.info
  2. luffy.cx
  3. Cloudpanic
  4. Hyde Documentation Source

A brief list of features

  1. Evented Plugins: The Plugin hooks allow plugins to listen to events
    that occur during different times in the lifecycle and respond
    accordingly.
  2. Metadata: Hyde now supports hierarchical metadata. You can specify
    and override variables at the site, node or the page level and
    access them in the templates.
  3. Organization: The sorter, grouper and tagger plugins provide rich
    meta-data driven organizational capabilities to hyde sites.
  4. Publishing: Hyde sites can be published to variety of targets
    including github pages, Amazon S3 & SFTP.
  1. Changelog
  2. Authors

概览

名称与所有者hyde/hyde
主编程语言Python
编程语言Python (语言数: 4)
平台Mac, Windows, Linux
许可证MIT License
发布数20
最新版本名称v0.8.9 (发布于 2015-11-09 19:21:04)
第一版名称v0.8b2 (发布于 2011-03-13 20:06:05)
创建于2011-01-07 09:52:20
推送于2021-10-05 10:31:44
最后一次提交2016-03-10 07:29:31
星数1.6k
关注者数44
派生数244
提交数600
已启用问题?
问题数194
打开的问题数53
拉请求数76
打开的拉请求数15
关闭的拉请求数60
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部