changeset 32881:8d59bdf485e2

maint: Merge stable to default.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Mon, 29 Jan 2024 20:44:29 -0500
parents fdc662d64819 (current diff) ca64468e9710 (diff)
children 5b99b3e49394 837450b0ee50
files doc/interpreter/genpropdoc.m
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/genpropdoc.m	Mon Jan 29 18:28:04 2024 -0500
+++ b/doc/interpreter/genpropdoc.m	Mon Jan 29 20:44:29 2024 -0500
@@ -3522,11 +3522,25 @@
   idx = strcmp (categories, "Unused");
   categories = [categories(!idx); categories(idx)];
 
+  ## Add links to categories at the top
+  str = sprintf ("%s\n\nCategories:\n\n", str);
+
+  for ii = 1:numel (categories);
+    str = sprintf ("%s@ref{XREF%s%s, , @w{%s}} %s", str, ...
+                   objname, strrep (categories{ii}, " ", ""), categories{ii});
+    if (ii < numel (categories))
+      str = sprintf ("%s| ", str);
+    endif
+  endfor
+
   idx = [];
   for ii = 1:numel (categories)
     fields = sort (allfields(strcmp (allcategories, categories{ii})));
     nf = numel (fields);
     str = sprintf ("%s\n\n@subsubheading %s", str, categories{ii});
+    str = sprintf ("%s\n@anchor{XREF%s%s}\n@prindex %s %s\n", str, ...
+                   objname, strrep (categories{ii}, " ", ""), ...
+                   objname, strrep (categories{ii}, " ", ""));
     str = sprintf ("%s\n\n@table @asis", str);
 
     for jj = 1:nf