Skip to main content

bookit

Doc site generator

pypi

Overview

This Python program converts all files in a Git repository to markdown files. It's useful for creating doc sites of your code.

The converted markdown files are placed in a .bookit subdirectory. The directory structure inside .bookit is an exact mirror of the original repository.

Usage

python -m bookit /path/to/your/repo

How it works

Each file is converted into a markdown file, with the file name being the #title of the markdown file and the contents of the original file placed inside a code block, highlighted according to the original file's language.

Here's an example of the directory structure transformation:

Before:

repo/
├── README.md
├── file1.py
├── file2.js

After:

repo/
├── .bookit/
│ ├── file1.py.md
│ └── file2.py.md
├── README.md
├── file1.py
└── file2.js

DEV

Setup

make install

This will setup a virtualenv, upgrade pip, install dependencies, and install pre-commit

note: This does not activate your virtualenv! You must run source env/bin/activate to use the venv.

Test

make test

Format

make format
make lint

Version & Release

make version-<major/minor/patch>
make release

note Don't forget to git push with --tags

pre-commit

Setup

make install-pre-commit

Run all

make pre-commit

Metadata

Release files for bookit 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bookit 0.0.5
File Size Uploaded Provenance Actions
bookit-0.0.5.tar.gz 4.4 kB Without provenance Details for bookit-0.0.5.tar.gz

Release files / bookit-0.0.5.tar.gz

Download URL bookit-0.0.5.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bf64e64f0f61461bab16c03855add600884b9e004e6f282ffaa45d4cc1025cd8
BLAKE2b-256 checksum
How to use checksums
60f9a4dba7f458f03ca64ef86dc570d581a981d6763dae7e5f88f2872987a28c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for bookit 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page