t3docs / docker-render-documentation

Render TYPO3 Documentation the official way
https://t3docs.github.io/DRC-The-Docker-Rendering-Container/
20 stars 15 forks source link

Show fallback "No indexes found in this documentation." in `genindex.rst` #124

Closed alexander-nitsche closed 2 years ago

alexander-nitsche commented 2 years ago

Insert a placeholder text if no index has been added yet to a document. Something like

(1) "No indexes added yet." or (2) "No indexes available." or (3) "No indexes found in this documentation."

so that the HTML looks like:

<div class="document" itemscope="itemscope" itemtype="http://schema.org/Article" role="main">
<div itemprop="articleBody">
<!-- body -->
<h1 id="index">Index</h1>
<div class="genindex-jumpbox">
No indexes found in this documentation.
</div>
<!-- /body -->
</div>
</div>

and the rendered content, instead of


Screen Shot 2022-04-09 at 10 38 56


like this:


Screen Shot 2022-04-09 at 10 39 26


URL
Live example of empty index https://docs.typo3.org/m/typo3/guide-frontendlocalization/main/en-us/genindex.html
Live example of filled index https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/genindex.html
flicstar commented 2 years ago

Index refers to the collection, so I don't think we want to make it plural here. I would go for something more like:

marble commented 2 years ago

Solved with DRC v3.0.dev26. When rendering for the server docs.typo3.org this is what you get: grafik