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.

Index compilation (genindex)

See original GitHub issue

Describe the enhancement you’d like

I can’t find a way to make use of sphinx’s genindex function to automatically compile an index. From what I can tell, this doesn’t exist in jupyter-book, and has not yet been requested. (Sorry if I missed something!)

Does this solve a specific problem?

Books should have indices!

Publishers often require indices, and since sphinx already provides this functionality, it seems silly not to use it if we can.

What alternatives exist?

Hand-crafting an index file. Maybe okay for short documents, but definitely prohibitive for something approaching book length.

Additional context

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bmcfeecommented, Aug 18, 2021

Does it have to be rst code? Isn’t it just a directive? You could try it with the eval_rst directive and see if the outcome is different that way?

I didn’t know that was an option 😁 that actually works great! The only remaining problem is that I don’t see how to add the generated index into the toctree.

0reactions
mdekstrandcommented, Dec 20, 2021

It turns out you can’t actually include genindex in a normal Sphinx toc tree without bad and buggy workarounds, such as this one. The genindex isn’t available when the toctree is being resolved in a normal Sphinx build.

I’m not sure why. It is very annoying. If I can dig up the relevant Sphinx issue I’ll link it here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Index — pytket-manual documentation
What is tket? Circuit Construction · Running on Backends · Compilation · Noise and the Quantum Circuit Model · Assertion. More documentation:.
Read more >
Index — Clang 11 documentation - LLVM releases
--cuda-compile-host-device. clang command line option ... -fdebug-compilation-dir <arg>. clang command line option ... -fno-xray-function-index.
Read more >
Index — PopDist and PopRun: User Guide
Index. C | D | E | F | G | I | M | O | P | R | S |...
Read more >
genindex.c - Apple Open Source
All the functions related to the indexing information generation. This file is used by both - preprocessor (cpp) and the compiler (cc1*) */...
Read more >
Index — Documentation Solidity 0.8.12
Index. Symboles | A | B | C | D | E | F | G | H | I | J |...
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