1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:47:34 +00:00

Spreadsheet: Add support for example views and hyperlinks in the docs

Now the functions can actually be demonstrated by small examples,
embedded right inside the documentation via:
spreadsheet://example/<page>#<example_name>

Also allows pages to link to each other via the same scheme:
spreadsheet://doc/<page>
This commit is contained in:
AnotherTest 2020-10-31 16:52:13 +03:30 committed by Andreas Kling
parent a598a2c19d
commit 1bd3a2d09f
6 changed files with 310 additions and 23 deletions

View file

@ -51,7 +51,7 @@ public:
private:
static RefPtr<HelpWindow> s_the;
String render(const GUI::ModelIndex&);
String render(const StringView& key);
HelpWindow(GUI::Window* parent = nullptr);
JsonObject m_docs;