Commit graph

191 commits

Author SHA1 Message Date
Dimitri van Heesch
a57ed5eb70
Avoid hardcoded numbers for section levels 2024-03-17 21:10:15 +01:00
Dimitri van Heesch
62d9e0fa62
Various fixes to better support 6 levels of sections 2024-03-16 12:14:51 +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
cfcc2ed462 issue #10608 GitHub Flavored Markdown
Implementation of the GitHub Alerts by means of translating it to doxygen commands.
2024-02-01 14:44:48 +01:00
Dimitri van Heesch
ca615835cc
Refactoring: Avoid creating QCString from 0 pointer.
To prepare to migrate from QCString to std::string, 0 pointer initialization
should be avoided as this is undefined behavior for std::string.
2024-01-05 10:59:51 +01:00
Dimitri van Heesch
ac3e545de2
issue #10466 Markdown: inline statements in page headings are escaped and render as text 2023-12-09 16:38:05 +01:00
Dimitri van Heesch
7780d51498
issue #7688 Include markdown file in mainpage.dox 2023-11-21 21:38:57 +01:00
Dimitri van Heesch
19012e55ce
Improve snippet handling 2023-10-06 19:20:11 +02:00
Matt Trescott
fd4904d9a3
Merge branch 'master' into mtc/latex-group-hierarchy 2023-04-17 14:19:05 -04:00
Dimitri van Heesch
6aaa53e0a6
Refactoring: let create*Def() functions return std::unique_ptr instead of raw pointer 2023-04-15 23:26:57 +02:00
Matt Trescott
0bf554bbf8 Support hierarchical groups in RTF and use the same model for pages 2023-03-23 20:59:03 -04:00
Dimitri van Heesch
319ca1d33e
Merge branch 'feature/bug_snippet_trimleft' of https://github.com/albert-github/doxygen into albert-github-feature/bug_snippet_trimleft 2023-02-05 13:51:13 +01:00
Dimitri van Heesch
34bd5dcf67
Refactoring: use OutputCodeList for parsing code instead of CodeOutputInterface 2023-02-04 20:17:54 +01:00
albert-github
e377f53022 Remove common leading space from code snippets
Based on the question https://stackoverflow.com/questions/55955554/remove-leading-indentation-white-space-in-doxygen-snippet, the proposed pull request #9819 and the discussion there and alternative approach has been implemented .
- add the option `trimleft` to the command `\snippet`
- remove the common leading spaces after `detab`ing
2023-01-30 18:05:49 +01:00
Dimitri van Heesch
c425b7113e
Refactoring: move some functionality from generic to more specific files 2023-01-06 13:00:56 +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
b6c9da458b
Fixed a couple of threading issues when NUM_PROC_THREADS!=1 2022-12-02 20:17:36 +01:00
albert-github
5010c625dd Coverity structural dead code
Coverity reported "structural dead code" as with
```
Commit: 61caf5d22f [61caf5d]
Date: Thursday, October 27, 2022 8:11:43 PM
Improve handling of <details> and <summary> tags
```

these lines were not removed when the `    case DocStyleChange::Summary:` was removed.
2022-10-28 11:00:08 +02:00
Dimitri van Heesch
61caf5d22f
Improve handling of <details> and <summary> tags 2022-10-27 20:11:43 +02:00
albert-github
a4e67401cb issue #9016 Support collapsible sections in markdown
With #8890 the HTML details tag had been implemented as a style change though this give a problem when inside the details part there are multiple paragraphs.
The HTML details tag has been reimplementd as a so called `DocNode`, so that it is possible to have multiple paragraphs in a detailed section.
2022-05-12 16:44:32 +02:00
Dimitri van Heesch
4f2fc75754
Refactoring: implement visitors using std::visit and std::variant 2022-04-03 16:52:08 +02:00
albert-github
a07ca8b68a Replace static Config_Get... by just Config_get...
In the past the `Config...` functions did a string lookup and the `static` usage was for speed optimization purposes but nowadays this is not necessary anymore as the "lookup" is done through direct lookup in a `struct`. The `static` is counterproductive as this gives extra thread safe locks.
2022-03-03 11:55:16 +01:00
albert-github
3b1574faa1 Maintenance on translator functions
Removing unused translator functions and adjusting the usage of a.o. `trDesignUnitDocumentation();` in `trClassDocumentation()`
2022-02-04 13:41:39 +01:00
Dimitri van Heesch
fcadb69753
Replaced DocNode::kind() by dynamic_cast checks 2022-01-15 14:47:46 +01:00
Dimitri van Heesch
d9bc62b931
Refactoring: replace old style casts (part 2) 2022-01-04 16:12:07 +01:00
Dimitri van Heesch
a62b12f87c
Merge pull request #8856 from albert-github/feature/bug_copy_dotfile
Copy original dotfile to output directory in case of DOT_CLEANUP is not set
2021-12-26 14:50:33 +01:00
Dimitri van Heesch
bc29a23edc
Merge branch 'master' into feature/bug_htmltag_details 2021-12-22 13:52:58 +01:00
albert-github
a55934e83f Adding HTML tag <cite>
Adding the HTML `<cite>` tag as a style change tag.
2021-12-20 18:30:47 +01:00
albert-github
6c5b929550 issue #8590 XML: Issue with spacing around <programlisting>
In the JavaDoc documentation we see:
```
{@code  text}
    Equivalent to <code>{@literal}</code>.
```
and
```
{@literal  text}
    Displays text without interpreting the text as HTML markup or nested javadoc tags
```

These commands have been implemented by means of transforming them into doxygen commands.

This implementation also:
- the `{@literal ..}` command, #4953 JavaDoc @literal is not recognized (Origin: bugzilla #688386)
- #4949 JavaDoc @code makes a block element instead of inline element (Origin: bugzilla #688381)
- #4952 JavaDoc @code generates link (Origin: bugzilla #688385)
2021-12-07 13:57:21 +01:00
albert-github
58b39b6505 issue #8932 XML output: table caption doesn't have ID
The id of the caption was not only missing for Xml but also for rtf and docbook.

@doxygen Note: addon/doxmlparser/doxmlparser/compound.py has to be regenerated as well.
2021-12-03 13:29:22 +01:00
albert-github
04d662959c HTML tag details
A HTML tag `<details>` gives the possibility to specifies additional details that the user can open and close on demand.
See e.g.: https://www.w3schools.com/tags/tag_details.asp

Found indifferent Fossies pakages.
2021-11-11 18:31:41 +01:00
albert-github
21323cd16d Copy original dotfile to output directory in case of DOT_CLEANUP is not set
In case of a `\dot` image the dot file is created and when `DOT_CLEANUP` is not set the file is left in the output directory.
In case of the `\dotfile` and the `DOT_CLEANUP` is not set the file is not placed in the output directory as the image can be generated from the original file.
This is a bit inconsistent as we would have for some images a `dot` file and for others we wouldn't.

Similar reasoning for msc and dia
2021-10-26 11:27:18 +02:00
albert-github
c050f64978 Limit number of list levels in output
- In case of RTF the number of levels was already limited, now this is also done for LaTeX
- giving warning when maximum number of levels is exceeded.
2021-10-24 14:54:46 +02:00
Dimitri van Heesch
1d0eb05e5a
Removed global variables for RTF and Latex, and made some fixes 2021-10-23 20:08:02 +02:00
Dimitri van Heesch
ebc5a79528
Merge branch 'feature/bug_value_attrib' of https://github.com/albert-github/doxygen into albert-github-feature/bug_value_attrib 2021-10-23 12:08:30 +02:00
albert-github
5ca6f9ac61 Correcting labels
In case we have included sources (e.g. due to `INLINE_SOURCES`) and also the `SOURCE_BROWSER` enabled it is possible that we get double labels.
Also the calculation of labels in RTF was not done consistently, sometimes the path was striper and on other moments it wasn;t (especially seen in case CREATE_SUBDIRS
The problem was found using RTF / Docbook on the doxygen internal documentation (not standard) but will happen too in other projects
2021-10-10 18:20:25 +02:00
albert-github
efe54bb64a value attribute for <li> tag
With the `<li>` tag in HTML it is possible to have a `value=` attribute, this was only working for the HTML output, but has now been added to other output formats as well.
Also fixed small counting issue in case we have more than the supported number of levels.

(For docbook there is no solution yet)
2021-10-01 11:52:00 +02:00
albert-github
0ee3c37396 Problem with cite command (tests 12)
When running a link checker over the (x)html results of the doxygen tests 12 and subdirs enabled we get the error:
```
Processing      file:///.../testing/test_output_012/html/d0/de3/citelist.xhtml

List of broken links and other issues:
file:///..../testing/test_output_012/html/
 Lines: 70, 74
  Code: 200 (no message)
 To do: Some of the links to this resource point to broken URI fragments
        (such as index.html#fragment).
The following fragments need to be fixed:
        CITEREF_LeLe12                  Lines: 70, 74
```

Also looking at the results of  rtf and docbook output we see incorrect links.
With the rtf links there is a subsequent problem of not returning the right "label" (see util.h).
2021-06-07 15:04:25 +02:00
Dimitri van Heesch
99f9fc74ed
issue #8193: Better warning in case of error in dot / msc / dia image 2021-05-03 22:09:10 +02:00
Dimitri van Heesch
4f4688844b
Merge branch 'master' into feature/bug_code_lang 2021-05-02 11:20:20 +02:00
Dimitri van Heesch
22ce9444ca
Merge branch 'feature/bug_startuml' of https://github.com/albert-github/doxygen into albert-github-feature/bug_startuml 2021-05-01 14:05:36 +02:00
Dimitri van Heesch
4c93718fd5
Fixed typo, use QCString, and some minor reformating 2021-04-29 18:44:47 +02:00
albert-github
7fc02d88c1 issue #8522 Javadoc: type attribute of ordered lists not preserved (in xml)
The problem was a bit deeper, it was also valid for other output formats.
Implemented the `type` and `start` attribute for all relevant output types.
2021-04-29 13:59:33 +02:00
Dimitri van Heesch
592aaa4f17
Refactoring: remove implicit conversion from QCString to const char *
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()'
2021-04-22 19:34:13 +02:00
albert-github
afa248d63e Extending startuml with extra figure types
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.
2021-04-04 18:55:21 +02:00
Dimitri van Heesch
c48639744a
Refactoring: Add TextStream buffer to improve output writing performance
- direct use of std::stringstream and std::ostream gave a 30%
  drop in performance.
2021-03-28 14:25:48 +02:00
Dimitri van Heesch
310df91d23
Refactoring: replace QMIN/QMAX by std::min/std::max 2021-03-26 19:45:56 +01:00
Dimitri van Heesch
fa1897b188
Refactoring: replace QFile/FTextStream with fstream/stringstream 2021-03-18 21:57:40 +01:00
Dimitri van Heesch
3204a2206a
Refactoring: Replaced QFileInfo with FileInfo
- FileInfo is based on ghc::filesystem, a std::filesystem compatible
  implementation that does not require C++17.
2021-03-18 21:57:40 +01:00
Dimitri van Heesch
8c81723ca5
Fix size_t related compiler errors & warnings for win64 2021-01-22 23:08:34 +01:00