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

Documentation Advanced in brief description #3713

Closed
albert-github opened this issue Feb 27, 2019 · 10 comments
Closed

Documentation Advanced in brief description #3713

albert-github opened this issue Feb 27, 2019 · 10 comments
Assignees
Milestone

Comments

@albert-github
Copy link
Contributor

Issue Details

When running a html lint checker over the documentation we get a number of messages about "Opening and ending tag mismatch".

Looking at a place (insert_in_hole in the file "Triangulation/classTriangulationDataStructure.html") we see here:
brief_advanced

This is an "Advanced:" block inside a brief description and this is again due to the definition of the commands in the ALIASES:

"cgalAdvancedBegin=\htmlonly[block] <div class=\"CGALAdvanced\"> <div>Advanced</div> \endhtmlonly ^^" \
"cgalAdvancedEnd=\htmlonly[block] </div> \endhtmlonly" \

It is strange to have an extensive description in a brief description. This is a similar issue as has been present for cgalConcept (#3551)

@lrineau
Copy link
Member

lrineau commented Feb 27, 2019

I think the intent of the author of the documentation was to flag that function insert_in_hole as an advanced function. Is there a labeling that could be used in Doxygen to mark it differently?

I have seen that interesting proposal: mosra/m.css#79, but it seems to be a sort of post-processing of the XML output.

@lrineau lrineau added the Doc label Feb 27, 2019
@albert-github
Copy link
Contributor Author

I agree that the purpose is to signal that e.g. the function insert_in_hole is a function for advanced use.
I think there are some possibilities like cgalAdvancedBegin=<b>Advanced</b> or evencgalAdvancedBegin=<b class=\"advancedColor\">Advanced</b>.

As far as I know the things in the mosra repository indeed need some extra post-processing and are based on the XML output.

@sloriot
Copy link
Member

sloriot commented Mar 4, 2019

I think what we are missing a \cgalAdvancedFunction macro before the \cgalAdvancedBegin that is responsible for adding This is an advanced function as brief. @lrineau do you agree?

@lrineau
Copy link
Member

lrineau commented Mar 4, 2019

You are right. \cgalAdvancedFunction would add "This is an advanced functions." as the brief description.

@lrineau
Copy link
Member

lrineau commented Mar 5, 2019

@albert-github commented on Feb 27, 2019, 2:10 PM GMT+1:

When running a html lint checker over the documentation we get a number of messages about "Opening and ending tag mismatch".

@albert-github I would like to improve our document test process. In the past you mentioned that most of the checks you did recently on the CGAL documentation were not yet ready to be widely used, because it was using experimental features of Doxygen. Is that still the case?

As for this check you did, you mention "html lint checker". Which tool was it?

@albert-github
Copy link
Contributor Author

The html lint checker is the xml lint checker as mentioned before.
I call it like:
xmllint --path <path to doxygen development environment>/testing/dtd --noout --nonet --postvalid $*
where
$* are all the (x)html files

I use the the standard doxygen development version (master). Most problems have been solved, there are still some outstanding pull requests in CGAL and in doxygen (e.g doxygen/doxygen#6861). Further I've seen some messages about a.o. double definition of anchors, something about allowfullscreen (this is a HTML5 when I remember correctly).

@lrineau
Copy link
Member

lrineau commented Mar 5, 2019

Thanks @albert-github. For the moment that sounds a bit to early for us to adopt those tools in CGAL. Once all the needed pull-requests in CGAL and Doxygen are merged, I hope we will install and setup that sort of checks.

@albert-github
Copy link
Contributor Author

Just some statistics:

  • runtime doc generation (i.e. make doc second run, so refs are present): approx 540 sec
  • runtime xmllint: approx 80 sec

Total lines in output with warning: 249

  • most warnings take 3 / 4 lines for each warning
  • 45 warnings are are from 'already defined anchors'
  • 3 warnings are from allowfullscreen
  • other warnings are from not yet integrated pull requests

The 'already defined anchors' is something that has to be addressed in doxygen.

Also it still has to be investigated what the effect of the CGAL post processing step is, some preliminary results:

  • runtime doc generation (i.e. make doc_with_postprocessing second run, so refs are present): approx 710 sec
  • total lines in output with warnings: 9296
  • 2088 warnings are are from 'already defined anchors'

@lrineau
Copy link
Member

lrineau commented Mar 7, 2019

Fixed by #3734.

@lrineau lrineau closed this as completed Mar 7, 2019
@albert-github
Copy link
Contributor Author

I'm still getting a lot of warnings regarding the advanced sections.
I'll have a closer look at it and make issues / pull request for it.

albert-github added a commit to albert-github/cgal that referenced this issue Mar 10, 2019
Based on CGAL#3713 a  number of problems were solved, but also some new issues introduced.
- BaseDoxyfile.h see to it that the CGALAdvancedBegin is in a detailed part, so be sure to terminate the brief part by an extra carriage return
- commands like \pre, \note read till the beginning of the next section but a \htmlonly is not seen as a section separator, so insert an extra carriage return
- some places  missed an "Advanced" indicator, used the cgalAdvancedType here.

##Note
in Periodic_2_triangulation_2.h there appear to be a number of images that are a bit in thin air (Captions: "Insertion of a point on an edge." and "Insertion in a face."). Also just above these images theer are a number of functions that have documentation, but this is non-doxygen documentation and as such not seen by doxygen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants