mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Fix GUI documentation install
This commit is contained in:
parent
dc7cac5cd2
commit
3fd3ee90ec
12 changed files with 33 additions and 28 deletions
|
|
@ -36,7 +36,7 @@ recursive-include linkcheck/gui/rc Makefile *.png *.qrc
|
|||
recursive-include linkcheck/gui/ui *.ui
|
||||
include po/*.po po/*.pot po/Makefile
|
||||
include doc/*.example
|
||||
recursive-include doc/html *.ico *.html *.jpg *.png
|
||||
recursive-include doc/html *.ico *.html *.jpg *.png *.qhp *.qhcp Makefile
|
||||
include doc/po4a.conf doc/*.po doc/*.pot
|
||||
include doc/en/*.1 doc/en/*.5
|
||||
include doc/de/*.1 doc/de/*.5
|
||||
|
|
|
|||
10
Makefile
10
Makefile
|
|
@ -18,21 +18,20 @@ DEB_ORIG_TARGET=$(BUILDDIR)/linkchecker_$(VERSION).orig.tar.gz
|
|||
|
||||
.PHONY: all
|
||||
all:
|
||||
@echo "Read the file doc/source/install.txt to see how to build and install this package."
|
||||
@echo "Read the file INSTALL.txt to see how to build and install this package."
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-$(PYTHON) setup.py clean --all
|
||||
rm -f linkchecker-out.* *-stamp*
|
||||
$(MAKE) -C po clean
|
||||
$(MAKE) -C doc clean
|
||||
$(MAKE) -C doc/html clean
|
||||
$(MAKE) -C linkcheck/HtmlParser clean
|
||||
rm -f linkcheck/network/_network.so
|
||||
find . -name '*.py[co]' -exec rm -f {} \;
|
||||
|
||||
.PHONY: distclean
|
||||
distclean: clean cleandeb
|
||||
$(MAKE) -C doc clean
|
||||
rm -rf build linkchecker.egg-info
|
||||
rm -f _LinkChecker_configdata.py MANIFEST Packages.gz
|
||||
# clean aborted dist builds and -out files
|
||||
|
|
@ -56,6 +55,7 @@ locale:
|
|||
# to build in the current directory
|
||||
.PHONY: localbuild
|
||||
localbuild: MANIFEST
|
||||
$(MAKE) -C doc/html
|
||||
$(MAKE) -C linkcheck/HtmlParser
|
||||
$(PYTHON) setup.py build
|
||||
cp -f build/lib.linux-$(MACHINE)-$(PYVER)/linkcheck/HtmlParser/htmlsax.so linkcheck/HtmlParser
|
||||
|
|
@ -79,10 +79,6 @@ release: distclean releasecheck dist-stamp sign_distfiles homepage upload
|
|||
@echo "Register at Python Package Index..."
|
||||
$(PYTHON) setup.py register
|
||||
|
||||
.PHONY: homepage
|
||||
homepage:
|
||||
$(MAKE) -C doc homepage
|
||||
|
||||
.PHONY: chmod
|
||||
chmod:
|
||||
-chmod -R a+rX,u+w,go-w -- *
|
||||
|
|
|
|||
BIN
config/lccollection.qhc
Normal file
BIN
config/lccollection.qhc
Normal file
Binary file not shown.
1
debian/linkchecker-gui.install
vendored
1
debian/linkchecker-gui.install
vendored
|
|
@ -3,3 +3,4 @@ usr/lib/python2.5/site-packages/linkcheck/gui
|
|||
usr/share/man/man1/linkchecker-gui.1
|
||||
usr/share/man/de/man1/linkchecker-gui.1
|
||||
usr/share/linkchecker/lccollection.qhc
|
||||
usr/share/linkchecker/lcdoc.qch
|
||||
|
|
|
|||
16
doc/Makefile
16
doc/Makefile
|
|
@ -1,24 +1,12 @@
|
|||
HELPFILES = lccollection.qhc
|
||||
|
||||
all: $(HELPFILES)
|
||||
|
||||
clean:
|
||||
-rm -f *.qhc *.qch
|
||||
all:
|
||||
|
||||
test:
|
||||
xmllint --valid --noout *.html
|
||||
|
||||
|
||||
%.qhc: %.qhcp lcdoc.qhp
|
||||
qcollectiongenerator $< -o $@
|
||||
|
||||
po4a:
|
||||
po4a --localized-charset=UTF-8 po4a.conf
|
||||
|
||||
api:
|
||||
epydoc --html -o api --name "LinkChecker source documentation" --url ../index.html ../linkcheck/
|
||||
|
||||
.PHONY: po4a api clean
|
||||
favicon.ico: favicon32x32.png favicon16x16.png
|
||||
png2ico favicon.ico favicon32x32.png favicon16x16.png
|
||||
|
||||
.PHONY: po4a api test
|
||||
|
|
|
|||
13
doc/html/Makefile
Normal file
13
doc/html/Makefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
HELPFILES = lccollection.qhc
|
||||
|
||||
all: $(HELPFILES)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f *.qhc *.qch
|
||||
|
||||
%.qhc: %.qhcp lcdoc.qhp
|
||||
qcollectiongenerator $< -o $@
|
||||
|
||||
favicon.ico: favicon32x32.png favicon16x16.png
|
||||
png2ico favicon.ico favicon32x32.png favicon16x16.png
|
||||
BIN
doc/html/lccollection.qhc
Normal file
BIN
doc/html/lccollection.qhc
Normal file
Binary file not shown.
|
|
@ -2,9 +2,9 @@
|
|||
<QHelpCollectionProject version="1.0">
|
||||
<assistant>
|
||||
<title>LinkChecker</title>
|
||||
<applicationIcon>html/favicon16x16.png</applicationIcon>
|
||||
<applicationIcon>favicon16x16.png</applicationIcon>
|
||||
<cacheDirectory>bfk/LinkChecker</cacheDirectory>
|
||||
<startPage>qthelp://bfk.app.linkchecker/doc/html/index.html</startPage>
|
||||
<startPage>qthelp://bfk.app.linkchecker/doc/index.html</startPage>
|
||||
<enableDocumentationManager>false</enableDocumentationManager>
|
||||
<enableAddressBar>false</enableAddressBar>
|
||||
<enableFilterFunctionality>false</enableFilterFunctionality>
|
||||
BIN
doc/html/lcdoc.qch
Normal file
BIN
doc/html/lcdoc.qch
Normal file
Binary file not shown.
|
|
@ -7,7 +7,7 @@
|
|||
<section title="LinkChecker Application Manual" ref="index.html" />
|
||||
</toc>
|
||||
<files>
|
||||
<file>html/index.html</file>
|
||||
<file>index.html</file>
|
||||
</files>
|
||||
</filterSection>
|
||||
</QtHelpProject>
|
||||
|
|
@ -30,7 +30,7 @@ from .. import configuration, checker, director, add_intern_pattern, \
|
|||
from ..containers import enum
|
||||
|
||||
|
||||
DocBaseUrl = "qthelp://bfk.app.linkchecker/doc/html/"
|
||||
DocBaseUrl = "qthelp://bfk.app.linkchecker/doc/"
|
||||
|
||||
Status = enum('idle', 'checking')
|
||||
|
||||
|
|
@ -51,7 +51,13 @@ class LinkCheckerMain (QtGui.QMainWindow, Ui_MainWindow):
|
|||
self.checker = CheckerThread()
|
||||
self.contextmenu = ContextMenu(parent=self)
|
||||
# Note: we can't use QT assistant here because of the .exe packaging
|
||||
qhcpath = os.path.join(configuration.configdata.install_data, "doc", "lccollection.qhc")
|
||||
path = configuration.configdata.install_data
|
||||
# here lies the help file when developing
|
||||
qhcpath = os.path.join(path, "doc", "html", "lccollection.qhc")
|
||||
if not os.path.isfile(qhcpath):
|
||||
# here lies the help file after installing as a package
|
||||
path = configuration.configdata.config_dir
|
||||
qhcpath = os.path.join(path, "lccollection.qhc")
|
||||
self.assistant = HelpWindow(self, qhcpath)
|
||||
# setup this widget
|
||||
self.init_treewidget()
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -369,7 +369,8 @@ myemail = "calvin@users.sourceforge.net"
|
|||
|
||||
data_files = [
|
||||
('share/linkchecker',
|
||||
['config/linkcheckerrc', 'config/logging.conf', 'doc/lccollection.qhc', ]),
|
||||
['config/linkcheckerrc', 'config/logging.conf',
|
||||
'doc/html/lccollection.qhc', 'doc/html/lcdoc.qch']),
|
||||
('share/linkchecker/examples',
|
||||
['cgi-bin/lconline/leer.html.en',
|
||||
'cgi-bin/lconline/leer.html.de',
|
||||
|
|
|
|||
Loading…
Reference in a new issue