Commit graph

36 commits

Author SHA1 Message Date
Dimitri van Heesch
a5afaadb16
Merge pull request #10681 from albert-github/feature/bug_search_uppercase
Prevent automatic upper case conversion in doxygen internal search
2024-02-23 19:05:14 +01:00
albert-github
67a84c94d4 Prevent automatic upper case conversion in doxygen internal search
When having the simple file:
```
\mainpage The main page

\page pg1 The first page

\section sect_1_1 first section first page

\section sect_1_2 second section first page

\page pg2 The second page

\section sect_2_1 first section second page

\section sect_2_2 second section second page
```
and doing a "normal" internal doxygen search for the word `page` we get:
```
Page
page
```
though all the words `page` are in lowercase in the text, the automatic conversion to uppercase should not take place.
2024-02-22 18:35:17 +01:00
albert-github
d1252c530d Missing items in doxygen internal search
When having the simple file:
```
\mainpage The main page

\page pg1 The first page

\section sect_1_1 first section first page

\section sect_1_2 second section first page

\page pg2 The second page

\section sect_2_1 first section second page

\section sect_2_2 second section second page
```
and doing a "normal" internal doxygen search for the word `second` we get a.o.
```
first section second page
The second page
second section first page
second section second page
```
but when searching for `second page` we get
```
first section second page
The second page
```
so we are missing the reference to
```
second section second page
```
this is due to the filtering of the words in the string and omitting double words.
2024-02-22 18:19:59 +01:00
albert-github
2447842733 Refactoring: Fixing warnings like: Use the "nullptr" literal (2)
Fixing sonar cloud warnings like: Use the "nullptr" literal
2024-02-19 20:33:16 +01:00
albert-github
6b70d803fe Fixing warnings like: Use the "nullptr" literal
Fixing sonar cloud warnings like: `Use the "nullptr" literal`
2023-12-26 12:50:05 +01:00
Dimitri van Heesch
97618c3a50
Refactoring: QCString::resize
Make QCString behavior more similar to std::string
- Replace resize(0) by clear()
- Replace resize(n+1) by resize(n)
- Replace truncate(n) by resize(n)
2023-12-25 14:32:24 +01:00
Antony Polukhin
a6bf394b39 Do not lowercase search titles for code and capitalize on page terms 2023-12-16 13:27:36 +03:00
ivan770
6540585b19 Fix non-reproducible search index 2023-11-26 09:39:03 -05:00
Dimitri van Heesch
92934836e8
issue #10417 Search bar not working 2023-11-25 15:14:18 +01:00
Dimitri van Heesch
847e2f02e7
Added option HTML_PROJECT_COOKIE
Doxygen stores a couple of settings persistently in the browser (via e.g. cookies).
By default these settings apply to all HTML pages generated by doxygen across all projects.
The HTML_PROJECT_COOKIE tag can be used to store the settings under a project specific
key, such that the user preferences will be stored separately.
2023-11-01 22:12:47 +01:00
albert-github
c052af0acb Remove Windows compilation warnings
Removing warnings on Windows of the form:
```
warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
```
(see also the GitHub actions)
2023-08-21 11:40:54 +02:00
Antony Polukhin
24be884373
Fix a typo
With the proposed change the JS search is able to find `Foo (bar/qwe) ` by `bar` and `qwe`
2023-08-18 20:00:54 +03:00
Dimitri van Heesch
42391fce46
Various performance improvements + added section titles 2023-08-18 09:52:09 +02:00
Dimitri van Heesch
2b387a166c
Merge branch 'master' into fulltext_search 2023-08-16 16:58:53 +02:00
Dimitri van Heesch
6d80fc7e5d
Add support for C++20 modules 2023-08-16 16:52:56 +02:00
Antony Polukhin
8be674aff5 deal with % sign in titles in search results 2023-08-08 16:46:06 +03:00
Antony Polukhin
60ef67e213 slightly optimize the search index by avoiding the same definitions when the title contains the same word more than once 2023-08-08 13:22:44 +03:00
Antony Polukhin
0804cea54e do not touch % for now 2023-08-08 13:15:26 +03:00
Antony Polukhin
45d2a9c08e properly handle % and allow multiword search 2023-08-08 13:11:48 +03:00
Antony Polukhin
44989b7697 filter out words starting with % 2023-08-08 12:56:03 +03:00
Antony Polukhin
e4dfaf1ebd naming fixes 2023-08-07 20:26:45 +03:00
Antony Polukhin
47b26a1c39 fix multithreaded run 2023-08-07 20:21:26 +03:00
Antony Polukhin
f4b0893aa5 fulltext search 2023-08-07 18:45:40 +03:00
Dimitri van Heesch
ca65fd0bbb
Refactoring: make use of C++17 structured bindings 2023-05-18 13:37:08 +02:00
Dimitri van Heesch
dbe005ce5d
Refactoring: add multi-thread support to writeJavaScriptSearchIndex() 2023-03-12 20:04:28 +01:00
Dimitri van Heesch
2f22d9f542
Refactoring: optimize addHtmlExtensionIfMissing() 2023-03-05 13:02:28 +01:00
Dimitri van Heesch
7a8f5a2e48
Merge pull request #9818 from albert-github/feature/issue_9816
issue #9816 Missing search files in QCH content
2023-02-13 20:22:04 +01:00
Dimitri van Heesch
debe26c561
Variables were shown with () in the client side search results 2023-02-05 16:33:03 +01:00
albert-github
08b52217b7 issue #9816 Missing search files in QCH content
It is a bit unusual to use `qPrint` here
2023-01-26 14:12:06 +01:00
albert-github
3795d355cc #issue #9816 Missing search files in QCH content
- adding missing `*.js` files
2023-01-26 13:50:30 +01:00
Dimitri van Heesch
e002e293d9
issue #1166: Read error when multi-byte characters in file path name (Origin: bugzilla #145186) 2022-12-25 20:10:54 +01:00
Dimitri van Heesch
50871a4cd6
Search client side results window had wrong colors when color style was TOGGLE
- No longer use iframe for the result page but directly load the
  javascript files.
- Some visual tweaks
2022-08-21 20:23:59 +02:00
Dimitri van Heesch
8b7822cb67
issue #8404: Dark theme
Official support for dark mode.
- Darkmode can be controlled via the new HTML_DARKMODE option.
  - LIGHT: always produce light output
  - DARK: always preoduce dark output
  - AUTO_LIGHT: produce light output unless the user preference says
    otherwise (new default)
  - AUTO_DARK: produce dark outut unless the user preference says
    otherwise
  - TOGGLE: allow the user to toggle between light and dark mode at run
    time.
- Cleaned up the existing style sheets a bit
- Restructured the formula generator code and made it suitable for darkmode
  formulas
- Changed the colors of the dot generated images a bit so they also look
  ok on a black background.
- The transparency options for formulas and dot images have become
  obsolete.
2022-08-10 21:36:08 +02:00
Dimitri van Heesch
f6aacfe179
Refactoring: use std::variant for Indices
- Split of IndexIntf and IndexList into indexlist.h
- Used a vector of std::variant to store the indices to avoid virtual
  dispatch (should allow for better compiler optimisation)
- Used dispatch_call helper to implement efficient foreach construct on the index list
  (optimized version std::visit that uses switch on the
   variant's index() instead of a jump table).
- replaced raw FTVNode pointer by std::shared_ptr.
- improve encapsulation of EclipseHelp object by moving details to the
  implementation file
- also used the dispatch_call helper for searchindex which had a
  hardcoded switch per method
2022-05-19 21:59:43 +02:00
albert-github
de8648aa31 issue #9284 Clicking external link within search results with EXT_LINKS_IN_WINDOW=YES opens the link in the search results box
Analogous to the normal page handling (see `util.cpp`, function `externalLinkTarget`) in case of `EXT_LINKS_IN_WINDOW` is set switch relevant search output to new window.
2022-04-20 15:04:55 +02:00
Dimitri van Heesch
3f2fb8942e
Split of javascript search index into separate files 2022-03-10 19:44:52 +01:00