major documentation rework and packaging
Build Debian Packages / build (bookworm, debian12) (push) Failing after 7m59s
Build Debian Packages / build (bullseye, debian11) (push) Failing after 7m29s
Build Debian Packages / build (trixie, debian13) (push) Failing after 8m14s

This commit is contained in:
2026-03-25 14:36:24 +01:00
parent 75f32e1502
commit 3096e83a43
31 changed files with 2756 additions and 574 deletions
+2 -26
View File
@@ -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 ):