Skip to main content

Git + Markdown = blog

Project description

Gitblog2 Logo Gitblog2

Git + Markdown = Blog

TODO

High priority:

Low priority:

  • Unit tests
  • Fix root index.html not served by redbean
  • Make it work on non-unix systems (mainly dealing with windows file system separator)

Installation

pip install gitblog2

Usage

As a command line:

gitblog https://codeberg.org/HenriTEL/git-blog.git --repo-subdir=example

As a library:

from gitblog2 import GitBlog

source_repo = "https://codeberg.org/HenriTEL/git-blog.git"
output_dir = "./www"
with GitBlog(source_repo, repo_subdir="example") as gb:
    gb.write_articles(output_dir)
    gb.write_indexes(output_dir)
    gb.copy_static_assets(output_dir)

Internals

Stylesheet is based on water.css

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

gitblog2-0.2.1.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

gitblog2-0.2.1-cp311-cp311-manylinux_2_35_x86_64.whl (12.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page