dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4k stars 851 forks source link

Second and further tabs of tabbed content are missed in PDF #3663

Open mrEDitor opened 5 years ago

mrEDitor commented 5 years ago

DocFX Version Used: 2.39.2.0 (reproducable at 2.40.2.0 as well)

Template used: pdf.default

Steps to Reproduce:

  1. Create markdown page with tabbed content
  2. Render it to PDF

Expected Behavior: All tabs are visible in PDF as subsections, just as with renderer which has no tabbed content in markdown support (e.g. Github, Gitlab or Microsoft TFS wiki engines).

Actual Behavior:

Workaround: I used following CSS rule to enforce rendering of tab content, but it is still misspositioned (all <li>-titles are going first, then all content <section>'s are going).

section[role="tabpanel"] {
    display: block !important;
}

Also attaching minimal reproducible example (ZIP).


The main question is: can I (or possibly, docfx defaults) somehow disable rendering tabs feature in PDF version of a document? It seems to me as the most adequate solution of the problem.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

filzrev commented 4 months ago

It seems latest version of docfx (v2.76.0) seems not output tabbed content entirely.