AemieJ edited a comment on pull request #3860:
URL: https://github.com/apache/camel/pull/3860#issuecomment-634182364


   The attribute naming could be used to even link back and forth on the pages 
as well. Apart from that, I came up with the basic logic to use the file path 
and title for **createComponentNav()** function in gulpfile.js. 
**SummaryTitle** is an additional variable I assigned.
   
   ```
   const filepath = path.basename(filename);
   const title = titleFrom(file);
   if (filepath.indexOf('summary') > -1) {
         summaryTitle = title.toLowerCase();
   } else if (summaryTitle !== '' && filepath.indexOf(summaryTitle) === 0) {
         return `*** xref:${filepath}[${title}]`;
   }
   return `** xref:${filepath}[${title}]`
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to