Skip to content

Commit

Permalink
Update tartley projects to github urls, provide first-line links on g…
Browse files Browse the repository at this point in the history
…h and bb
  • Loading branch information
mcfletch committed Dec 28, 2019
1 parent e81584a commit f85d8ce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions directdocs/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def glName( name ):
return True
return 0

def glProcess( filename, tokenType,tokenString, xxx_todo_changeme4, xxx_todo_changeme5,lineText ):
def glProcess( filename, tokenType, tokenString, sourceStart, sourceEnd, lineText ):
"""Process the name in some way"""
(sourceRow,sourceCol) = xxx_todo_changeme4
(endRow,endCol) = xxx_todo_changeme5
(sourceRow,sourceCol) = sourceStart
(endRow,endCol) = sourceEnd
print(filename, sourceRow, tokenString, lineText.strip())


Expand Down Expand Up @@ -77,8 +77,8 @@ def generate_tokens_dir( directory, filterFunction=glName, processFunction=glPro
LOGGERHEAD = '%(baseURL)s/view/head:/%(deltaPath)s'
GOOGLECODE = '%(baseURL)s/source/browse/trunk/%(deltaPath)s'
GOOGLECODE_HG = '%(baseURL)s/source/browse/%(deltaPath)s'
GITHUB = '%(baseURL)s/blob/master/%(deltaPath)s'
BITBUCKET = '%(baseURL)s/src/tip/%(deltaPath)s'
GITHUB = '%(baseURL)s/blob/master/%(deltaPath)s#L%(sourceRow)s'
BITBUCKET = '%(baseURL)s/src/tip/%(deltaPath)s#lines-%(sourceRow)s'

class SampleSource( object ):
"""A source from which samples may be generated"""
Expand Down Expand Up @@ -220,21 +220,21 @@ def loadData():
),
SampleSource(
os.path.join( SAMPLES, 'agog' ),
baseURL='https://bitbucket.org/tartley/algorithmic-generation-of-geometry/',
baseURL='https://github.com/tartley/algorithmic-generation-of-opengl-geometry',
projectName = 'AGoG',
urlTemplate = BITBUCKET,
urlTemplate = GITHUB,
),
SampleSource(
os.path.join( SAMPLES, 'gloopy' ),
baseURL = 'https://bitbucket.org/tartley/gloopy/',
baseURL = 'https://github.com/tartley/gloopy',
projectName = 'Gloopy',
urlTemplate = BITBUCKET,
urlTemplate = GITHUB,
),
SampleSource(
os.path.join( SAMPLES, 'gltutpy' ),
baseURL = 'https://bitbucket.org/tartley/gltutpy/',
baseURL = 'https://github.com/tartley/gltutpy',
projectName = 'OpenGL Tutorial (Python Translation)',
urlTemplate = BITBUCKET,
urlTemplate = GITHUB,
),
SampleSource(
os.path.join( SAMPLES, 'visvis' ),
Expand Down
14 changes: 7 additions & 7 deletions directdocs/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,19 @@ def update_command( self ):
dirname = 'pygl2d',
),
BZRSource(
'lp:~bebraw/scocca/devel',
'https://code.launchpad.net/~bebraw/scocca/devel',
dirname = 'scocca',
),
HgSource(
'https://bitbucket.org/tartley/gltutpy',
GITSource(
'https://github.com/tartley/gltutpy.git',
dirname = 'gltutpy',
),
HgSource(
'https://bitbucket.org/tartley/algorithmic-generation-of-geometry',
GITSource(
'https://github.com/tartley/algorithmic-generation-of-opengl-geometry.git',
dirname = 'agog',
),
HgSource(
'https://bitbucket.org/tartley/gloopy',
GITSource(
'https://github.com/tartley/gloopy.git',
dirname = 'gloopy',
),
GITSource(
Expand Down

0 comments on commit f85d8ce

Please # to comment.