Skip to content

Commit 1dcc1b9

Browse files
committed
docs: correct manual link
1 parent 5e5cc7f commit 1dcc1b9

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

news/doctab.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* Changed the removed local manual link to the online page.
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/pdfgui/gui/mainframe.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,10 +2522,8 @@ def onSaveCalc(self, event):
25222522
def onDocumentation(self, event):
25232523
"""Show information about the documentation."""
25242524
import webbrowser
2525-
from urllib.request import pathname2url
2526-
2527-
url = "file://" + pathname2url(docMainFile)
2528-
webbrowser.open(url)
2525+
2526+
webbrowser.open(docMainFile)
25292527
return
25302528

25312529
# MISC INTERACTION ITEMS

src/diffpy/pdfgui/gui/pdfguiglobals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
APPDATADIR = os.path.abspath(APPDATADIR)
5656

5757
# Location of the HTML manual
58-
docMainFile = os.path.join(APPDATADIR, "doc/manual/pdfgui.html")
58+
docMainFile = "https://diffpy.github.io/diffpy.pdfgui/manual.html"
5959

6060
del _upbasedir
6161
del _development_mode

0 commit comments

Comments
 (0)