Skip to content

GearFox98/static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static ⚡

A static web site generator inspired by React and written in Python 🐍

Static gives complete flexibility for building the site as it just focus on sew the pieces together. All you require is basic web programing skills and a bit of Python!

Instalation

Clone this repository and uncompress the program. Copy the 'skel' folder where you want to work and give 'static' execution permissions.

Debian

If you have a Debian-like distro installed, you can install the DEB package, available here.

sudo dpkg -i static_1.0-x_all.deb

Arch (AUR)

If you have Arch installed, you can install the static from AUR

git clone https://aur.archlinux.org/static-git.git
cd static-git
pkgbuild -i

Usage

Starting a new project

static-init <path> [options]

Options available:

-b, --bootstrap: gets a Bootstrap dist and installs it in the data folder in the project. Useful to code in places with unstable network

Note: If no path provided Static⚡ will assume current directory to initialize the project.

Running the project

static [command]

Commands available:

check: checks the directory structure looking for missing directories. If there are some folders missing, this command will create them. The program stops if html or pages folders are not in the directory.

build: implies check, if there's no errors found, the program will generate the pages' content in a temporary folder and tailor the pieces in one file for each page in the dist folder. run - Serves dist folder of the project, if the site is not built it calls build command.

Options available:

-i, --interactive - Sets interactive mode. Manual mode. Use with run

About

A static web site generator inspired by React and written in Python 🐍

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks