cosmin/staticbee
1
0
Fork
You've already forked staticbee
0
Static site generator
  • Python 95.7%
  • HTML 4.3%
Find a file
2026年05月24日 21:33:30 +03:00
src Add copyright and license notices 2026年05月24日 18:47:24 +03:00
tests Use unittest.mock 2026年05月24日 21:33:30 +03:00
.gitignore Use Poetry 2026年05月21日 20:31:34 +03:00
COPYING Rename LICENSE to COPYING 2025年08月03日 09:52:26 +03:00
poetry.lock Use unittest.mock 2026年05月24日 21:33:30 +03:00
pyproject.toml Use unittest.mock 2026年05月24日 21:33:30 +03:00
README.md Use unittest.mock 2026年05月24日 21:33:30 +03:00

Static Bee

Static Site Generator

Static Bee is a static site generator with no configuration, based on XML.

The structure of your site is a mirror of the structure of your sources.

The main idea is: layout + page = result.

For example, consider the following XHTML file as a layout...

<!DOCTYPE html>
<html xmlns:sb="https://cosmin.hume.ro/project/staticbee">
 <head>
 <title>
 <sb:title />
 </title>
 </head>
 <body>
 <sb:content />
 </body>
</html>

... and the following XML file as a page.

<?xml version='1.0' encoding='utf8'?>
<sb:page xmlns:sb="https://cosmin.hume.ro/project/staticbee">
 <sb:title>Example page</sb:title>
 <sb:content>
 <h1>Hello, world!</h1>
 <p>This is some content</p>
 </sb:content>
</sb:page>

Static Bee combines these two together and produces a HTML page for your site:

<!DOCTYPE html>
<html>
 <head>
 <title>Example page</title>
 </head>
 <body>
 <h1>Hello, world!</h1>
 <p>This is some content</p>
 </body>
</html>

Development

To build Static Bee, you need Python 3 and Poetry.

poetry install

To run the tests:

poetry run pytest

Dependencies

Dependencies are managed by Poetry.

Static Bee uses:

  • Pygments, for highlighting syntax in the content of your site