Stop abusing sort title and use groups instead
Lunar

Lunar commited on 2014-05-27 11:07:39
Zeige 6 geänderte Dateien mit 3 Einfügungen und 9 Löschungen.


According to Mallard's specification:

    Sort titles allow you to specify alternate text to be used when sorting the
    page or section. Certain automatic link sections will sort the nodes they
    link to. When this happens, providing a sort title allows you to control
    how the node is collated. This is useful for excluding leading articles
    such as “an” and “the”.

The order of topic pages on the main index is better controlled by using
grouping capabilities of automatic links.
... ...
@@ -5,7 +5,6 @@
5 5
 
6 6
 <info>
7 7
   <desc>What bridges are and how to use them.</desc>
8
-  <title type='sort'>05 Bridges</title>
9 8
   <link type="guide" xref="index" />
10 9
 </info>
11 10
 
... ...
@@ -4,7 +4,6 @@
4 4
   id="circumvention">
5 5
 
6 6
 <info>
7
-  <title type='sort'>04 Circumvention</title>
8 7
   <desc>What to do if the Tor network is blocked.</desc>
9 8
   <link type="guide" xref="index" />
10 9
 </info>
... ...
@@ -3,9 +3,8 @@
3 3
       id="how-tor-works">
4 4
 
5 5
   <info>
6
-    <title type='sort'>01 Tor</title>
7 6
     <desc>How Tor works.</desc>
8
-    <link type="guide" xref="index"/>
7
+    <link type="guide" xref="index" group="#first"/>
9 8
   </info>
10 9
 
11 10
   <title>Tor</title>
... ...
@@ -5,8 +5,7 @@
5 5
 
6 6
 <info>
7 7
   <desc>A list of known issues.</desc>
8
-  <title type='sort'>03 Known Issues</title>
9
-  <link type="guide" xref="index"/>
8
+  <link type="guide" xref="index" group="#last" />
10 9
 </info>
11 10
 
12 11
 <title>Known Issues</title>
... ...
@@ -4,9 +4,8 @@
4 4
   id="troubleshooting">
5 5
 
6 6
 <info>
7
-  <title type="sort">02 Troubleshooting</title>
8 7
   <desc>What to do if Tor Browser doesn't work.</desc>
9
-  <link type="guide" xref="index"/>
8
+  <link type="guide" xref="index" group="#last" />
10 9
 </info>
11 10
 
12 11
 <title>Troubleshooting</title>
... ...
@@ -5,7 +5,6 @@
5 5
 
6 6
 <info>
7 7
   <desc>How to remove Tor Browser from your system.</desc>
8
-  <title type='sort'>06 Uninstalling</title>
9 8
   <link type="guide" xref="index"/>
10 9
 </info>
11 10
 
12 11