Browse Source

Fixes for the Format page

Gu1 11 years ago
parent
commit
c7110c96db
3 changed files with 4 additions and 2 deletions
  1. 1 1
      ffdnispdb/static/css/style.css
  2. 1 1
      ffdnispdb/templates/format_spec.html
  3. 2 0
      ffdnispdb/views.py

+ 1 - 1
ffdnispdb/static/css/style.css

@@ -172,7 +172,7 @@ input#search-input {
  * Schema Spec / RST
  */
 
-#schema_spec {
+#format_spec {
     margin-bottom: 30px;
 }
 

+ 1 - 1
ffdnispdb/templates/format_spec.html

@@ -2,7 +2,7 @@
 {% block container %}
   <div class="row-fluid">
     <div class="span12">
-      <div id="schema_spec" class="rst">
+      <div id="format_spec" class="rst">
         {{ spec }}
       </div>
     </div>

+ 2 - 0
ffdnispdb/views.py

@@ -12,6 +12,7 @@ import locale
 locale.setlocale(locale.LC_ALL, '')
 import string
 from time import time
+import os.path
 
 from . import forms
 from .constants import *
@@ -171,6 +172,7 @@ def format():
             'initial_header_level' : 3,
         }
         parts = docutils.core.publish_parts(spec,
+                    source_path=os.path.dirname(ispformat.specs.versions[0.1]),
                     destination_path=None, writer_name='html',
                     settings_overrides=overrides)
         cache.set('format-spec', parts, timeout=60*60*24)