Commit graph

88 commits

Author SHA1 Message Date
albert-github
ac821f4345 Make path of examples independent of ..
Make the paths in the examples so they are not referring to `..` so the examples can also be run standalone inplace and use an inplace html / latex directory.
2022-11-12 13:28:11 +01:00
albert-github
bc1af18088 Making example configurations consistent
Makeing the example configuration files more consistent and easier maintainable by introducing a base configuration file with the common settings
2022-08-13 18:57:10 +02:00
albert-github
41d6c6e265 Setting HTML_COLORSTYLE for examples
The HTML_COLORSTYLE is set to the same style (i.e. LIGHT)  as the documentation.
For the chm output it is essential that this is LIGHT or DARK
2022-08-13 10:40:35 +02:00
Dimitri van Heesch
09a6b3e8dd
Restructure build rule to improve readability and remove duplication 2022-07-09 14:41:53 +02:00
Dimitri van Heesch
afd486d289
Merge branch 'feature/bug_depend_examples' of https://github.com/albert-github/doxygen into albert-github-feature/bug_depend_examples 2022-07-09 13:41:04 +02:00
Eisuke Kawashima
3b6a7091a8
python: fix indentation that is not a multiple of 4 2022-06-20 03:02:35 +09:00
albert-github
c4e30d6e6f Dependency between examples.
When building the `tag` example a prerequisite is that the `example` example has been build (as the `tag` example needs the `example.tag` file, so we have first generate the `example` example before building the `tag` example).
An explicit dependency structure for relations between examples has been defined.

(based on the problem as reported in the proposed patch:  delete TAGFILE for build error: #9387 )
2022-06-13 12:15:09 +02:00
albert-github
3a048d8d45 issue #7195 reserved identifier violation
Based in the example in the issue there are a few more files to be handled.
The file winbuild/iconv.h is explicitly not changed as this is an external file.

The change is based on:
- https://wiki.sei.cmu.edu/confluence/display/cplusplus/DCL51-CPP.+Do+not+declare+or+define+a+reserved+identifier#DCL51-CPP.Donotdeclareordefineareservedidentifier-NoncompliantCodeExample%28HeaderGuard%29
- https://en.wikipedia.org/wiki/Include_guard#Discussion
2021-07-12 11:29:53 +02:00
albert-github
8d45cd1895 Doxygen's own documentation doesn't build with recent LaTeX version
Due to a recent change in the new distribution of LaTeX in the handling of the "input" commands we get the error like:
```
Appendix D.
(../html/examples/group/latex/refman_doc.tex (../html/examples/group/latex//gro
up__group1.tex) [243]
! I can't write on file `../html/examples/group/latex//group__group2.aux'.
\@include ...mmediate \openout \@partaux "#1.aux"
                                                  \immediate \write \@partau...
l.3 \include{group__group2}

Please type another output file name
! Emergency stop.
\@include ...mmediate \openout \@partaux "#1.aux"
                                                  \immediate \write \@partau...
l.3 \include{group__group2}

*** (job aborted, file error in nonstop mode)
```

The problem is that now an intermediate file is written to `../html/examples/group/latex//group__group2.aux` that was written in the older distributions as `./group__group2.aux`, so in the current directory.
Writing to sub directories of the current directory is possible but it is not allowed (unless special, dangerous, options are used) to write to directories outside tgese directories.
(see also: https://tex.stackexchange.com/questions/575120/problem-writing-aux-file)

This fix writes the examples in subdirectories in the latex directory and not under the, parallel, html directory. This means also that there is a cleaner and clearer distinction between the html and latex output.
2020-12-19 13:03:47 +01:00
albert-github
32a358aa71 Present all warnings of first documentation sub-task when it fails
This is a follow-up on pull request #8199 (Have build of doxygen documentation fail on warnings.) and #8197 (issue #8023 Add option to exit with non-zero exit code on warnings even if WARN_AS_ERROR is OFF).
These were 2 independent situation, but as with #8197 incor[porated into doxygen it is no possible to extend #8199 to fail but at present all warnings of the first (sub-)task that fails.
2020-12-04 11:04:15 +01:00
albert-github
8160d8479b Have build of doxygen documentation fail on warnings.
Currently when running doxygen to create its documentation no error is given when a warning is generated, so the warning might go unnoticed.
By setting `WARN_AS_ERROR = YES` the generation will stop and when build on CI systems a build also fails
2020-11-24 11:05:55 +01:00
Anonymous Maarten
e7311a036e Allow building doxygen as a subproject 2020-09-16 19:36:33 +02:00
Dimitri van Heesch
48a7afc0ca
Remove support for TCL (code is too buggy and unmaintained, language not very popular) 2020-03-15 14:32:12 +01:00
albert-github
f06f427618 CMake and examples
Making more use of arrays in CMake to create the documentation of examples.
Renaming the template/templ example to have a more consistent naming with the other examples.
2020-01-12 13:04:57 +01:00
albert-github
4ca56cd603 Spelling corrections for examples directory
Spelling corrections as found by codespell and in #561.

The dbusxml.xml file is not part of the doxygen distribution anymore.
Other problems are fixed here.
2019-11-04 15:31:56 +01:00
albert-github
b0a9f75cc1 warning: Member func2InGroup1() (function) of class Memgrp_Test is not documented.
Correcting code due to the fact that `//@{` isn't seen by doxygen as block start (#7116).
Thi s problem is shown when generating the doxygen documentation.
2019-08-02 17:59:20 +02:00
Dimitri van Heesch
5c9d812083
Merge pull request #6957 from cfriedt/feature/cfriedt/6955/allow-javadoc-style-comment-blocks-with-a-doxyfile-variable
Allow Javadoc-style comment blocks with a Doxyfile variable
2019-05-21 19:52:23 +02:00
albert-github
6d1535c38f Bug 783759 - PERL_PATH config option: when is this needed? Still used?
As, more or less, mentioned in the bug report: in version 1.7.6.1 the PERL_PATH is still in use (instdox.cpp) but in version 1.8.0 it is not used anymore, so the parameter has been set to obsolete now.
2019-05-07 13:24:29 +02:00
Christopher Friedt
5d7fa9a584 Allow Javadoc-style comment blocks with a Doxyfile variable
Javadoc allows comments like this (which I refer to as "banner" comments)

/*****************
 *
 *****************/

but doxygen does not recognize them.

Instead, the doxygen manual says to do this

/*************//**
 *
 ****************/

which some users aren't even aware is required. It also behaves poorly with clang-format.

I'm proposing to add a Doxyfile boolean option JAVADOC_BANNER which will default to NO. When set to YES, it will consider the first and second comments above to be equivalent.

However, I don't believe that the JAVADOC_BANNER option should default to YES, as there are likely a number of projects who have used the former syntax with full expectation that it would *not* appear in their documentation.

At least having the JAVADOC_BANNER default to NO allows users to opt-in voluntarily by adding JAVADOC_BANNER = YES to their Doxyfile. If the consensus is to make it a default at a later time, first a warning can be added during build that should trigger users to modify their comment style, and then eventually the default could be set to JAVADOC_BANNER = YES, or the config option could be removed entirely and it would just always be enabled.
2019-05-02 21:16:17 -04:00
albert-github
dfdf432343 Correcting tag example and uniform calling all examples
- tag example corrected in respect to changed definition (a while ago) regarding the name of the Example example
- regenerating tag file (based on current doxygen version)
- made building of all examples uniform
2018-12-07 13:30:20 +01:00
albert-github
d42f1d1bbb Spelling of the word Javadoc
The current spelling (also for the older versions) is Javadoc.
Changed on all possible documentation visible places (external and internal).
2018-10-29 13:11:22 +01:00
Dimitri van Heesch
92aae074ff Changed mail address and removed obsolete files 2018-09-02 21:22:47 +02:00
Dimitri van Heesch
f10c9a42cd
Merge pull request #702 from albert-github/feature/bug_doxygen_docs_windows
Generating doxygen documentation on Windows (with MikTex)
2018-05-21 14:25:37 +02:00
albert-github
df9a47bd20 Generating doxygen documentation on Windows (with MikTex)
The current version of MikTex gives the error message:

Appendix Z.
(../html/examples/include/latex/refman_doc.tex ("C:\Program Files\MiKTeX 2.9\te
x\latex\alertmessage\example.tex"

! LaTeX Error: Can be used only in preamble.

This is due to a \page command with the name 'example', renaming the page solves this issue.
2018-04-11 13:51:33 +02:00
albert-github
f1274b44ad Documentation correction
- corrected tcl documentation in respect to use of param, has to be \param
- added to define documentation possibilities of \param and \return
2018-02-23 14:50:13 +01:00
Rolf Eike Beer
62e87408cb CMake: avoid if() around the whole contents of documentation CMakeLists.txt 2017-10-20 21:05:44 +02:00
Rolf Eike Beer
0d7be027a6 CMake: let file(MAKE_DIRECTORY) create all directories at once 2017-10-20 20:25:40 +02:00
albert-github
3a236fd01d Add examples to LaTeX / PDF doxygen manual
- doc/*.doc
  use include instead of verbinclude to make use of the code coloring in the examples

- examples/*.cfg
  some examples automatically display the code from the include file (*.h), for the examples it is better to show the comment as well.
2015-09-06 11:24:48 +02:00
albert-github
5e11f885ee Add examples to LaTeX / PDF doxygen manual
Add the examples a shown in the HTML / CHM documentation also to the LaTeX / PDF documentation.

- doc/*.doc
  added latexonly part referencing the example in the appendix

- doc/Doxyfile
  silence the generation of the manual

- doc/doxygen_manual.tex
  add the examples as appendices to the manual, by means of the subinputfrom command the parts included by refman_doc are taken from the specified directory

- examples/*.cfg
  adjusted configuration files ("Doxyfile") to generate LaTeX output

- examples/*.h and examples/*.cpp
  make names unique so no conflicts occur when adding all the examples

- examples/CMakeLists.txt
  add generation of the file to be included (see strip_example.py), adjust dependencies and add the refman_doc.tex as output target

- examples/input_test.cpp
  file added (adjusted copy of example_test.cpp) to overcome name clashes (example_test.cpp would have been included twice)

- examples/strip_example.py
  we are only interested in the documentation files as included in the different examples, so we get those commands. The preamble will be handled by the doxygen_manual.tex and we have already an index in the doxygen_manual.tex so we don't need a separate one from each example.

The module / diagram documentation is dependent on the presence of 'dot', this is reflected in the docblocks.doc, CMakeLists.txt and doxygen_manual.tex
2015-09-05 18:42:15 +02:00
Adrian Negreanu
ec5fde6913 docs: add examples as a dependency of docs 2015-08-03 01:24:46 +03:00
Dimitri van Heesch
f63d9ed958 Various minor changes
- made copying doc and example files a target
- fixed bug using temparary in the wizard.
- Added faq question about extension mapping
2015-06-20 23:51:05 +02:00
Dimitri van Heesch
f415b624a6 Fix for building diagram example conditionally 2015-06-13 16:47:33 +02:00
Dimitri van Heesch
e775357ae7 Added cmake rules to build the examples that are also part of the manual 2015-06-13 13:18:49 +02:00
Dimitri van Heesch
51ee91560a Added cmake build targets for examples 2015-06-08 22:30:00 +02:00
Dimitri van Heesch
d49604f814 Prevent example.tag from being regenerated 2015-01-04 13:57:44 +01:00
albert-github
4b51e6113f Documentation corrections
Corrected some spelling errors and added / correceted some references
2014-01-12 13:41:04 +01:00
Dimitri van Heesch
f20c2bab01 Fixed regression in argument matching for the template example 2013-12-24 17:10:05 +01:00
Dimitri van Heesch
deaa34e0c1 Release-1.8.3.1-20130324 2013-03-24 11:51:51 +00:00
Dimitri van Heesch
17ee30b327 Release-1.8.0-20120408 2012-04-08 14:16:03 +00:00
Dimitri van Heesch
34d4ace6d4 Release-1.7.6.1-20120220 2012-02-20 21:09:54 +00:00
Dimitri van Heesch
fd8b446f8a Release-1.7.6.1-20120110 2012-01-10 21:15:46 +00:00
Dimitri van Heesch
b625258a2f Release-1.7.6.1 2011-12-10 20:30:14 +00:00
Dimitri van Heesch
720d85edd0 Release-1.7.5.1-20111117 2011-11-17 21:22:48 +00:00
Dimitri van Heesch
5c424c5537 Release-1.7.5.1 2011-08-21 08:11:15 +00:00
Dimitri van Heesch
9be758009e Release-1.7.5 2011-08-14 13:56:38 +00:00
Dimitri van Heesch
de297f6d77 Release-1.7.4-20110606 2011-06-06 19:49:53 +00:00
Dimitri van Heesch
145b564516 Release-1.7.4 2011-03-28 14:10:48 +00:00
Dimitri van Heesch
c37c862667 Release-1.7.1 2010-06-25 11:31:51 +00:00
Dimitri van Heesch
1688ab7ec2 Release-1.6.0 2009-08-20 10:04:05 +00:00
Dimitri van Heesch
142b4807d2 Release-1.5.9-20090720 2009-07-20 20:05:52 +00:00