Zoey is a command line static site generator, written in Python.
Project description
hi Zoey
Say hello to zoey, a command line based Static Site Generator !
zoey is based on Python, and works on any Python installation above v3.6.x
Contents
Installation
- Install Python for your OS from here
- Ensure that Add Python to PATH checkbox during installation is checked.
- Open a command line of your choice, type
pip install zoey
and press enter ⏎
Voila, thats it ! zoey is installed and ready to go.
Getting Started
To create a new site, in your command line of choice, type
zoey new site <site-name>
This command generates a folder named <site-name>
, with the following structure -
/<site-name>
├── config.py
├── /public
└── /src
├── /assets
│ ├── /media
│ └── style.css
└── index.md
Folder structure explanation -
config.py
- This file holds certain configuration for your site./src
- This is the folder where you will be writing all the pages for your site in markdown.md
format./public
- This is the folder, which will have the final html files, which you can directly copy and add to any hosting service of choice. The contents of this folder will be auto generated when the generator is run.
Core concepts
- Always make changes in the src directory only. No direct changes to be made to the public directory.
- group - A group is basically a folder inside src, which groups some pages together.
- page - A page is an individual markdown file, that will be converted to a HTML page.
- All multimedia files should be placed inside the
src/assets/media
folder only, and then suitably linkedin inside the markdown files.
Usage
- To create a new page -
zoey new page <page-name>
This creates a new page namedpage-name.md
inside the src folder. - To create a group -
zoey new group <group-name>
This creates a new folder namedgroup-name
inside the src folder.assets is a reserved keyword for group naming, and cannot be used to create any group
- To create a new page inside a group -
zoey new page <page-name> --group <group-name>
This creates a new page namedpage-name.md
inside thegroup-name
folder. - To see the list of all groups -
zoey groups
This lists down all the groups that have been created. - To generate the final site -
zoey generate site
This will populate the public directory which can be copied and added to any hosting provider of choice.
Hope you enjoy using zoey
zoey is the brainchild of Soumit Das To report bugs, please send a bug report, along with python and pip version number to me@soumit.in
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zoey-0.2.0.tar.gz
.
File metadata
- Download URL: zoey-0.2.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 464119ac991934c363598c1475c673a381923e8def43c13662b8fada18d9ebb1 |
|
MD5 | 12180087e2a7595f216ee755b04a1546 |
|
BLAKE2b-256 | 0ad5b2f847164e6064078b58cb2924d1b83aaffa96717ab2e8c8fc2e1918210e |
File details
Details for the file zoey-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: zoey-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4edc245c49421fa02ee19b1ac902681fa9c58471d8e90a6451c489c57e6ce39 |
|
MD5 | e602b080a3423493028a2a09c0f1b6a4 |
|
BLAKE2b-256 | 57f7c22a594b6cc09636ee8c70a5954b14028072715f11e96efc49c41a002245 |