Permalink
Browse files

List only the project pages in "Related Pages"

This avoids cluttering "Related Pages" with links to pages from external
projects.
  • Loading branch information...
agateau committed Mar 18, 2014
1 parent 8eeaae0 commit a2c7f91d6320f72951f1e3ef092e077a89562670
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/index.cpp
@@ -3173,9 +3173,10 @@ static void writePageIndex(OutputList &ol)
PageDef *pd=0;
for (pdi.toFirst();(pd=pdi.current());++pdi)
{
if (pd->getOuterScope()==0 ||
pd->getOuterScope()->definitionType()!=Definition::TypePage
) // not a sub page
if ((pd->getOuterScope()==0 ||
pd->getOuterScope()->definitionType()!=Definition::TypePage) && // not a sub page
!pd->isReference() // not an external page
)
{
writePages(pd,ftv);
}

0 comments on commit a2c7f91

Please sign in to comment.