Skip to content

Commit e18ff9c

Browse files
committed
Merge branch 'release/0.3.0' into stable
2 parents 45bb34f + 1b11c54 commit e18ff9c

File tree

503 files changed

+4104
-3219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+4104
-3219
lines changed

.qmake.conf

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
SRC_ROOT=$$PWD
22
BUILD_ROOT=$$shadowed($$PWD)
3+
4+
ZEAL_COMMON_PRI = $$SRC_ROOT/qmake/common.pri
5+
ZEAL_LIBRARY_PRI = $$SRC_ROOT/qmake/library.pri

.shippable.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
before_install:
2-
- shippable_retry sudo apt-get -y -qq update
3-
install:
4-
- shippable_retry sudo apt-get -y -qq install --no-install-recommends qt5-default libqt5webkit5-dev libqt5x11extras5-dev libarchive-dev libxcb-keysyms1-dev
5-
script:
6-
- qmake
7-
- make
1+
language: c
2+
compiler:
3+
- gcc
4+
build:
5+
ci:
6+
- shippable_retry sudo apt-get -y -qq update
7+
- shippable_retry sudo apt-get -y -qq install --no-install-recommends qt5-default libqt5webkit5-dev libqt5x11extras5-dev libarchive-dev libxcb-keysyms1-dev
8+
- qmake
9+
- make

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Zeal
22

3-
[![IRC](https://img.shields.io/badge/irc-%23zealdocs-blue.svg?style=flat-square)](https://kiwiirc.com/client/irc.freenode.net/#zealdocs)
3+
[![Changelog](https://img.shields.io/github/release/zealdocs/zeal.svg?style=flat-square)](https://github.com/zealdocs/zeal/releases)
4+
[![IRC](https://img.shields.io/badge/chat-on%20irc-blue.svg?style=flat-square)](https://kiwiirc.com/client/irc.freenode.net/#zealdocs)
5+
[![Telegram Chat](https://img.shields.io/badge/chat-on%20telegram-179cde.svg?style=flat-square)](https://telegram.me/zealdocschat)
6+
[![Telegram Channel](https://img.shields.io/badge/follow-on%20telegram-179cde.svg?style=flat-square)](https://telegram.me/zealdocs)
7+
[![Twitter](https://img.shields.io/badge/follow-on%20twitter-1da1f2.svg?style=flat-square)](https://twitter.com/zealdocs)
48

59
> **zeal** *noun*
610
>
@@ -12,7 +16,7 @@
1216
1317
Zeal is a simple offline documentation browser inspired by [Dash](https://kapeli.com/dash).
1418

15-
![Screenshot](https://i.imgur.com/SiLvpz8.png)
19+
![Screenshot](https://i.imgur.com/v63u1ZJ.png)
1620

1721
[More screenshots](https://imgur.com/a/eVi97)
1822

@@ -22,7 +26,7 @@ Zeal is a simple offline documentation browser inspired by [Dash](https://kapeli
2226

2327
OS \ Branch | master | stable
2428
------------|--------|-------
25-
Linux | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/master.svg?style=flat-square)](https://app.shippable.com/builds/54ac2ce4d46935d5fbc19b84) | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/stable.svg?style=flat-square)](https://app.shippable.com/builds/54ac2ce4d46935d5fbc19b84)
29+
Linux | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/master.svg?style=flat-square)](https://app.shippable.com/projects/54ac2ce4d46935d5fbc19b84) | [![Shippable](https://img.shields.io/shippable/54ac2ce4d46935d5fbc19b84/stable.svg?style=flat-square)](https://app.shippable.com/projects/54ac2ce4d46935d5fbc19b84)
2630
Windows | [![AppVeyor](https://img.shields.io/appveyor/ci/trollixx/zeal/master.svg?style=flat-square)](https://ci.appveyor.com/project/trollixx/zeal) | [![AppVeyor](https://img.shields.io/appveyor/ci/trollixx/zeal/stable.svg?style=flat-square)](https://ci.appveyor.com/project/trollixx/zeal)
2731

2832
## Download

assets/assets.pro

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
include($$ZEAL_COMMON_PRI)
2+
3+
TEMPLATE = aux
4+
5+
unix:!macx {
6+
TARGET = zeal
7+
appicons16.files=freedesktop/appicons/16/*
8+
appicons24.files=freedesktop/appicons/24/*
9+
appicons32.files=freedesktop/appicons/32/*
10+
appicons64.files=freedesktop/appicons/64/*
11+
appicons128.files=freedesktop/appicons/128/*
12+
13+
appicons16.path=$$PREFIX/share/icons/hicolor/16x16/apps
14+
appicons24.path=$$PREFIX/share/icons/hicolor/24x24/apps
15+
appicons32.path=$$PREFIX/share/icons/hicolor/32x32/apps
16+
appicons64.path=$$PREFIX/share/icons/hicolor/64x64/apps
17+
appicons128.path=$$PREFIX/share/icons/hicolor/128x128/apps
18+
19+
desktop.files=freedesktop/zeal.desktop
20+
desktop.path=$$PREFIX/share/applications
21+
22+
INSTALLS += appicons16 appicons24 appicons32 appicons64 appicons128 desktop
23+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

qmake/common.pri

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Shared build options
2+
#
3+
# This file must be included at the top of every non-subdirs .pro file.
4+
# Use:
5+
# include($$ZEAL_COMMON_PRI)
6+
7+
# Compilation settings
8+
CONFIG += c++11 silent
9+
10+
# Shared include path
11+
INCLUDEPATH += $$SRC_ROOT/src/libs
12+
LIBS = -L$$BUILD_ROOT/.lib
13+
14+
# QString options
15+
DEFINES *= QT_USE_QSTRINGBUILDER
16+
DEFINES *= QT_RESTRICTED_CAST_FROM_ASCII
17+
DEFINES *= QT_NO_CAST_TO_ASCII
18+
DEFINES *= QT_NO_URL_CAST_FROM_STRING
19+
20+
# Workaround for AppVeyor: Do not warn if the library had to be created.
21+
# Based on https://codereview.qt-project.org/150326
22+
win32-g++:lessThan(QT_VERSION, "5.6.0") {
23+
QMAKE_LIB = ar -rc
24+
}
25+
26+
# Keep build directory clean
27+
MOC_DIR = $$BUILD_ROOT/.moc
28+
OBJECTS_DIR = $$BUILD_ROOT/.obj
29+
RCC_DIR = $$BUILD_ROOT/.rcc
30+
UI_DIR = $$BUILD_ROOT/.ui
31+
32+
# Application version
33+
VERSION = 0.3.0
34+
DEFINES += ZEAL_VERSION=\\\"$${VERSION}\\\"
35+
36+
# Browser engine
37+
CONFIG(zeal_qtwebengine) {
38+
qtHaveModule(webenginewidgets): BROWSER_ENGINE = qtwebengine
39+
else: error("Qt WebEngine is not available.")
40+
} else {
41+
qtHaveModule(webkitwidgets): BROWSER_ENGINE = qtwebkit
42+
else: qtHaveModule(webenginewidgets): BROWSER_ENGINE = qtwebengine
43+
else: error("Zeal requires Qt WebEngine or Qt WebKit.")
44+
}
45+
46+
equals(BROWSER_ENGINE, qtwebengine) {
47+
message("Browser engine: Qt WebEngine.")
48+
QT += webenginewidgets
49+
DEFINES += USE_WEBENGINE
50+
} else {
51+
message("Browser engine: Qt WebKit.")
52+
QT += webkitwidgets
53+
DEFINES += USE_WEBKIT
54+
}
55+
56+
# Portable build
57+
CONFIG(zeal_portable) {
58+
message("Portable build: Yes.")
59+
DEFINES += PORTABLE_BUILD
60+
}
61+
62+
# Unix installation prefix
63+
unix:!macx {
64+
isEmpty(PREFIX): PREFIX = /usr
65+
}

qmake/library.pri

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include($$ZEAL_COMMON_PRI)
2+
include($$replace(_PRO_FILE_PWD_, ([^/]+$), \\1/\\1.pri))
3+
4+
TEMPLATE = lib
5+
CONFIG += staticlib
6+
7+
DESTDIR = $$BUILD_ROOT/.lib
8+
TARGET = $$ZEAL_LIB_NAME

src/3rdparty/qxtglobalshortcut/qxtglobalshortcut.pri

-20
This file was deleted.

src/app/app.pro

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
include($$ZEAL_COMMON_PRI)
2+
3+
TEMPLATE = app
4+
5+
QT += gui widgets sql concurrent
6+
7+
SOURCES += \
8+
main.cpp
9+
10+
RESOURCES += \
11+
resources/zeal.qrc
12+
13+
DESTDIR = $$BUILD_ROOT/bin
14+
15+
unix:!macx {
16+
TARGET = zeal
17+
target.path = $$PREFIX/bin
18+
19+
INSTALLS += target
20+
}
21+
22+
win32 {
23+
TARGET = zeal
24+
RC_ICONS = resources/zeal.ico
25+
}
26+
27+
macx {
28+
TARGET = Zeal
29+
ICON = resources/zeal.icns
30+
}
31+
32+
# FIXME: Hardcoded link line & cyclic dependencies.
33+
LIBS += -lCore -lUi -lRegistry -lUtil
34+
35+
# Depend on all dependencies of libraries
36+
for(lib_dir, $$list($$files($$SRC_ROOT/src/libs/*))) {
37+
!equals(lib_dir, $$SRC_ROOT/src/libs/libs.pro) {
38+
include($$lib_dir/$$basename(lib_dir).pri)
39+
PRE_TARGETDEPS += $$BUILD_ROOT/.lib/lib$${ZEAL_LIB_NAME}.a
40+
# LIBS += -l$$ZEAL_LIB_NAME
41+
}
42+
}

0 commit comments

Comments
 (0)