560 Commits

Author SHA1 Message Date
Andrey Semashev
03120084bb Pass through contents of parblock in Doxygen.
\parblock can be used to group multiple paragraps under a block command
that expects a single paragraph as argument (e.g. \returns). So just
forward the contents of the parblock in the current context.
2024-06-29 21:13:54 +03:00
Andrey Semashev
1198d50fd9 Add support for remarks and important blocks in Doxygen.
Convert \remark commands to <note> in BoostBook. Change \attention to
<important>, and also convert \important to <important>.
2024-06-29 19:57:46 +03:00
Andrey Semashev
cdb1643530 Updated Doxygen test with the added header id. 2024-06-29 17:56:14 +03:00
Andrey Semashev
c701793300 Add anchors for enum values, when there are no detailed descriptions for them.
This fixes missing linkends to the enum values that are only listed in
synopsys.
2024-06-29 17:43:32 +03:00
Andrey Semashev
f4f0e13720 Added id passthrough for headers. 2024-06-29 17:22:37 +03:00
Andrey Semashev
b1fef2e5b9 Support for Doxygen refs.
Produce id attributes for all entities generated by Doxygen. For refs,
generate link tags referencing those ids. Preface the ids with "doxygen."
prefix to avoid potential clashes with ids that may be present in other
places of the resulting DocBook document. Also add the document refid to
the prefix to avoid potential clashes between multiple Doxygen-generated
documents with SHORT_NAMES=YES.

In order to pass through the generated ids without modification (to keep
links working in the output), change generate.id template so that it
returns the value of the id attribute, if one is present, instead of
generating a new id.

The end result is that all references generated by Doxygen (to methods,
classes, variables and so on) propagate to the final HTML output instead
of being stripped during Doxygen to BoostBook translation.
2024-06-29 15:08:43 +03:00
Andrey Semashev
8883b9b318 Removed Travis CI config as Travis CI is no longer active. 2024-05-15 02:47:04 +03:00
Andrey Semashev
dbbbc2df9e GHA CI fixes. 2024-05-15 02:46:24 +03:00
Andrey Semashev
737ae951e8 GHA CI fixes. 2024-05-15 02:18:09 +03:00
Andrey Semashev
90f130432e Added GitHub Actions CI config. 2024-05-15 02:08:22 +03:00
Andrey Semashev
2c95662e24 Updated run-tests.py for compatibility with Python 3.x. 2024-05-15 01:35:06 +03:00
Andrey Semashev
fe6f1a818f Compare formatted XML files in the Doxygen test.
Comparing formatted XML files makes the comparison less sensitive
to whitespace and newline differences between XML documents, and
also makes the subsequent diff more informative, if any differences
are found.
2024-05-14 03:27:40 +03:00
Andrey Semashev
5bdebb90a4 Moved .gitignore files to the nested directories. 2024-05-13 23:46:49 +03:00
Andrey Semashev
7279183c79 Updated autodoc.gold in the Doxygen test according to changes in PR #26.
Constructors, destructors and copy-assignment tags were moved under the
respective method-group tags. The rest are newline changes.
2024-05-13 23:41:00 +03:00
Andrey Semashev
4efc9a09e1 Updated reference.dtdxml according to DTD changes made in PR #26. 2024-05-13 18:17:55 +03:00
Andrey Semashev
122bf604c6 Added .gitignore. 2024-05-13 18:16:32 +03:00
Andrey Semashev
89c08751f3 Removed auto-generated reference.xml. 2024-05-13 18:15:02 +03:00
Andrey Semashev
7b52b318f1
Merge pull request #9 from Kojoley/autogenerate-reference.xml
Added reference.xml auto-generation from dtdxml
2024-05-13 18:11:56 +03:00
Andrey Semashev
c930c40140
Merge pull request #26 from Lastique/feature/fix_missing_grouped_members
Fix missing members and functions in named groups in Doxygen output
2024-05-13 17:23:31 +03:00
Andrey Semashev
61ca6ef7d9 Fix missing members and functions in named groups in Doxygen output.
Previously, class members and free functions in sectiondef with
kind="user-defined" would be stripped from HTML output, making function
grouping effectively non-functional. This commit fixes this by converting
such sectiondefs to either method-group or free-function-group in BoostBook
output, depending on whether the grouping is within a class or namespace.

Additionally, previously constructors, destructors and assignment operators
were not allowed to be inside method-groups, which were another reason for
these members to be stripped from the output. This commit allows these members
in member-groups and modifies DTD accordingly.

Also, this fixes duplicate constructors, destructors and assignment operators
generated after the sections for public, private and protected member
functions. This was due to applying XSL templates twice - once when generating
method-group, and then after the method-group.
2024-05-13 15:55:20 +03:00
Andrey Semashev
0b665ad198
Merge pull request #27 from Lastique/feature/disable_params_sorting
Support disabling sorting function and template parameters
2024-05-13 15:36:09 +03:00
Andrey Semashev
d5ac8b1cdd
Merge pull request #24 from Lastique/feature/fix_doxygen_enum_initializers
Fix duplicate equal signs in Doxygen-generated enum value initializers
2024-05-13 15:31:28 +03:00
Andrey Semashev
44d887c5f2 Support disabling sorting function and template parameters.
This commit adds a new XSL parameter boost.sort.params, which allows
users to disable alphabetical sorting of the function and template
parameters in detailed descriptions of functions and classes. By
default, sorting is enabled, which maintains the previous behavior.

Sorting is disabled when the parameter is set to 0. In this case,
parameters are listed in the order they are listed in the BoostBook
documentation, which is normally the same as they are listed in the
function signature or template preamble.
2024-05-13 03:45:32 +03:00
Andrey Semashev
5c1e683568 Fix duplicate equal signs in Doxygen-generated enum value initializers.
Doxygen 1.9.1 generates enum <initializer> tags with text starting with
an equal sign ('=') followed by the enum value initializer. This sign
was copied under the BoostBook <default> tag, and BoostBook styleseets
add an equal sign of their own when converting this tag to HTML. This
resulted in duplicate equal signs in the HTML output.

This commit strips the leading equal sign from the initializer before
putting it into the <default> tag.
2024-05-04 13:19:03 +03:00
Glen Fernandes
faacd1f26a
Merge pull request #23 from Lastique/feature/fix_noexcept_dtors
Fix missing noexcept markup for destructors
boost-1.85.0.beta1 boost-1.85.0
2023-12-21 07:35:05 -05:00
Andrey Semashev
3c13dd7031 Fix missing noexcept markup for destructors.
This fixes missing noexcept specifiers for destructors in a Doxygen-generated
documentation.
2023-12-02 23:59:23 +03:00
Glen Fernandes
46c7732d06 Merge branch 'master' into develop boost-1.82.0 boost-1.84.0.beta1 boost-1.84.0 boost-1.83.0.beta1 boost-1.83.0 boost-1.82.0.beta1 2023-02-27 09:20:20 -05:00
Glen Fernandes
8becc1be28
Merge pull request #7 from vprus/meta-viewport
Generate meta viewport element.
2023-02-26 09:28:51 -05:00
Glen Fernandes
53b9e5fe04
Merge pull request #6 from vprus/copyright-footer
Make copyright footer generation simpler and more flexible.
2023-02-26 09:28:26 -05:00
Glen Fernandes
2fccdae6be
Merge pull request #21 from Lastique/feature/fix_noexcept_if_trailing_paren
Fix double trailing parenthesis after `noexcept(cond)`
2023-02-26 08:06:31 -05:00
Andrey Semashev
9f7d6a21dc Fix redundant trailing parenthesis after noexcept with condition.
Fixes https://github.com/boostorg/boostbook/issues/20.
2023-02-26 04:45:30 +03:00
Andrey Semashev
61589d85e1 Removed executable permission from xsl file. 2023-02-26 04:45:08 +03:00
Glen Fernandes
8ea26491df
Merge pull request #15 from evanlenz/issue-14-does-not-work-with-libxslt-1.1.35
Remove template rule conflict for text nodes
2023-02-10 17:20:45 -05:00
Evan Lenz
d87190a3b1 Remove template rule conflict for text nodes
fix #14
2022-08-23 10:37:15 -07:00
Glen Fernandes
a6701f5d27 Merge branch 'develop' boost-1.80.0 boost-1.81.0.beta1 boost-1.81.0 boost-1.80.0.beta1 2022-05-13 22:12:22 -04:00
Glen Fernandes
882c17b898
Merge pull request #13 from evanlenz/issue12-boostbook-outputs-h7-headings
Disallow h7 headings in output (force-limit to h6)
2022-02-28 17:26:36 -05:00
Evan Lenz
116c7b0f23 Disallow h7 headings in output (force-limit to h6)
fix #12
2022-02-05 12:45:22 -08:00
Glen Fernandes
87d1168f84 Merge branch 'develop' boost-1.73.0 boost-1.79.0.beta1 boost-1.79.0 boost-1.78.0.beta1 boost-1.78.0 boost-1.77.0.beta1 boost-1.77.0 boost-1.76.0.beta1 boost-1.76.0 boost-1.75.0.beta1 boost-1.75.0 boost-1.74.0.beta1 boost-1.74.0 2020-04-12 11:36:53 -04:00
Glen Fernandes
aa3d1d676c Switch encoding to UTF-8 2020-04-10 17:41:32 -04:00
Nikita Kniazev
2ba31e6c17 Added reference.xml auto-generation from dtdxml
This should have been an established process, but for some reason it was
edited manually after initial generation.

After the change `reference.xml` can be removed from the repository, but
I left it to show that the things are working fine and the difference from
an auto-generated one are simple divergences due to manual changing
(not updated `reference.xml` with added `<purpose>` elements in 38017203f69cec3aa5f402fe8306eb1deff67b9a). Also removed the date numbers
from `dtdxml` as they were never in `xml` and seems to have no actual use,
but brings a lot of noise to `xml` differences after added auto-generation.
2019-02-18 01:39:22 +03:00
Nikita Kniazev
6db0b9e93a dtd2boostbook.xsl: Added copyright to the output
Backport manual `reference.xml` edit 7484e56d455ef01a5f82590f7b02532158dc141d
2019-02-18 01:17:39 +03:00
Nikita Kniazev
c327b26a61 dtd2boostbook.xsl: Use chapter element instead of section
Backport manual `reference.xml` edit 895142ea8db9501e32c5ae69f38b5644997a0c50
2019-02-18 01:16:21 +03:00
Daniel James
c42075541b Option to add viewpost meta tag for mobile devices 2017-11-04 01:53:56 +00:00
Daniel James
2f9b23ea4d Merge branch 'develop' boost-1.73.0.beta1 boost-1.66.0 boost-1.72.0.beta1 boost-1.72.0 boost-1.71.0.beta1 boost-1.71.0 boost-1.70.0.beta1 boost-1.70.0 boost-1.69.0-beta1 boost-1.69.0 boost-1.68.0 boost-1.67.0 2017-11-03 20:35:37 +00:00
Daniel James
7d32695586 Test case for deeply nested macro
In this case the id is so long that there's nothing left of the macro name.
2017-10-30 17:09:29 +00:00
Daniel James
d2b0125d71 Truncate macro ids, as for other symbols 2017-10-30 16:52:52 +00:00
Daniel James
34ad10b7dc Better consistent macro ids 2017-10-29 12:52:54 +00:00
Daniel James
edb40425d3 Simple macro tests 2017-10-29 12:51:48 +00:00
Daniel James
ce2f9fd8ac Tweak some of the consistent ids in boostbook
They use '.' as a separator which results in paths like
'as_fe_id-1/3/2/6/2/7/1/1/1.html'.
2017-10-29 12:45:11 +00:00
Daniel James
c7208c85f7 Run tests with and without consistent ids 2017-10-29 12:40:07 +00:00