#13544: Omit .DS_Store when building 'all' documentation
---------------------------------+------------------------------------------
       Reporter:  jhpalmieri     |         Owner:  mvngu       
           Type:  defect         |        Status:  needs_review
       Priority:  minor          |     Milestone:  sage-5.4    
      Component:  documentation  |    Resolution:              
       Keywords:                 |   Work issues:              
Report Upstream:  N/A            |     Reviewers:              
        Authors:  John Palmieri  |     Merged in:              
   Dependencies:                 |      Stopgaps:              
---------------------------------+------------------------------------------

Comment (by jhpalmieri):

 Another option would be the following; this could be used in addition to
 the patch here, or independently of it. Both should fix the problem.
 {{{
 #!diff
 diff --git a/doc/common/builder.py b/doc/common/builder.py
 --- a/doc/common/builder.py
 +++ b/doc/common/builder.py
 @@ -257,11 +257,10 @@ class AllBuilder(object):
              sage: documents[0] == 'en/reference'
              True
          """
 -        documents = []
 -        for lang in LANGUAGES:
 -            for document in os.listdir(os.path.join(SAGE_DOC, lang)):
 -                if document not in OMIT:
 -                    documents.append(os.path.join(lang, document))
 +        documents = [os.path.join(lang, document) for lang in LANGUAGES
 +                     for document in os.listdir(os.path.join(SAGE_DOC,
 lang))
 +                     if document not in OMIT and
 +                     os.path.isdir(os.path.join(SAGE_DOC, lang,
 document))]

          # Ensure that the reference guide is compiled first so that links
 from
          # the other document to it are correctly resolved.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13544#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to