Skip to content

RFC 0001: Page design (background images and branding) - #29

Merged
37jahangir merged 1 commit into
mainfrom
rfc/0001-page-design
Nov 24, 2026
Merged

37jahangir merged 1 commit into
mainfrom
rfc/0001-page-design

Conversation

@mdraselislam1944

Copy link
Copy Markdown
Contributor

Adds rfcs/0001-page-design.md, the RFC for the page design keys in doc.loro:

  • page background: image, fit, opacity, dim;
  • meta.branding and page branding: logo, school, teacher, class, date and placeholders; off hides it on a page.

These keys have shipped since v0.2.2 (#17) and the spec already marks them "proposed, pending RFC". The RFC asks to accept that text with five amendments. The reference already does all five, but the spec doesn't say so yet:

  • A. A missing design asset draws nothing.
  • B. The 120-character cap counts Unicode scalar values, after trimming.
  • C. meta.branding never carries off.
  • D. A page's branding replaces the lesson's; fields are not merged.
  • E. Branding text is plain text, never markup.

Compatibility. No version gate changes. One known cost: Rupok v0.1.0–v0.2.1 drop the logo and background images when they re-save a designed lesson. Those versions keep only assets that items reference, which the old Assets text allowed. The keys survive, but the images are lost.

Open questions (full list in the RFC):

  • that asset loss;
  • the date always printing as en-GB;
  • brandLine joining with " · " while the spec says " · ";
  • whether the text-colour threshold should be normative;
  • PDF pages as backgrounds vs the proposed locked items;
  • the brand kit idea.

The ROADMAP marks "Pages and page design" ✅ and notes that the format keys are still pending this RFC.

No code or spec changes. If this is accepted, a follow-up PR adds the amendments to spec/rupok-format.md, with tests.

🤖 Generated with Claude Code

Draft RFC for the page design format keys (page background and branding,
meta.branding), already implemented since v0.2.2 and documented in the
spec as proposed. Marks "Pages and page design" done in the roadmap, with
the format keys still pending this RFC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 12:39
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@37jahangir
37jahangir merged commit 09ea5fa into main Nov 24, 2026
7 of 9 checks passed
@37jahangir
37jahangir deleted the rfc/0001-page-design branch November 24, 2026 17:24
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants