Skip to content

Fix more links in the online versions of manuals #73

@wilfwilson

Description

@wilfwilson

For online HTML versions of manuals, the release-gap-package script already seds any relative references to the GAP reference manual to instead be hyperlinks pointing at the appropriate absolute location at https://www.gap-system.org/Manuals/doc/ref/ instead. That's great.

For references to other packages, it doesn't currently work so well.

For example (I assume that this package was released by ReleaseTools, but I could be wrong, sorry if so), the online version of HAPcryst here refers to polymaking, but the relative link

../../../pkg/polymaking-0.8.2/doc/chap3_mj.html#X7C07B16B873BA46D

resolves to https://gap-packages.github.io/pkg/polymaking-0.8.2/doc/chap3_mj.html#X7C07B16B873BA46D, which gives a 404 error. The unwanted pkg/ and the -0.8.2 are the problems.

Similarly, in cvec, the reference to the orb package here does not resolve, since it points to
https://gap-packages.github.io/pkg/orb-4.8.2/doc/chap4_mj.html#X7ACED4FB7C971A5A.
For it to work, the pkg/orb-4.8.2/ should instead just be orb/.

It would be great to have all such links not give a 404.

For packages hosted at gap-packages and referring to another gap-packages packages with a gh-pages branch deployed, this is hopefully not too hard to fix (finding a way to remove the pkg/ and removing any -0.0.0 version numbers from the names of packages).

But for packages that are not hosted at gap-packages (e.g. Digraphs), or for any package referring to a non gap-packages package, this approach won't work, since we'll also need to work out the host. Perhaps this information could be automatically extracted from wherever https://gap-packages.github.io gets its data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolved-by-workflowIssues us resolved or irrelevant when using GH Action based release workflow (see #110)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions