doc: Don't hide the "Up" link when it is the same as "Home"
authorPeter Eisentraut
Sun, 6 Sep 2020 14:46:13 +0000 (16:46 +0200)
committerPeter Eisentraut
Sun, 6 Sep 2020 14:55:36 +0000 (16:55 +0200)
The original stylesheets seemed to think this was a good idea, but our
users find it confusing and unhelpful, so undo that logic.

Reported-by: Fabien COELHO
Discussion: https://www.postgresql.org/message-id/flat/alpine.DEB.2.22.394.2006210914370.859381%40pseudo

doc/src/sgml/stylesheet.xsl

index aeaa1e7c104b7db737b34048bdca77de43e26f73..69d7dccb00de707996949e42189d50467321eff7 100644 (file)
@@ -57,7 +57,6 @@ Customization of header
   
   
                                     or (count($up) > 0
-                                        and generate-id($up) != generate-id($home)
                                         and $navig.showtitles != 0)
                                     or count($next) > 0"/>
 
@@ -95,8 +94,7 @@ Customization of header
               
               
                 
-                  
-                                  and generate-id($up) != generate-id($home)">
+                  
                     
                       
                         
@@ -117,7 +115,6 @@ Customization of header
               
                 
                    0
-                                  and generate-id($up) != generate-id($home)
                                   and $navig.showtitles != 0">
                     
                   
@@ -176,4 +173,162 @@ Customization of header
   
 
 
+
+
+
+  
+  
+  
+
+  
+  
+
+  
+                                    or count($up) > 0
+                                    or count($next) > 0"/>
+
+  
+                                    or (generate-id($home) != generate-id(.)
+                                        or $nav.context = 'toc')
+                                    or ($chunk.tocs.and.lots != 0
+                                        and $nav.context != 'toc')
+                                    or ($next and $navig.showtitles != 0)"/>
+
+  
+    
+      
+        
+      
+
+      
+        
+          
+            
+              
+                0">
+                  
+                    
+                      
+                        
+                      
+                    
+                    
+                      
+                    
+                    
+                      
+                    
+                  
+                
+                 
+              
+              
+                
+                  
+                    
+                      
+                        
+                          
+                        
+                      
+                      
+                        
+                      
+                      
+                        
+                      
+                    
+                  
+                   
+                
+              
+              
+                 
+                0">
+                  
+                    
+                      
+                        
+                      
+                    
+                    
+                      
+                    
+                    
+                      
+                    
+                  
+                
+              
+            
+          
+
+          
+            
+              
+                
+                  
+                
+                 
+              
+              
+                
+                  
+                    
+                      
+                        
+                          
+                        
+                      
+                      
+                        
+                      
+                      
+                        
+                      
+                    
+                    
+                       | 
+                    
+                  
+                   
+                
+
+                
+                  
+                    
+                      
+                      
+                                           mode="recursive-chunk-filename">
+                        
+                      
+                      -toc
+                      
+                    
+                    
+                      
+                    
+                  
+                
+              
+              
+                 
+                
+                  
+                
+              
+            
+          
+        
+      
+    
+  
+
+