Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A simple static site generator based on commits from a git repository.

License

NotificationsYou must be signed in to change notification settings

Lozul/glessite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glessite

Rust

A simple static site generator based on commits from a git repository.

How to use

The program expect to be launched within a git repository.If so, it will walk through the commit history and pick those whose title areprefixed byPOST:.For every "post" found, an entry will be added to the index page, and a simpleHTML page will be generated using the title and the body (if present) of thecommit.

All the generated files will be stored in apublic folder in the currentworking directory.

CLI

Glessite offers some options:

-r, --repository <REPOSITORY>  Repository to use, default to current working dir, must be a valid path to a directory containing a .git-o, --output-dir <OUTPUT_DIR>  Output directory, default to `public`-p, --prefix <PREFIX>          Prefix to filter posts from normal commits, detault to `POST: `-n, --no-prefix                If present, every commit will be used, prefix option is ignored

Workflow example

  1. Create a "post" commit
# Inside a git repositorygit commit --allow-empty -m "POST: Title" -m "Body of the post"
  1. Generate the site
glessite
  1. View the result by opening the generate web pages in a browser, for example
firefox public/index.html# orpython -m http.server --directory public

How to build and install

  1. Install Rust, this documentation assume that you have access to thecargocommand
  1. Install the crate
cargo install glessite

Manually

  1. Download the repository and compile:
git clone https://github.com/Lozul/glessitecd glessitecargo build --release
  1. Install the crate
cargo install --path .

How to uninstall

cargo uninstall glessite

License

This projet is under the MIT License.

The logo use the fontSource CodePro released under theSIL Open Font License 1.1.

Where does the name come from

Glessite is a type of natural resin, found it on thispage.The name started withG like Git and ended withsite, which fitted with theproject being a site generator.

About

A simple static site generator based on commits from a git repository.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp