1
0
Fork 0

fixed pagenation

This commit is contained in:
Frank Celler 2013-02-10 16:41:44 +01:00
parent 31c98704a0
commit 94a4965472
7 changed files with 19 additions and 6 deletions

View File

@ -1,6 +1,7 @@
Authentication and Authorisation {#DbaManualAuthentication}
===========================================================
@NAVIGATE_DbaManualAuthentication
@EMBEDTOC{DbaManualAuthenticationTOC}
Authentication and Authorisation {#DbaManualAuthenticationIntro}

View File

@ -1,6 +1,7 @@
TOC {#DbaManualAuthenticationTOC}
=================================
- @ref DbaManualAuthenticationIntro
- @ref DbaManualAuthenticationCommandLine
- @ref UserManagementIntro
- @ref DbaManualAuthentication
- @ref DbaManualAuthenticationIntro
- @ref DbaManualAuthenticationCommandLine
- @ref UserManagementIntro

View File

@ -1,6 +1,7 @@
Administrating ArangoDB {#DbaManualBasics}
==========================================
@NAVIGATE_DbaManualBasics
@EMBEDTOC{DbaManualBasicsTOC}
Mostly Memory/Durability {#DbaManualBasicsDurability}

View File

@ -1,6 +1,7 @@
Datafile Debugger {#DbaManualDatafileDebugger}
==============================================
@NAVIGATE_DbaManualDatafileDebugger
@EMBEDTOC{DbaManualDatafileDebuggerTOC}
In Case Of Disaster

View File

@ -1,6 +1,7 @@
Emergency Console {#DbaManualEmergencyConsole}
==============================================
@NAVIGATE_DbaManualEmergencyConsole
@EMBEDTOC{DbaManualEmergencyConsoleTOC}
In Case Of Disaster

View File

@ -1,6 +1,7 @@
BitArray Indexes {#IndexBitArray}
=================================
@NAVIGATE_IndexBitArray
@EMBEDTOC{IndexBitArrayTOC}
Introduction to Bit-Array Indexes {#IndexBitArrayIntro}

View File

@ -90,7 +90,7 @@ for filename in argv:
f.close()
def generate(l):
def generate(l, h):
for i in range(0,len(l)):
entry = l[i]
prev = ""
@ -106,6 +106,13 @@ def generate(l):
if entry in homes:
home = homes[entry]
if h:
if prev != "" and home != homes[prev]:
prev = ""
if next != "" and home != homes[next]:
next = ""
if prev == "":
print 'ALIASES += "NAVIGATE_%s=@NAVIGATE_FIRST{%s,%s}"' % (entry,home,next)
elif next == "":
@ -113,5 +120,5 @@ def generate(l):
else:
print 'ALIASES += "NAVIGATE_%s=@NAVIGATE{%s,%s,%s}"' % (entry,prev,home,next)
generate(books)
generate(chapters)
generate(books, None)
generate(chapters, homes)