~pygame/pygame/trunk

« back to all changes in this revision

Viewing changes to makeref.py

  • Committer: pygame
  • Date: 2017-01-10 00:31:42 UTC
  • Revision ID: git-v1:2eea4f299a2e791f884608d7ed601558634af73c
commit 1639c41a8cb3433046882ede92c80ce69d59016b
Author: Thomas Kluyver <takowl@gmail.com>
Date:   Sun Jan 8 18:46:46 2017 +0000

    Build newer versions of libogg and libvorbis into Linux base images

    Closes #317
    Closes #323

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import sphinx
 
4
 
 
5
import sys
 
6
import os
 
7
 
 
8
 
 
9
rst_dir = 'docs'
 
10
rst_source_dir = os.path.join(rst_dir, 'reST')
 
11
rst_build_dir = rst_dir
 
12
rst_doctree_dir = os.path.join(rst_build_dir, 'doctrees')
 
13
html_dir = 'docs'
 
14
c_header_dir = os.path.join('src', 'doc')
 
15
 
 
16
def Run():
 
17
    return sphinx.main([sys.argv[0],
 
18
                        '-b', 'html',
 
19
                        '-d', rst_doctree_dir,
 
20
                        '-D', 'headers_dest=%s' % (c_header_dir,),
 
21
                        '-D', 'headers_mkdirs=0',
 
22
                        rst_source_dir,
 
23
                        html_dir,])
 
24
 
 
25
if __name__ == '__main__':
 
26
    sys.exit(Run())