Giter Club home page Giter Club logo

Comments (2)

ferdnyc avatar ferdnyc commented on July 28, 2024

The docs generation depends, in part, on being able to find the file qtcore.index, which is how GammaRay discovers the documentation directory (for linking to system docs). If your Qt6 install doesn't have HTML copies of the documentation qdocindex files for the installed documentation (like Fedora's doesn't), you may not have a qtcore.index file in your Qt6 docdir.

You can enable documentation generation in Qt6-without-qtcore.index by explicitly setting QDOC_INDEX_DIR when configuring, e.g.:

cmake -B _build -S . -DQT_VERSION_MAJOR=6 \
  -DQDOC_INDEX_DIR=/usr/share/doc/qt6

(That's the correct value on Fedora, YMMV as to where the docdir actually is. It's the dir that corresponds to /usr/share/doc/qt5/, if Qt5's qtcore.index is at /usr/share/doc/qt5/qtcore/qtcore.index.)

...GammaRay probably should use some other method of discovering the docdir. Perhaps there's a target in Qt6ToolsTools or the like.

from gammaray.

ferdnyc avatar ferdnyc commented on July 28, 2024

So, the issue here is that GammaRay's documentation build uses the QDOC_INDEX_DIR to pass an --indexdir argument to the qdoc command, which is "required" when using depends to link to system docs (as docs/manual/gammaray-manual.qdocconf does).

(Required in the sense that it'll warn if it's not provided with an indexdir to look up the index files.)

But if the index files aren't in that dir, providing a QDOC_INDEX_DIR path is pointless anyway, since the information that qdoc will want isn't actually found there. (Some distros, like Fedora, don't ship documentation packages for their system Qt6 builds, so the information simply doesn't exist anywhere, to be provided.)

And since it is possible to build the GammaRay docs without those indexes (at the cost of all links to Qt classes/types/etc. being broken), perhaps what makes the most sense is to just make QDOC_INDEX_DIR optional, and only pass the --indexdir argument to qdoc if it's set because a qtcore.index file is actually discovered.

Even installs without documentation will typically have a global/qt-html-templates-offline.qdocconf file, as that's part of the qtbase install, not the documentation. So, that discovery can probably still be kept as a prereq for building the docs.

from gammaray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.