소스 검색

docs: link keywords index entry at the end of the page

User should first read the topic modules and then look for more.

Also replace 'Note: see...' by simple and more readable 'See...'


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66041 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 9 년 전
부모
커밋
547c9f64f6
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      man/build_html.py
  2. 7 0
      man/build_topics.py

+ 1 - 2
man/build_html.py

@@ -317,8 +317,7 @@ r"""
 <hr class="header">
 
 <h2>Topic: ${keyword}</h2>
-<i>Note: see also the corresponding keyword <a href="keywords.html#${keyword}">${keyword}</a> for additional references.</i>
-<p>
+
 <table>
 """)
 #"

+ 7 - 0
man/build_topics.py

@@ -62,6 +62,13 @@ for key, values in sorted(keywords.iteritems()):
         topicsfile.writelines([moduletopics_tmpl.substitute(
             key=key.lower(), name=key.replace('_', ' '))])
     keyfile.write("</table>\n")
+    # link to the keywords index
+    # TODO: the labels in keywords index are with spaces and capitals
+    # this should be probably changed to lowercase with underscores
+    keyfile.write(
+        '<p><em>See also the corresponding keyword'
+        ' <a href="keywords.html#{key}">{key}</a>'
+        ' for additional references.</em>'.format(key=key.replace('_', ' ')))
     write_html_footer(keyfile, "index.html", year)
 topicsfile.write("</ul>\n")
 write_html_footer(topicsfile, "index.html", year)