-
Notifications
You must be signed in to change notification settings - Fork 29
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
Directory structure for manuals is broken #257
Comments
Thank you for the report and the suggestions. For example, in this manual entry for the Digraphs package, the link to The This script extracts the manuals from an installation of the appropriate GAP release. It deliberately removes the version number from the end of the directory name of each package. That is how the problem is being introduced. |
Thanks for the hint to Links between help books were quite robust, even over several package versions or GAP releases, when packages were located in directories Should we maybe introduce some symbolic links which provide such outdated paths? I attach a python script which creates such links. It seems to work inside the REMOVED old version of |
The broken HTML links between manuals on the GAP website are one problem. It can be fixed (after each release of new package versions) by inserting symbolic links to package directories, as suggested by Frank. (One might argue whether such a solution is logically correct, but in practice an HTML link to something in an old package version is usually valid also in newer versions of this package.) The same problem is present also in any local GAP installation, and here the situation is worse because it is likely that individual packages get updated or newly installed, for example via the
In this sense, deliberately adding symbolic links with "wrong" directory names may cause new problems. |
We actually discussed hosting multiple versions (ideally: all past distributed versions) of all package manuals (like Python, Julia, and many others do), but this is currently a problem due to the required storage space -- the PDFs in particular sum up to many gigabytes of data. If we restricted this to the HTML manuals alone, though, it would be doable. Similar for the GAP manual itself: i.e., instead of only hosting the current version, we could also host older versions (either all; or for each 4.x series the latest). We can discuss this some more during the upcoming GAP Days. If hosting is moved from St Andrews to Kaiserslautern, storage won't be an issue either. |
Of course, I agree with @ThomasBreuer that introducing links with misleading names is no optimal solution. Nevertheless, here is an updated version of a Python script that scans all html-files in a GAP root directory, or in the main directory of the documentation on the GAP website, and adds symbolic links in the PS: I hope that the two meanings of "link" in this context are not confusing... |
As was mentioned today, the problem with cross-references refers to the HTML files; the PDF files do not contain hyperlinks to other documents. Concerning the alternative solution to regenerate the documentation of all packages centrally after each release, this causes problems whenever the build process for a package documentation involves external programs. For example, building the full documentation for the CTblLib package involves the creation of some pictures for the HTML pages.
|
The problem should be fully fixed now: the server now automatically redirects https://www.gap-system.org/Manuals/pkg/GAPDoc-1.6.3/doc/chap0.html both are automatically redirected to https://docs.gap-system.org/pkg/gapdoc/doc/chap0.html (The use of a subdomain is also new, see issue #255, but mostly tangential for this issue). |
I did not find information how the
Manuals
directory (wherever it is located physically) is created.Currently, package documentation seems to be in locations like:
But when package documentation is built for a release then the relative links to documentation in other packages contains the directory names from the distribution, say
such that corresponding links are broken on the GAP website.
To make sure that links between manuals work the directory structure for all manuals should be the same as in a GAP installation (or it should include the structure from an installation, say, by adding appropriate symbolic links).
The text was updated successfully, but these errors were encountered: