macxred / pyledger

Python package to streamline the implementation and management of accounting systems.
MIT License
0 stars 0 forks source link

`TextLedger` documentation #13

Closed lasuk closed 1 week ago

lasuk commented 4 months ago
AlexTheWizardL commented 3 weeks ago

Issue: Best Approach for Showing Git Diffs in the README

We’re exploring the most effective way to display Git diffs in our README, particularly for showcasing how TextLedger minimizes changes and preserves file structure. Here are the possible ways we could approach this:


1. Using Built-In diff Syntax in Markdown

We can use GitHub's built-in diff syntax to show Git changes directly in the README. This is straightforward, but note that it doesn’t support inline character-level changes (only whole lines). Here’s an example of how this would look:

- 4, 2024-05-24, 9991, 9994, USD, 888888.88,        450.45, OutRed, ledger 4,
+ 4, 2024-05-24, 9991, 9994, USD, 788888.88,        450.45, OutRed, ledger 4,

Pros:

Cons:


2. Storing Images in the assets/ Folder

Another option is to manually capture Git diffs (like the one shown in the screenshot below) and store the images in an assets/ folder within the repository. We can then reference these images in the README.

Pros:

Cons:


3. Creating a Separate Git Branch and Hosting Images on GitHub

We can commit the diffs to a separate Git branch and take advantage of GitHub's built-in image hosting (via issues or PR comments). Images hosted by GitHub can be referenced directly in the README.

Pros:

Cons: