diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-08-23 06:50:58 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-10-01 15:00:44 +0200 |
commit | aa45ded698f25e8d3bc8eef621d727186fe18dd2 (patch) | |
tree | 705428909416c1e243d29db6cb909ce2b3f10eee /help3xsl/default.css | |
parent | 5b3e68e1ce0a3bc5893bb487c6d85ef4d3f9bfed (diff) |
redmine#2555 replace Help online Google search
This is the helpcontent2/ part of the patch.
Add xapian-omega search to online Help.
The patch replaces Google custom search with xapian-omega search.
A new build key is introduced.
--with-omindex=server : Localizes and adds the xapian result page
template, adds the xapian form to each Help page.
--with-omindex=noxap : do not localize the result template and
do not add a form in the Help page.
--with-omindex= will force Online Help build.
Default is noxap
NOTES:
- xapian-omega databases are built in the server.
- searches returns results only on localized Help pages, avoiding same
resulis in many languages.
TODO:
- Tweak the xapian-omega result page CSS and markup.
Change-Id: I3dc2b79c4111f61fd5fea01b1f8c95bfacab1e8f
Reviewed-on: https://gerrit.libreoffice.org/79366
Tested-by: Jenkins
Reviewed-by: Guilhem Moulin <guilhem@libreoffice.org>
Tested-by: Guilhem Moulin <guilhem@libreoffice.org>
Diffstat (limited to 'help3xsl/default.css')
-rw-r--r-- | help3xsl/default.css | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/help3xsl/default.css b/help3xsl/default.css index 50a67b752a..f71cb68850 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -577,7 +577,7 @@ li.disabled a { #search-bar::placeholder { font-style: italic; } -.google-donation { +.xapian-donation { border-top: 2px solid #148603; background-color: #FCFCFC; box-shadow: 0 2px 8px 0 rgba(0,0,0,.05); @@ -607,9 +607,15 @@ li.disabled a { font-size:1.2rem; text-align: center; } -.google-search { +/*.xapian-omega-search { max-width: 300px; margin: 40px auto 0 auto; +}*/ +.xapian-omega-search { + margin: 0; + /*position: absolute;*/ + top: 19px; + left: 360px; } .modules { border-bottom: 2px solid #f3f3f3; @@ -803,7 +809,7 @@ li.disabled a { .rightside { grid-area: rightside; } - .google-donation { + .xapian-donation { grid-area: google; position: sticky; top: 0px; @@ -857,14 +863,14 @@ li.disabled a { /* Use @supports to sneak these rules past IE */ @supports (grid-area: auto) { @media screen and (min-width: 960px) { - .google-donation { + .xapian-donation { display: flex; justify-content: space-between; align-items: center; background-color: #18A303; border-top: none; } - .google-search { + .xapian-omega-search { margin: 0; } .donation { |