Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Adapt GLib documentation path to GLib 2.80.1 #618

Closed
wants to merge 1 commit into from

Conversation

DimStar77
Copy link
Contributor

@DimStar77 DimStar77 commented May 15, 2024

With GLib 2.80.1 (commit 548ec9f1), the installation paths for the documentation
has changed once again.

Rationale there was:
The gi-docgen tool is not designed to be used like that. In
particular, when nesting documentation directories, the generated
*.devhelp2 files (needed by Devhelp to show the documentation) are
nested one directory level too deep for Devhelp to find them, and hence
are useless, and the documentation doesn’t show up in this common
documentation viewer.

@ppisar
Copy link
Collaborator

ppisar commented May 15, 2024

Thanks for the patch. The changes actually happened in GLib 2.80.1. I will rework your patch and apply it.

With GLib 2.80.1 (commit 548ec9f1), the installation paths for the documentation
has changed once again.

Rationale there was:
The `gi-docgen` tool is not designed to be used like that. In
particular, when nesting documentation directories, the generated
`*.devhelp2` files (needed by Devhelp to show the documentation) are
nested one directory level too deep for Devhelp to find them, and hence
are useless, and the documentation doesn’t show up in this common
documentation viewer.
@DimStar77
Copy link
Contributor Author

Thanks for the patch. The changes actually happened in GLib 2.80.1. I will rework your patch and apply it.

oh, right.. 2.80.2 was the GVariant installation path fixup as a fallout from the previous move:
https://gitlab.gnome.org/GNOME/glib/-/commit/35bccc46f913ce96ba2fe911614e31fbba3039e7

Thanks for catching that

ppisar pushed a commit to ppisar/libmodulemd that referenced this pull request May 15, 2024
With GLib 2.80.1 (commit 548ec9f1), the installation paths for the documentation
have changed once again:

    The `gi-docgen` tool is not designed to be used like that. In
    particular, when nesting documentation directories, the generated
    `*.devhelp2` files (needed by Devhelp to show the documentation) are
    nested one directory level too deep for Devhelp to find them, and hence
    are useless, and the documentation doesn’t show up in this common
    documentation viewer.

    So, change the installed documentation directory hierarchy:
     * `${PREFIX}/share/doc/glib-2.0/gio` → `${PREFIX}/share/doc/gio-2.0`
     * `${PREFIX}/share/doc/glib-2.0/glib-unix` →
       `${PREFIX}/share/doc/glib-unix-2.0`
     * `${PREFIX}/share/doc/glib-2.0/gobject` →
       `${PREFIX}/share/doc/gobject-2.0`
     * etc.
     * `${PREFIX}/share/doc/glib-2.0/glib` → `${PREFIX}/share/doc/glib-2.0`

https://gitlab.gnome.org/GNOME/glib/-/issues/3287
Reimplements fedora-modularity#618
@DimStar77 DimStar77 changed the title doc: Adapt GLib documentation path to GLib 2.80.2 doc: Adapt GLib documentation path to GLib 2.80.1 May 15, 2024
ppisar pushed a commit to ppisar/libmodulemd that referenced this pull request May 15, 2024
With GLib 2.80.1 (commit 548ec9f1), the installation paths for the documentation
have changed once again:

    The `gi-docgen` tool is not designed to be used like that. In
    particular, when nesting documentation directories, the generated
    `*.devhelp2` files (needed by Devhelp to show the documentation) are
    nested one directory level too deep for Devhelp to find them, and hence
    are useless, and the documentation doesn’t show up in this common
    documentation viewer.

    So, change the installed documentation directory hierarchy:
     * `${PREFIX}/share/doc/glib-2.0/gio` → `${PREFIX}/share/doc/gio-2.0`
     * `${PREFIX}/share/doc/glib-2.0/glib-unix` →
       `${PREFIX}/share/doc/glib-unix-2.0`
     * `${PREFIX}/share/doc/glib-2.0/gobject` →
       `${PREFIX}/share/doc/gobject-2.0`
     * etc.
     * `${PREFIX}/share/doc/glib-2.0/glib` → `${PREFIX}/share/doc/glib-2.0`

https://gitlab.gnome.org/GNOME/glib/-/issues/3287
Reimplements fedora-modularity#618
ppisar pushed a commit to ppisar/libmodulemd that referenced this pull request May 15, 2024
With GLib 2.80.1 (commit 548ec9f1), the installation paths for the documentation
have changed once again:

    The `gi-docgen` tool is not designed to be used like that. In
    particular, when nesting documentation directories, the generated
    `*.devhelp2` files (needed by Devhelp to show the documentation) are
    nested one directory level too deep for Devhelp to find them, and hence
    are useless, and the documentation doesn’t show up in this common
    documentation viewer.

    So, change the installed documentation directory hierarchy:
     * `${PREFIX}/share/doc/glib-2.0/gio` → `${PREFIX}/share/doc/gio-2.0`
     * `${PREFIX}/share/doc/glib-2.0/glib-unix` →
       `${PREFIX}/share/doc/glib-unix-2.0`
     * `${PREFIX}/share/doc/glib-2.0/gobject` →
       `${PREFIX}/share/doc/gobject-2.0`
     * etc.
     * `${PREFIX}/share/doc/glib-2.0/glib` → `${PREFIX}/share/doc/glib-2.0`

https://gitlab.gnome.org/GNOME/glib/-/issues/3287
Reimplements fedora-modularity#618
ppisar pushed a commit to ppisar/libmodulemd that referenced this pull request May 15, 2024
With GLib 2.80.1 (commit 548ec9f1), the installation paths for the documentation
have changed once again:

    The `gi-docgen` tool is not designed to be used like that. In
    particular, when nesting documentation directories, the generated
    `*.devhelp2` files (needed by Devhelp to show the documentation) are
    nested one directory level too deep for Devhelp to find them, and hence
    are useless, and the documentation doesn’t show up in this common
    documentation viewer.

    So, change the installed documentation directory hierarchy:
     * `${PREFIX}/share/doc/glib-2.0/gio` → `${PREFIX}/share/doc/gio-2.0`
     * `${PREFIX}/share/doc/glib-2.0/glib-unix` →
       `${PREFIX}/share/doc/glib-unix-2.0`
     * `${PREFIX}/share/doc/glib-2.0/gobject` →
       `${PREFIX}/share/doc/gobject-2.0`
     * etc.
     * `${PREFIX}/share/doc/glib-2.0/glib` → `${PREFIX}/share/doc/glib-2.0`

https://gitlab.gnome.org/GNOME/glib/-/issues/3287
Reimplements fedora-modularity#618
ppisar pushed a commit that referenced this pull request May 15, 2024
With GLib 2.80.1 (commit 548ec9f1), the installation paths for the documentation
have changed once again:

    The `gi-docgen` tool is not designed to be used like that. In
    particular, when nesting documentation directories, the generated
    `*.devhelp2` files (needed by Devhelp to show the documentation) are
    nested one directory level too deep for Devhelp to find them, and hence
    are useless, and the documentation doesn’t show up in this common
    documentation viewer.

    So, change the installed documentation directory hierarchy:
     * `${PREFIX}/share/doc/glib-2.0/gio` → `${PREFIX}/share/doc/gio-2.0`
     * `${PREFIX}/share/doc/glib-2.0/glib-unix` →
       `${PREFIX}/share/doc/glib-unix-2.0`
     * `${PREFIX}/share/doc/glib-2.0/gobject` →
       `${PREFIX}/share/doc/gobject-2.0`
     * etc.
     * `${PREFIX}/share/doc/glib-2.0/glib` → `${PREFIX}/share/doc/glib-2.0`

https://gitlab.gnome.org/GNOME/glib/-/issues/3287
Reimplements #618
@ppisar
Copy link
Collaborator

ppisar commented May 15, 2024

I reworked the original patch and applied it in #619.

@ppisar ppisar closed this May 15, 2024
@ppisar ppisar reopened this May 15, 2024
@ppisar ppisar closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants