Skip to content

Put one paragraph per line in 77 long articles - #184

Closed
hiciefte wants to merge 1 commit into
bisq-network:mainfrom
hiciefte:format/paragraph-per-line
Closed

hiciefte wants to merge 1 commit into
bisq-network:mainfrom
hiciefte:format/paragraph-per-line

Conversation

@hiciefte

@hiciefte hiciefte commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

The converter wrote whole articles onto one source line, with newlines encoded as 
. This puts one paragraph or list item per line in the 77 articles that had a line over 2,000 characters, so they can be edited in GitHub's browser editor and later wording reviews get readable diffs.

Formatting only. Each existing 
 inside an article body becomes a real line break. Wording, markup and all other whitespace stay as they are. Every decoded break is recorded in migration/source-formatting.json like the 95 existing records, so the change is reversible: the fidelity check rebuilds each original file byte for byte from those offsets before checking anything else. As in the earlier records, entities that would start a blank line stay encoded (47, in 4 articles). Existing records are unchanged.

Built site unchanged. I built main and this branch and compared dist/:

  • 1,455 of 1,532 files are byte-identical, including the whole Pagefind search index.
  • The 77 article pages differ only where the page source now has a literal newline instead of 
 (3,965 places, exactly the recorded count for each page). Astro copies the article HTML as written, so these bytes can't stay identical, but each page parses to the same HTML document tree as on main.

Left out

  • Touched by open pull requests: backing-up-your-wallet-seed (Add the BSQ SegWit derivation path #99), emergency-multisig-payout-tool (Keep emergency payout keys local #97), frequently-asked-questions (Distinguish external funding from avoiding the wallet #115).
  • running-bisq-in-china-sstap: an additional historical article, and formatting records on main cover only the 209 restored articles.
  • revolut: one 
 inside a table cell shows up as the literal text 
 in the page's hidden table search summary. Decoding it would change that text and the search index.
  • last-resort-restore: scripts/fixtures/restored/last-resort-restore.md pins its unformatted file for the tests, so formatting it needs a fixture update.

dao-technical-overview and domestic-wire-transfer still have one line just over 2,000 characters: the generated "On this page" navigation, outside the article body.

Re-run the checks

npm test
npm run build   # the strict fidelity gate rebuilds every original file

To compare pages, build main and this branch into separate folders and run diff -rq. For a changed page, both versions are identical once every 
 is turned into a newline, for example with perl -pe 's/
/\n/g'.

Decode the converter's existing &bisq-network#10; newline entities into real line
breaks inside the article bodies of 77 restored articles whose source
had a line over 2,000 characters, so they can be edited in GitHub's
browser editor and reviewed line by line. Wording is unchanged.

Record every decoded break in migration/source-formatting.json, like
the existing records; the fidelity check rebuilds each original file
byte for byte from these offsets. Entities that would start a blank
line stay encoded, as before.

Leave out articles touched by open pull requests, the additional
article running-bisq-in-china-sstap, revolut (its hidden table search
text would change) and last-resort-restore (a test fixture pins its
unformatted file).
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

Summary

Summary by CodeRabbit

  • Documentation
    • Many wiki articles are now easier to scan in their source formatting; their existing guidance and details remain unchanged.
    • The Bisq 1 wiki page presents recovered content in sequential sections and lists, with the original legacy layout available in an expandable section. Unresolved templates and unrecovered links remain marked.

The pull request reformats HTML in many wiki articles from encoded newline separators into multiline source. It also reorganizes the Bisq 1 page into sections and removes a literal template wrapper from a DAO note.

Changes: Wiki documentation

Layer / File(s) Summary
Recovered page content and template handling
src/content/docs/wiki/bisq-1.md, src/content/docs/wiki/introduction-to-the-dao.md
The Bisq 1 page presents recovered resources in separate sections and keeps the legacy layout source in expandable details. The DAO revenue note is plain paragraph content rather than literal template syntax.
Wiki article multiline markup
src/content/docs/wiki/*.md
Many articles replace encoded newline separators with source line breaks. Their article content and markup remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: placing one paragraph per line in 77 long articles.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description clearly explains the formatting-only change, affected article set, exclusions, reversibility, build comparison, and requested checks. It does not explicitly provide the source revision…
Full details: Description check

Explanation

The description clearly explains the formatting-only change, affected article set, exclusions, reversibility, build comparison, and requested checks. It does not explicitly provide the source revision, article titles or links, or related note and issue IDs required by the template.

Warning

Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4b84f47 and b44de1b.

Files selected for processing: 78

  • migration/source-formatting.json
  • src/content/docs/wiki/ach-transfer.md
  • src/content/docs/wiki/bisq-1.md
  • src/content/docs/wiki/bitcoin-holidays.md
  • src/content/docs/wiki/bsq.md
  • src/content/docs/wiki/buyerverifiesprepareddelayedpayouttx-exception-error.md
  • src/content/docs/wiki/capitual.md
  • src/content/docs/wiki/changing-your-onion-address.md
  • src/content/docs/wiki/community-manager.md
  • src/content/docs/wiki/compensation-maintainer.md
  • src/content/docs/wiki/compensation.md
  • src/content/docs/wiki/create-a-new-wallet-for-your-data-directory.md
  • src/content/docs/wiki/creating-a-payment-account.md
  • src/content/docs/wiki/critical-bugs.md
  • src/content/docs/wiki/dao-technical-overview.md
  • src/content/docs/wiki/dao-user-reference.md
  • src/content/docs/wiki/data-directory.md
  • src/content/docs/wiki/data-privacy.md
  • src/content/docs/wiki/decentralized-autonomous-organization.md
  • src/content/docs/wiki/deposit-transaction.md
  • src/content/docs/wiki/domestic-wire-transfer.md
  • src/content/docs/wiki/donation-address-owner.md
  • src/content/docs/wiki/face-to-face-payment-method.md
  • src/content/docs/wiki/faster-payments-system-sbp.md
  • src/content/docs/wiki/faster-payments.md
  • src/content/docs/wiki/fix-arch-release.md
  • src/content/docs/wiki/getting-your-first-btc.md
  • src/content/docs/wiki/growth-team.md
  • src/content/docs/wiki/how-do-i-send-fiat-to-bisq.md
  • src/content/docs/wiki/how-to-create-an-offer-to-buy-btc-with-eur.md
  • src/content/docs/wiki/how-to-do-arbitrage-on-bisq.md
  • src/content/docs/wiki/howto.md
  • src/content/docs/wiki/installing-your-own-bitcoin-node.md
  • src/content/docs/wiki/introduction-to-the-dao.md
  • src/content/docs/wiki/issues-with-fiat-payments.md
  • src/content/docs/wiki/main-page.md
  • src/content/docs/wiki/making-a-reimbursement-request.md
  • src/content/docs/wiki/matrix-bisq-chat.md
  • src/content/docs/wiki/mediation.md
  • src/content/docs/wiki/mediator.md
  • src/content/docs/wiki/mining-fees.md
  • src/content/docs/wiki/monese.md
  • src/content/docs/wiki/nequi.md
  • src/content/docs/wiki/network-status-indicator.md
  • src/content/docs/wiki/paying-trading-fees-with-bsq.md
  • src/content/docs/wiki/payment-method-maintainer.md
  • src/content/docs/wiki/pricenode-operator.md
  • src/content/docs/wiki/resyncing-spv-file.md
  • src/content/docs/wiki/roles.md
  • src/content/docs/wiki/running-bisq-in-china.md
  • src/content/docs/wiki/running-bisq-on-linux-using-vnc.md
  • src/content/docs/wiki/running-bisq-on-qubes.md
  • src/content/docs/wiki/running-from-the-command-line.md
  • src/content/docs/wiki/security-team.md
  • src/content/docs/wiki/sepa-instant.md
  • src/content/docs/wiki/sepa-p551.md
  • src/content/docs/wiki/stakeholder.md
  • src/content/docs/wiki/support-team.md
  • src/content/docs/wiki/swift.md
  • src/content/docs/wiki/switching-to-a-new-data-directory.md
  • src/content/docs/wiki/table-of-penalties.md
  • src/content/docs/wiki/templates-as-macros.md
  • src/content/docs/wiki/trade-payout-address-reuse-issue.md
  • src/content/docs/wiki/trading-bsq.md
  • src/content/docs/wiki/trading-fees.md
  • src/content/docs/wiki/trading-grin.md
  • src/content/docs/wiki/trading-l-btc.md
  • src/content/docs/wiki/trading-rules.md
  • src/content/docs/wiki/translation.md
  • src/content/docs/wiki/troubleshooting-wallet-issues.md
  • src/content/docs/wiki/troubleshooting.md
  • src/content/docs/wiki/updating-bisq.md
  • src/content/docs/wiki/updating-bsq-trading-fees.md
  • src/content/docs/wiki/upi.md
  • src/content/docs/wiki/user-support.md
  • src/content/docs/wiki/wiki-style-guidelines.md
  • src/content/docs/wiki/wise-usd.md
  • src/content/docs/wiki/wise.md
Files not fully reviewed because they exceed a per-file size limit: 1

  • migration/source-formatting.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@hiciefte

Copy link
Copy Markdown
Collaborator Author

Replaced by #188, which converts the articles to Markdown instead of reformatting the HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant