1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/diviner
epriestley cd41b834f7 Improve Diviner linking
Summary:
Do this somewhat reasonably:

  - For links to the same documentation book (the common case), go look up that the thing you're linking to actualy exists. If it doesn't, render a <span> which we can make have a red background and warn about later.
  - For links to some other book, just generate a link and hope it hits something. We can improve and augment this later.
  - For non-documentation links (links in comments, e.g.) just generate a query link into the Diviner app. We'll do a query and figure out where to send the user after they click the link. We could pre-resolve these later.

Test Plan: Generated documentation, saw it build mostly-correct links when objects were referenced correctly. Used preview to generate various `@{x:y|z}` things and made sure they ended up reasonable-looking.

Reviewers: chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T988

Differential Revision: https://secure.phabricator.com/D5001
2013-02-18 09:44:43 -08:00
..
application Allow PhabricatorMenuView to have items inserted in the middle 2013-02-03 10:02:35 -08:00
atom Improve Diviner linking 2013-02-18 09:44:43 -08:00
atomizer Improve Diviner handling of paths and remarkup 2013-02-17 15:40:44 -08:00
cache Add a ref cache and index construction to Diviner 2013-02-17 15:40:11 -08:00
controller Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
markup Improve Diviner linking 2013-02-18 09:44:43 -08:00
publisher Improve Diviner linking 2013-02-18 09:44:43 -08:00
renderer Improve Diviner linking 2013-02-18 09:44:43 -08:00
workflow Improve Diviner handling of paths and remarkup 2013-02-17 15:40:44 -08:00