doc: Delete user documentation and use gitlab wiki instead.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-01-24 11:41:30 +01:00
1 parent aad7d75fa6
commit b5a3ee7568
4 files changed
+15 -14

No files matched your search

+8 -6
View File
@@ -209,12 +209,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
"action_menu_results_last": self.open_last_results,
"action_open_results_from_file": self.open_results_from_file,
# Help
"action_menu_pamhyr_users_pdf":
lambda: self.open_doc_user(ext="pdf"),
"action_menu_pamhyr_users_wiki": self.open_doc_user,
"action_menu_pamhyr_developers_pdf":
lambda: self.open_doc_dev(ext="pdf"),
"action_menu_pamhyr_users_html":
lambda: self.open_doc_user(ext="html"),
"action_menu_pamhyr_developers_html":
lambda: self.open_doc_dev(ext="html"),
"action_menu_mage": self.open_doc_mage,
@@ -937,6 +934,11 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
)
def open_doc(self, filename):
if "https://" in filename:
url = QUrl(filename)
QDesktopServices.openUrl(url)
return
if _doc == "external":
url = QUrl(f"file://{self._doc_path_file(filename)}")
QDesktopServices.openUrl(url)
@@ -951,8 +953,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
)
doc.show()
def open_doc_user(self, ext="pdf"):
self.open_doc(f"Pamhyr2-users.{ext}")
def open_doc_user(self):
self.open_doc(f"https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home")
def open_doc_dev(self, ext="pdf"):
self.open_doc(f"Pamhyr2-dev.{ext}")
+3 -4
View File
@@ -162,8 +162,7 @@
<property name="title">
<string>Pamhyr2 </string>
</property>
<addaction name="action_menu_pamhyr_users_pdf"/>
<addaction name="action_menu_pamhyr_users_html"/>
<addaction name="action_menu_pamhyr_users_wiki"/>
<addaction name="action_menu_pamhyr_developers_pdf"/>
<addaction name="action_menu_pamhyr_developers_html"/>
</widget>
@@ -908,9 +907,9 @@
<string>Open mage documentation</string>
</property>
</action>
<action name="action_menu_pamhyr_users_pdf">
<action name="action_menu_pamhyr_users_wiki">
<property name="text">
<string>Users (pdf)</string>
<string>Users (wiki)</string>
</property>
</action>
<action name="action_menu_pamhyr_users_html">