The \tparam keyword generates a hyperlink for its parameter, but it shouldn't

Open
#9,043 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
documentation

Research direction

Start with the \tparam examples in the issue, especially the Kernel example and the linked CGAL documentation page. Locate how \tparam is handled in the documentation generation setup; the issue does not name a file or test. Done means the parameter is not linked unexpectedly and there is a way to suppress linking without changing the displayed text.

Written by the indexing model from the issue text.

Description

Doc Under discussion

Issue Details

If you write in the document:

\tparam x is a model of `y`.

and x is registered, x becomes a link; see e.g., CGAL::expand_face_selection, and look for FaceGraph and OutputIterator.

One may think that this is desired. I disagree.
However, even if is, there must be a way to suppress the generation of the link.
Adding % as a prefix does not work. (Actually, it adds a visible '%', which suppresses the link, but also alters the displayed string....)
A common case where this error may show up is when a class template or a template function has a template parameter that can be substituted by a kernel. We often use the token Kernel to refer to the template parameter (as in Polygon_2<Kernel, Container>).
In the doc we would write:

\tparam Kernel is a model of the concept `PolygonTraits`.

Also, \tparam is missing in many pages.
It would be nice to make a global pass and
(ii) add the missing \tparam's, and
(ii) give them all a canonical look (of the form above).
This should probably be split out and becomes an issue of its own.

Environment

  • Operating system (Windows/Mac/Linux, 32/64 bits):
  • Compiler:
  • Release or debug mode:
  • Specific flags used (if any):
  • CGAL version:
  • Boost version:
  • Other libraries versions if used (Eigen, TBB, etc.):
Dominant language
C++
Stars
6.1k
Forks
1.6k
Avg merge
3d 19h
Merged PRs (30d)
55

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CGAL/cgal

All issues in CGAL/cgal

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.