summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Empty class definition.albert-github2021-05-131-1/+6
| | | | | | | | | | | | | | | In e.g. the HTML output of the doxygen documentation, chapter about formulas we see: ``` <p class=""> ``` this is a regressing due to commit: ``` Commit: bb89b8136ff835c8fbd9f313d58815c8f361dff9 [bb89b81] Date: Thursday, March 4, 2021 9:14:49 PM Refactoring: some cleanup and removed text direction logic ``` made test now so that no empty class can occur.
* issue #8193: Better warning in case of error in dot / msc / dia imageDimitri van Heesch2021-05-031-22/+21
|
* Merge branch 'master' into feature/bug_code_langDimitri van Heesch2021-05-021-258/+179
|\
| * Merge pull request #8509 from albert-github/feature/bug_formula_mjDimitri van Heesch2021-05-011-0/+5
| |\ | | | | | | Problems with some commands in MathJax
| | * Merge branch 'master' into feature/bug_formula_mjDimitri van Heesch2021-04-281-21/+21
| | |\
| | * | Problems with some commands in MathJaxalbert-github2021-04-201-0/+5
| | | | | | | | | | | | | | | | | | | | Especially with commands like `\f$\mbox{\LaTeX}\f$`MathJax has some problem as it is not, yet, able to use the commands `\raise` and `lower` inside the `\mbox` as used in this LaTeX command. Also switching in and out of math-mode doesn't work as the resulting code either doesn't work in MathJax or in LaTeX, hence the new command s `\f(` and `\f)`.
| * | | Merge branch 'feature/bug_startuml' of ↵Dimitri van Heesch2021-05-011-1/+1
| |\ \ \ | | |_|/ | |/| | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_startuml
| | * | Extending startuml with extra figure typesalbert-github2021-04-041-1/+1
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all diagrams can be created with the PlantUML `@startuml` command but need another PlantUML `@start...` command. This wil look like `@start<engine>` where currently supported are the following `<engine>`'s: `uml`, `bpm`, `wire`, `dot`, `ditaa`, `salt`, `math`, `latex`, `gantt`, `mindmap`, `wbs`, `yaml`, `creole`, `json` and `flow`. By default the `<engine>` is `uml`. The `<engine>` can be specified as an option. Explicitly the option variant has been chosen so we won't get an explosion of extra commands.
| * | Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-21/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the following in relation to string use - The implicit convert from 'QCString' to 'const char *' is removed - Strings parameters use 'const QCString &' as much as possible in favor over 'const char *' - 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())' - data() now always returns a valid C-string and not a 0-pointer. - when passing a string 's' to printf and related functions 'qPrint(s)' is used instead of 's.data()' - for empty string arguments 'QCString()' is used instead of '0' - The copy() operation has been removed - Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and 'qstrcmp(a,b)<0' has been replaced by 'a<b' - Parameters of string type that were default initialized with '= 0' are no initialized with '= QCString()'
| * Refactoring: Add TextStream buffer to improve output writing performanceDimitri van Heesch2021-03-281-5/+5
| | | | | | | | | | - direct use of std::stringstream and std::ostream gave a 30% drop in performance.
| * Refactoring: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-60/+60
| |
| * Refactoring: Replaced QFileInfo with FileInfoDimitri van Heesch2021-03-181-6/+7
| | | | | | | | | | - FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
| * Regression: Fix missing '>' for ol tag in the HTML output.Dimitri van Heesch2021-03-041-1/+1
| |
| * Refactoring: some cleanup and removed text direction logicDimitri van Heesch2021-03-041-52/+13
| |
| * Refactoring: modernize PlantumlManagerDimitri van Heesch2021-01-221-3/+3
| |
| * Refactoring: move Doc*Visitor::push/popEnabledDimitri van Heesch2021-01-221-38/+6
| | | | | | | | New class & name: DocVisitor::push/popHidden
| * Refactoring: modernize HtmlAttribListDimitri van Heesch2021-01-221-31/+18
| |
| * Refactoring: modernize docparser and clientsDimitri van Heesch2021-01-221-46/+45
| |
* | Use language name to get code coloringalbert-github2021-01-171-1/+1
|/ | | | | | | | | | | In a `\code` or `~~~` or ` ``` ` environment we can define the language of a code block by specifying an extension. In markdown we see quite often the language name as code block name (especially for `python`) One can specify it by means of an `EXTENSION_MAPPING` but this is quite unnatural as it it not an extension. - see to it that the extension (and thus `EXTENSION_MAPPING`) still has precedence - in case not a known extension, try the language names. Note: with docbook the explicit name usage was missing.
* issue #697: Test 32 reference to bell signal (XHTML, LaTeX)Dimitri van Heesch2020-11-281-11/+35
|
* XHML: div tag not possible as part of a p tag.albert-github2020-11-161-1/+1
| | | | | | | | | | | With test 76 we get a number of messages like: ``` element p: validity error : Element div is not declared in p list of possible children ``` this is a regression on issue #8169 / pull request #8170. The `<div>` tag is not allowed as child of a `<p>` tag and furthermore in the output when a number of items should be on one line this is not the case anymore. This all can be corrected by means of using the `<span>` tag instead of the `<div>` tag.
* issue @8169 "\emoji heavy_check_mark" produces ✓ instead of ✔️albert-github2020-11-111-1/+1
| | | | Create the possibility to change the used font for an emoji (the default is unchanged, but an example is given of how it is used at the site: https://unicode.org/emoji/charts/full-emoji-list.html).
* Fix for broken LaTeX output.Dimitri van Heesch2020-09-271-6/+6
| | | | | | Fixes error: "\begin{DoxyCodeInclude} on input line 93 ended by \end{DoxyCode}" while generating the LaTeX version of the manual
* Refactoring: prepare output generators for multi-threaded useDimitri van Heesch2020-09-271-145/+136
|
* Text show as formula when USE_MATHJAX=YES (#7697)albert-github2020-04-121-0/+10
| | | | | | | | When having a line of code like: ``` callback_check = re.compile(r'([^\(]*\(.*)(\* *)(\).*\(.*\))') ``` this is seen as an incomplete formula when using MathJax, the `\(` is seen as start of a MathJax formula. Replacing the backslash by the corresponding code `&#92;` didn't work as this is already translated by the bowser and still picked up by MathJax, so we need `&zwj;` to separate the backslash and the bracket without any spacing.
* issue #7672 Request: use <img> tags instead of <object> tags for SVG imagesalbert-github2020-03-291-19/+3
| | | | | In case of svg and inline images we have to follow a little bit another strategy. In markdown we also have to declare all markdown images to inline images (which is also consistent with the handling on github)
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-2/+2
|
* Forgot to remove some config files.Dimitri van Heesch2020-02-131-1/+1
| | | | Added development option to use inkscape to create SVG formulas.
* Improve formula handling and rendering.Dimitri van Heesch2020-02-121-4/+20
| | | | Also added option HTML_FORMULA_FORMAT to generate SVG files for images (requires pdf2svg)
* Adding commands `\rtfinclude`, `\docbookinclude`, `\maninclude` and ↵albert-github2020-01-091-0/+8
| | | | | | `\xmlinclude` Adding for consistency with `\*only`, `\htmlincclude` and `\latexinclude` the commands: `\rtfinclude`, `\docbookinclude`, `\maninclude` and `\xmlinclude`
* Merge branch 'feature/bug_html_s' of ↵Dimitri van Heesch2019-12-261-0/+3
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_html_s
| * Adding HTML s tag, XML corrections for other tagsalbert-github2019-08-161-0/+3
| | | | | | | | | | | | Adding the HTML `<s>` tag (https://www.w3schools.com/tags/tag_s.asp). Adding 's' and correcting 'inc' to 'ins' in compound.xsd
* | Minor fixesDimitri van Heesch2019-12-251-4/+3
| | | | | | | | | | Avoid code duplication by adding function addHtmlExtensionIfMissing() and avoid member shadowing by using 'm_' prefix for member variables
* | Merge branch 'feature/bug_335614' of ↵Dimitri van Heesch2019-12-251-7/+6
|\ \ | | | | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_335614
| * | Bug 335614 - HTML link incorrect when using tagfilealbert-github2019-09-301-7/+6
| | | | | | | | | | | | | | | - See to it that when an extension is already present this extension is used and not a second extension is added - let the tag file know what the original extension was.
* | | Merge branch 'master' into spellingDimitri van Heesch2019-12-231-13/+13
|\ \ \
| * | | Tests 31 for XHTML outputalbert-github2019-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running test 31 for XHTML output, we get the error: ``` not ok 1 - [031_image.dox]: test the \image command ------------------------------------- .../testing/test_output_031/html/index.xhtml:107: parser error : EntityRef: expecting ';' "image/svg+xml" data="https://img.shields.io/badge/docs-Doxygen-blue.svg?foo&bar ``` For the SVG output the `src` was not properly converted (see also the other formats a few lines lower).
| * | | Split language parser into "outline parser" and "code parser"Dimitri van Heesch2019-12-031-12/+12
| |/ /
* | | spelling: embeddingJosh Soref2019-11-121-3/+3
|/ /
* | Reduce the use of QString in favor of the more efficient QCStringDimitri van Heesch2019-09-211-8/+8
|/
* Problem with '<td nowrap>'albert-github2019-08-101-0/+6
| | | | | | In the docbook ouput this was shown with the attribute `nowrap>=''`, in HTML this empty tag was skipped. Normally a HTML attribute will have a value but in some cases it is possible without attribute and when this is the last attribute the `>` was accidently added to the attribute (in case of the value the `>` was already considered). Furthermore `In XHTML, attribute minimization is forbidden, and the nowrap attribute must be defined as <td nowrap="nowrap">.`, this is now handled for HTML and docbook as well.
* Merge branch 'feature/bug_endblock_msg' of ↵Dimitri van Heesch2019-08-041-1/+1
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_endblock_msg
| * Correction warning messagealbert-github2019-06-011-1/+1
| | | | | | | | Consistency
* | Merge branch 'feature/issue_6831' of ↵Dimitri van Heesch2019-08-041-2/+4
|\ \ | | | | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/issue_6831
| * | issue #6831 Failure to recognize class array with PHP in @varalbert-github2019-02-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | There are 2 different situations here: - @var, here a special change is necessary to check and handle whether or not we are in PHP (declinfo.*, doxygen.cpp) - @param - the type recognition for the PHP type has to be extended with the `[]` possibility and subsequently the `[]` part has to be handled separately from the 'datatype' (doctokinizer.l, docparser.*). - In the output we now can have multiple text strings resulting in a small change in handling of the separator between the data type (*docvisitor.*)
* | | Merge branch 'fetaure/bug_html_ins_del_tag' of ↵Dimitri van Heesch2019-08-031-0/+6
|\ \ \ | | | | | | | | | | | | https://github.com/albert-github/doxygen into albert-github-fetaure/bug_html_ins_del_tag
| * | | Adding HTML tags ins and delalbert-github2019-04-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github does not support the `<u>` tag for underlined text, in HTML there exists the tag `<ins>`. On https://www.w3schools.com/tags/tag_ins.asp is written: The `<ins>` tag defines a text that has been inserted into a document. Browsers will normally strike a line through deleted text and underline inserted text. Most browsers will display the `<ins>` element with the following default values: ``` ins { text-decoration: underline; } ``` analogous there exists the tag `<del>` (https://www.w3schools.com/tags/tag_del.asp): The `<del>` tag defines text that has been deleted from a document. Browsers will normally strike a line through deleted text and underline inserted text. Most browsers will display the `<del>` element with the following default values: ``` del { text-decoration: line-through; } ``` Definitions analogue to the underline and strike through tag the implementation for the other formats has been chosen.
* | | | Remove not used classalbert-github2019-07-071-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As per comment in `docvisitor.h`: ``` class DocCopy; // TODO: no longer generated => remove ```
* | | | issue #7033 Syntax highlighting doesn't work when calling \dontinclude from ↵albert-github2019-06-061-2/+4
| |_|/ |/| | | | | | | | | | | | | | Markdown files Don't use the file name extension of the including file but of the included file. In case of no included filename or no extension, fall back of the file extension of the including file.
* | | Replaced NULL by 0.Dimitri van Heesch2019-04-281-1/+1
| | |