Skip to main content

Minibook for reporting

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

📦 minibook

PyPI version License: MIT CI Coverage Status Created with qCradle

📚 MiniBook

MiniBook is a simple tool that creates a minibook from a list of links. It supports two different output formats:

  1. HTML - A clean, responsive webpage using Jinja2 templates and Tailwind CSS
  2. MkDocs - A complete MkDocs project structure that can be built into a static site

🚀 Getting Started

🔧 Set Up Environment

make install

This installs/updates uv, creates your virtual environment and installs dependencies.

For adding or removing packages:

uv add/remove requests  # for main dependencies
uv add/remove requests --dev  # for dev dependencies

✅ Configure Pre-commit Hooks

make fmt

Installs hooks to maintain code quality and formatting.

📝 Update Project Info

  • Edit pyproject.toml to update authors and email addresses
  • Configure GitHub Pages (branch: gh-pages) in repository settings

📋 Usage

MiniBook can be used to create either an HTML page or a MkDocs project from a list of links.

Examples

HTML Output

Create an HTML page with a custom title and three links:

minibook --title "My Favorite Sites" \
         --format html \
         --links '{"python": "https://www.python.org", "github": "https://www.github.com", "wikipedia": "https://www.wikipedia.org"}'

MkDocs Output

Create a MkDocs project with a custom title and three links:

minibook --title "My Favorite Sites" \
         --format mkdocs \
         --output minibook_site \
         --links '{"python": "https://www.python.org", "github": "https://www.github.com", "wikipedia": "https://www.wikipedia.org"}'

After generating the MkDocs project, you can build and serve it using MkDocs:

cd minibook_site
mkdocs build  # Build the site
mkdocs serve  # Serve the site locally at http://127.0.0.1:8000/

Using Links Tuples

You can also provide links as tuples with custom names for each link:

minibook --title "My Favorite Sites" \
         --links '[{"name": "Python", "url": "https://www.python.org"}, {"name": "GitHub", "url": "https://www.github.com"}, {"name": "Wikipedia", "url": "https://www.wikipedia.org"}]'

This allows you to specify a different name for each link, rather than using the URL as the name.

Validating Links

You can validate that all links are accessible before creating the minibook:

minibook --title "My Favorite Sites" \
         --links '{"python": "https://www.python.org", "github": "https://www.github.com"}' \
         --validate-links

This will check each link to ensure it's accessible. If any links are invalid, you'll be prompted to continue or abort.

🛠️ Development Commands

make tests   # Run test suite
make marimo  # Start Marimo notebooks

👥 Contributing

  • 🍴 Fork the repository
  • 🌿 Create your feature branch (git checkout -b feature/amazing-feature)
  • 💾 Commit your changes (git commit -m 'Add some amazing feature')
  • 🚢 Push to the branch (git push origin feature/amazing-feature)
  • 🔍 Open a Pull Request

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

minibook-0.0.5.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minibook-0.0.5-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file minibook-0.0.5.tar.gz.

File metadata

  • Download URL: minibook-0.0.5.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for minibook-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7616f40e5a0a56f4d6165478cc42ea65ef487fe7d67c016d7d6db584bea4af8b
MD5 159fdb886ef318e419ae1fd3349e3bf6
BLAKE2b-256 b635e11a9c9478ac68700fde9e68facaef25acd3102bfcfed80f16509622bda9

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibook-0.0.5.tar.gz:

Publisher: release.yml on tschm/minibook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file minibook-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: minibook-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for minibook-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3b469dafcdeb41cbb2e330c266cfb7a7a2bdb45a0d4d55b548dd474c52133b
MD5 5dc2fa75d26290bdc6e601d2dea7eda0
BLAKE2b-256 0fdfc180abd0c0b264ee1395704d56a72af3e453ad4ea9df656440fb725c8bc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibook-0.0.5-py3-none-any.whl:

Publisher: release.yml on tschm/minibook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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