major documentation rework and packaging
This commit is contained in:
+2
-26
@@ -974,38 +974,14 @@ class DamarisGUI:
|
||||
def documentation_init( self ):
|
||||
|
||||
self.doc_urls = {
|
||||
"Python DAMARIS": None,
|
||||
"DAMARIS Homepage": "http://element.fkp.physik.tu-darmstadt.de/damaris_cms",
|
||||
"DAMARIS script library":"https://chaos3.fkp.physik.tu-darmstadt.de/diffusion/DSL/",
|
||||
"DAMARIS backends repo": "https://chaos3.fkp.physik.tu-darmstadt.de/source/damaris/browse/master/backends/",
|
||||
"DAMARIS frontend repo": "https://chaos3.fkp.physik.tu-darmstadt.de/source/damaris/browse/master/frontends/python-damaris/",
|
||||
"Python": "http://www.python.org/doc/%d.%d/" % (sys.version_info[:2]),
|
||||
"numpy/scipy": "http://docs.scipy.org/",
|
||||
"pytables": "http://www.pytables.org/docs/manual/",
|
||||
"DAMARIS Manual": "file:///usr/share/doc/python3-damaris/doc/_build/html/index.html",
|
||||
}
|
||||
|
||||
if os.path.isdir( "/usr/share/doc/python%d.%d-doc/html" % (sys.version_info[ :2 ]) ):
|
||||
self.doc_urls[ "Python" ] = "file:///usr/share/doc/python%d.%d-doc/html/index.html" % (
|
||||
self.doc_urls[ "Python Docs" ] = "file:///usr/share/doc/python%d.%d-doc/html/index.html" % (
|
||||
sys.version_info[ :2 ])
|
||||
|
||||
if os.path.isdir( "/usr/share/doc/python-tables-doc/html" ):
|
||||
self.doc_urls[ "pytables" ] = "file:///usr/share/doc/python-tables-doc/html/index.html"
|
||||
|
||||
doc_index_url = None
|
||||
# local installation
|
||||
installation_base = __file__
|
||||
for i in range( 5 ):
|
||||
installation_base = os.path.dirname( installation_base )
|
||||
if os.path.isfile( os.path.join( installation_base, "share", "python-damaris", "doc", "index.html" ) ):
|
||||
self.doc_urls[ "Python DAMARIS" ] = os.path.join( installation_base, "share", "python-damaris", "doc",
|
||||
"index.html" )
|
||||
elif os.path.isfile( "/usr/share/doc/python-damaris/html/index.html" ):
|
||||
# check generic debian location
|
||||
self.doc_urls[ "Python DAMARIS" ] = "file:///usr/share/doc/python-damaris/html/index.html"
|
||||
else:
|
||||
|
||||
self.doc_urls[ "Python DAMARIS" ] = "https://element.fkp.physik.tu-darmstadt.de/damaris_cms/index.php?id=documentation"
|
||||
|
||||
self.doc_browser = None
|
||||
|
||||
def show_doc_menu( self, widget, data=None ):
|
||||
|
||||
Reference in New Issue
Block a user