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.

Improved partials editing support

See original GitHub issue

When you’re working on a large documentation project where many document contents are assembled using the include macro, editing of the included bits can be cumbersome.

When editing the page containing the include you have all the necessary context (e.g., attribute values) available, but all you see in the editor is the include macro. When editing the included bit (e.g. an Antora partial) you see the content of the included bit, but you’re missing the context and as a consequence may end up having unresolved attributes. Neither option is ideal.

Being able to edit the partial content in place where it’s included or conversely being able to specify the context when editing the partial directly would make the editing workflow easier I think.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ahus1commented, Oct 15, 2020

Hi @pepijnve - I’ve revisited this issue after some time. Reading it again, I consider “placing a dummy image in the shared component” would provide the best preview in the scenario you describe above: A dummy could be just the right size to show how the content should look like.

I would prefer to put a dummy image (to show a nice preview) instead of disabling the error message in the editor for partials and showing a broken image in the preview.

As the dummy image is something that is already available, I close this issue as “nothing more to do”.

If you find other corner issues with partials, please let me know, and I’ll re-open the issue.

0reactions
ahus1commented, May 22, 2020

There is always more than one way to do things. I outline some that come to my mind.

For a future version of the plugin: The automatic checks shouldn’t show false positives. I could disable the “AsciiDocLinkResolve” inspection on all partials. What do you think?

To get rid of the squiggly line with the current version of the plugin:

  1. place a dummy image in the shared component. You could even place some dummy attribute values in the shared component’s component descriptor. This would give you a good preview when editing a partial; you wouldn’t need to the split preview every time.
  2. suppress the error - use Ctrl+Enter for that and the menu. See image below. The resulting snippet would be
// suppress inspection "AsciiDocLinkResolve"
image::setup.png[]

suppress-error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Technical Tips for Improved Retention and Stabilization of a ...
Implant support of a unilateral RPD can provide additional stability and retention and may prevent such complications as aspiration or ...
Read more >
Improving Esthetics of Removable Partial Dentures Using ...
A removable partial denture replacing anterior missing teeth can improve esthetics and hence the patient's quality of life.
Read more >
Flexible Partial Dentures & Best Alternatives
Compared with metal partials, flexible partials provide greater comfort and offer improved esthetics without metal clasps – or any metal at ...
Read more >
Choose the right patients for flexible removable partial dentures
Flexible partial denture materials are an excellent option for many partially edentulous patients. However, what are the benefits of ...
Read more >
Implant Supported Removable Partial Denture: The Why and ...
The benefits of dental implants in improving the quality of life for these patients have been well documented. The replacement of missing teeth ......
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