mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-23 14:26:12 +03:00
registry: Support docset keywords provided in metadata (fixes #604)
This commit is contained in:
parent
6f322602f0
commit
7d48602bd0
@ -31,6 +31,7 @@
|
||||
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <QRegularExpression>
|
||||
@ -366,6 +367,11 @@ void Docset::loadMetadata()
|
||||
if (extra.contains(QStringLiteral("indexFilePath"))) {
|
||||
m_indexFileUrl = createPageUrl(extra[QStringLiteral("indexFilePath")].toString());
|
||||
}
|
||||
|
||||
if (extra.contains(QStringLiteral("keywords"))) {
|
||||
for (const QJsonValue &kw : extra[QStringLiteral("keywords")].toArray())
|
||||
m_keywords << kw.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user