Massive-Wiki / massivewikibuilder

Massive Wiki Builder
MIT License
3 stars 3 forks source link

Pk edit this page 20240417 #68

Open peterkaminski opened 4 months ago

peterkaminski commented 4 months ago

Add code to support "edit_url" and "edit_branch" in mwb.yaml.

A URL is then constructed with the edit_url, edit_branch, and current page filename URL-encoded is then passed to the theme.

Assumption: the edit URL on the forge is constructed the way GitHub constructs edit URLs. Perhaps we should take "edit_url" as something preconstructed with the repo root and the "edit" command in the URL.

band commented 4 months ago

a couple of suggested copyedits for the Tooltip which currently is this:

Clicking 'Edit This Page' will open a new tab or window to edit this page on the Git forge. You'll \ need to be signed into the forge to edit. Close the edit page to return to this one.

suggested updates:

Clicking 'Edit This Page' opens a new tab or window to edit this page on the Git repository site. You will need to be signed into that site to edit the page. Close the edit page to return to this one.

(rationales: (1) "Git forge" is a technical term and many wiki users will not be familiar with it; (2) spell out contractions to make reading easier for ESL users.)