Skip to content

Commit

Permalink
List only the project pages in "Related Pages"
Browse files Browse the repository at this point in the history
This avoids cluttering "Related Pages" with links to pages from external
projects.
  • Loading branch information
agateau committed Mar 18, 2014
1 parent 8eeaae0 commit a2c7f91
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a2c7f91

Please sign in to comment.