question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support xrefs via Shepherd

See original GitHub issue

Ok, so I had look at the output from Shepherd… unfortunately, the API is not very customizable, leading to massive downloads. For example the HTML spec is 1MB of JSON… and DOM is 400Kb. It’s too much to send down to the client (specially phones)… so, what would be great would be to bring in data for known specs into spec ref, then allow smarter queries like:

?spec=dom&terms=fire an event,the foo,the bar

And get back just the xrefs needed.

{
    "dom": {
      "fire an event": "#concept-event-fire",
      "the bar": null,
     }
}

Probably need a bit more detail, like returning the “type” (so to correctly style)… but you get the idea.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
marcoscacerescommented, Jan 7, 2017

On 7 Jan 2017, at 7:59 am, Tab Atkins Jr. notifications@github.com wrote:

No, Shepherd’s current design (just send all the information down) is ideal for Bikeshed, as it creates and uses a full database of its own offline. I very intentionally designed Bikeshed to not require any network traffic when processing (unless you use one of the optional features that require it).

I’m not sure that getting Bikeshed-equivalent linking out of Shepherd is really possible, without Shepherd reproducing Bikeshed’s smart linking logic (which is continually getting tweaked, too). Cross-spec linking is really incompatible with client-side JS. 😕

Oh! Them’s fighting words, Tab. No one questions the honour of my beloved JS!

Now i have to do it! 😎

But seriously, if the web platform can’t do it - then that’s an opportunity to fix stuff in the platform. I’m maybe being overly optimistic, but I can’t see anything in Shepherd’s output that would prevent this from working in JS.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

0reactions
marcoscacerescommented, Oct 28, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes done to nested Xrefs will not automatically update in ...
Issue: When a parent/host drawing is opened via Desktop Connector from Autodesk Docs and an Xref is updated, the change is not being ......
Read more >
How to ETransmit AutoCAD files to include XREFs and place ...
How to ETransmit AutoCAD files to include XREFs and place them all in one folder ; 1. Save the drawing. ; 2. Enter...
Read more >
Xref in AutoCAD: What Is It & How Do I Use One? - All3DP
With an xref, AutoCAD allows you to reference another drawing in your current one. Read on to learn more about xrefs and how...
Read more >
Working With External References (Xrefs) - Land FX
Our fxREF tool simplifies the process of attaching Xrefs to a drawing. Just keep in mind that fxREF only works on DWG files....
Read more >
Using and Modifying External References in AutoCAD
To insert an Xref in a drawing, go to the Reference panel of the Insert tab and click on the Attach icon—you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found