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
📚 MiniBook
MiniBook is a simple tool that creates a minibook from a list of links. It supports two different output formats:
- HTML - A clean, responsive webpage using Jinja2 templates and Tailwind CSS
- 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.tomlto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minibook-0.0.6.tar.gz.
File metadata
- Download URL: minibook-0.0.6.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2604d42ab7f04be879d8ccdac8ec9a52830e1eed8f52413d825299c89445ca98
|
|
| MD5 |
2a981b5420c8f994ca0db82c45604de3
|
|
| BLAKE2b-256 |
11ea0d8bcc667dfe1c6268efb3c7b5fd22684debf961df6b74bc141ccd233d4f
|
Provenance
The following attestation bundles were made for minibook-0.0.6.tar.gz:
Publisher:
release.yml on tschm/minibook
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minibook-0.0.6.tar.gz -
Subject digest:
2604d42ab7f04be879d8ccdac8ec9a52830e1eed8f52413d825299c89445ca98 - Sigstore transparency entry: 251409127
- Sigstore integration time:
-
Permalink:
tschm/minibook@86ae95df0483b6a74bb9f3649e87e2285bc16215 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tschm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@86ae95df0483b6a74bb9f3649e87e2285bc16215 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file minibook-0.0.6-py3-none-any.whl.
File metadata
- Download URL: minibook-0.0.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d580d239d7b8b309835722fb39976b636ed90b43609a1c8a3effcf59e00e6b17
|
|
| MD5 |
822332e11677d90760a5f6fbc6d28159
|
|
| BLAKE2b-256 |
f481e11406fa82625616fe1c90ba458ea8044d8f9d0c1efe7920876cb6d4ad63
|
Provenance
The following attestation bundles were made for minibook-0.0.6-py3-none-any.whl:
Publisher:
release.yml on tschm/minibook
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minibook-0.0.6-py3-none-any.whl -
Subject digest:
d580d239d7b8b309835722fb39976b636ed90b43609a1c8a3effcf59e00e6b17 - Sigstore transparency entry: 251409138
- Sigstore integration time:
-
Permalink:
tschm/minibook@86ae95df0483b6a74bb9f3649e87e2285bc16215 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tschm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@86ae95df0483b6a74bb9f3649e87e2285bc16215 -
Trigger Event:
workflow_dispatch
-
Statement type: