#14669: autogenerate the list of subdirectories of doc/en/reference
---------------------------------+------------------------------------------
       Reporter:  jhpalmieri     |         Owner:  mvngu          
           Type:  enhancement    |        Status:  positive_review
       Priority:  major          |     Milestone:  sage-5.11      
      Component:  documentation  |    Resolution:                 
       Keywords:                 |   Work issues:                 
Report Upstream:  N/A            |     Reviewers:  Volker Braun   
        Authors:  John Palmieri  |     Merged in:                 
   Dependencies:                 |      Stopgaps:                 
---------------------------------+------------------------------------------

Comment (by jhpalmieri):

 Difference between the old and new patch:
 {{{
 #!diff
 diff --git a/doc/en/reference/conf.py b/doc/en/reference/conf.py
 --- a/doc/en/reference/conf.py
 +++ b/doc/en/reference/conf.py
 @@ -64,13 +64,13 @@

  multidocs_is_master = True

 -# List of subdocs. Include all subdirectories of ref_src except for
 -# 'static' and 'templates', and to deal with upgrades: 'sage',
 +# Sorted list of subdocs. Include all subdirectories of ref_src except
 +# for 'static' and 'templates', and to deal with upgrades: 'sage',
  # 'sagenb', 'media', and 'other'.
  bad_directories = ['static', 'templates', 'sage', 'sagenb', 'media',
 'other']
 -multidocs_subdoc_list = [x for x in os.listdir(ref_src) if
 -                         os.path.isdir(os.path.join(ref_src, x))
 -                         and x not in bad_directories]
 +multidocs_subdoc_list = [x for x in os.listdir(ref_src)
 +                         if os.path.isdir(os.path.join(ref_src, x))
 +                         and x not in bad_directories].sort()

  # List of directories, relative to source directory, that shouldn't be
  # searched for source files.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14669#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to