1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 04:55:04 +03:00
Commit Graph

983 Commits

Author SHA1 Message Date
Nick Wellnhofer
b693905f9b doc: Remove xmlDllMain from documentation and version script
This is a Windows-only symbol.
2022-11-04 14:50:39 +01:00
Nick Wellnhofer
d48faf1a7d doc: Mention ${sysconfdir} in man pages
Fixes #395.
2022-11-04 14:35:34 +01:00
Nick Wellnhofer
3ab57bf475 doc: Document xmlcatalog --convert
Fixes #417.
2022-11-04 14:35:33 +01:00
Nick Wellnhofer
ae7096a173 doc: Document xmllint --nodict and --pedantic
Fixes #418.
2022-11-04 14:35:33 +01:00
Nick Wellnhofer
736487dffb doc: Fix indentation in source XML files 2022-11-04 14:35:33 +01:00
Nick Wellnhofer
fec85df14d xmllint: Document --quiet option 2022-09-06 19:33:32 +02:00
Nick Wellnhofer
caef85633e Move automata test to runtest.c 2022-09-02 18:33:36 +02:00
Nick Wellnhofer
1bd24d448a Fix compiler warning in examples 2022-09-02 18:33:36 +02:00
Nick Wellnhofer
1660331b28 Remove xmlErrMemory from symbols
This function was never publically declared.
2022-08-26 02:24:23 +02:00
Nick Wellnhofer
0f568c0b73 Consolidate private header files
Private functions were previously declared

- in header files in the root directory
- in public headers guarded with IN_LIBXML
- in libxml.h
- redundantly in source files that used them.

Consolidate all private header files in include/private.
2022-08-26 02:11:56 +02:00
Nick Wellnhofer
34a050cdee Move some HTML functions to correct header file 2022-08-24 16:44:39 +02:00
Nick Wellnhofer
ca3807d946 Mark more functions setting globals as deprecated 2022-08-24 16:16:09 +02:00
Nick Wellnhofer
e70b0c5e03 Rebuild documentation 2022-08-24 15:16:04 +02:00
Nick Wellnhofer
88637d428d Improve cross-references in API docs
Also cross-reference keywords followed by a period. This is still a hack
but catches quite a few more keywords.
2022-08-24 15:09:46 +02:00
Nick Wellnhofer
6cdaa192cd Rebuild documentation 2022-08-24 14:34:04 +02:00
Nick Wellnhofer
b33be8a04f Switch back to HTML output for API documentation 2022-08-24 14:29:50 +02:00
Nick Wellnhofer
0e49f8826a Mark most SAX1 functions as deprecated
No compiler warnings generated yet.
2022-08-24 14:07:57 +02:00
Nick Wellnhofer
9a82b94a94 Introduce xmlNewSAXParserCtxt and htmlNewSAXParserCtxt
Add API functions to create a parser context with a custom SAX handler
without having to mess with ctxt->sax manually.
2022-08-24 14:07:55 +02:00
Nick Wellnhofer
3513d76aa2 Improve documentation of globals
Document more global variables as deprecated. Some of the variables
don't generate deprecation warnings yet, but they shouldn't be used in
new code.
2022-08-24 02:27:50 +02:00
Nick Wellnhofer
f703ed694b Fix documentation parser
Reset comment right after adding to the index.
2022-08-24 01:29:49 +02:00
Nick Wellnhofer
bd6a427232 Rebuild API documentation 2022-08-24 01:02:22 +02:00
Nick Wellnhofer
4f3eb8a3b4 Support comments for global variables in documentation
This was never implemented.
2022-08-24 01:02:22 +02:00
Nick Wellnhofer
288c951eff Fix update call in apibuild.py
There are still a few places where try/except is used for branching.
This is a bad idea since it can hide errors like this one.
2022-08-24 00:51:52 +02:00
Nick Wellnhofer
92bb889be3 Don't index anything in DOC_DISABLE sections
Somewhat misleadingly, the DOC_DISABLE directive only disabled warnings.
Now we really stop the documentation generator from indexing.

This results in additional warnings for xmlThrDef* functions. This should
be fixed by documenting or deprecating them.
2022-08-24 00:51:52 +02:00
Nick Wellnhofer
d54f829ff7 Rebuild documentation 2022-08-19 11:28:49 +02:00
Nick Wellnhofer
18d79460ab Port doc/examples/index.py to Python 3
- Make sure that examples.xml is generated deterministically
- Sort includes by line number
2022-08-18 22:09:28 +02:00
Nick Wellnhofer
a7af2c99e3 Fix order of exports in libxml2-api.xml
The values passed to the `uniq` function are dictionary keys and should
already be unique. On older Python versions, this would reshuffle the
list after it had just been sorted.
2022-08-18 21:31:36 +02:00
Nick Wellnhofer
f82b56c6c9 Remove libxml2-refs.xml
The cross-reference was only used by the old website.
2022-08-18 21:31:36 +02:00
Nick Wellnhofer
d20df9d864 Cleanup files generated by test suite
Fixes make distcheck.
2022-08-17 13:22:20 +02:00
Nick Wellnhofer
4e494b9ccb Add uninstall target for examples
Fixes make distcheck.
2022-08-17 13:22:20 +02:00
Nick Wellnhofer
229fe8f165 Rebuild documentation 2022-08-17 11:41:23 +02:00
Nick Wellnhofer
24323d31c4 Don't autogenerate doc/examples/Makefile.am 2022-08-17 11:39:55 +02:00
Nick Wellnhofer
3e7b4f37aa Avoid calling xmlSetTreeDoc
Create text nodes with xmlNewDocText or set the document directly to
avoid xmlSetTreeDoc being called when the node is inserted.
2022-06-20 01:49:39 +02:00
Nick Wellnhofer
d9e1198c61 Redirect examples test output to /dev/null
Regressed in commit c61e1273.
2022-04-23 18:42:35 +02:00
Nick Wellnhofer
c61e12739f Fix warnings when testing --with-minimum build
There's no simple way to make the doc/examples tests handle different
configurations. But these tests aren't especially valuable, so remove
the result file checks.
2022-04-21 06:58:14 +02:00
Nick Wellnhofer
670701075b Add configuration flag for XPointer locations support
Add a new configuration flag that controls whether the outdated support
for XPointer locations (ranges and points) is enabled.

    --with-xptr-locs          # Autotools
    LIBXML2_WITH_XPTR_LOCS    # CMake

The latest spec for what it essentially an XPath extension seems to be
this working draft from 2002:

    https://www.w3.org/TR/xptr-xpointer/

The xpointer() scheme is listed as "being reviewed" in the XPointer
registry since at least 2006. libxml2 seems to be the only modern
software that tries to implement this spec, but the code has many bugs
and quality issues.

The flag defaults to "off" and support for this extensions has to be
requested explicitly. The relevant API functions are deprecated.
2022-04-21 02:41:58 +02:00
Nick Wellnhofer
9a0be0dc4d Regenerate api.xml and testapi.c 2022-04-21 01:58:59 +02:00
David Seifert
a62b31f43f
Use portable python shebangs
* In conda or Gentoo Prefix, we don't want to use the system python and
  instead rely on PATH lookup.
2022-04-06 19:57:30 +02:00
Nick Wellnhofer
e59aa6cab4 Move doc/examples tests to new test suite 2022-04-04 05:57:07 +02:00
Nick Wellnhofer
5ce893c0c4 Move regexp tests to runtest 2022-04-04 04:28:15 +02:00
Nick Wellnhofer
48b03c8479 Remove major parts of old test suite
Remove all the parts of the old test suite which are covered by
runtest.c for quite some time.

The following test programs are removed:

- testC14N
- testHTML
- testReader
- testRelax
- testSAX
- testSchemas
- testURI
- testXPath

This also removes a few results of unimportant tests only run by the old
test suite.
2022-04-04 04:14:55 +02:00
Nick Wellnhofer
bf2436acf5 Update xml2-config man page 2022-04-03 19:02:34 +02:00
Nick Wellnhofer
61b78b0aa6 Consolidate man pages
Move xml2-config.1 into doc directory. Remove outdated libxml.3.
2022-04-03 18:42:59 +02:00
Nick Wellnhofer
7016b0e099 Don't overlink executables
With very few exceptions, utilities and test programs don't require any
external libraries.

- xmllint and xmlcatalog need libreadline
- runtest and testThreads need pthreads
2022-04-03 14:08:43 +02:00
Nick Wellnhofer
e163764607 Rename xmlcatalog_man.xml 2022-04-02 16:42:33 +02:00
Nick Wellnhofer
207b10cfee Streamline documentation installation
Use Automake variables to install and distribute files. Remove
check-extra-dist.
2022-04-02 16:40:03 +02:00
Nick Wellnhofer
9576654162 Only install *.html and *.c example files 2022-03-29 16:24:19 +02:00
Nick Wellnhofer
456a0bf6cb Remove --with-html-dir option
Install documentation in $(docdir).
2022-03-29 16:24:19 +02:00
Nick Wellnhofer
7458096766 Rework documentation build system
Since several generated files are under version control, their
timestamps are essentially random and rebuilding documentation using
Makefile rules can't work reliably. Simply add a phony rebuild target
that regenerates the whole documentation and other files
unconditionally.

    make -C doc rebuild
2022-03-29 16:24:19 +02:00
Nick Wellnhofer
fb3588842a Remove old website 2022-03-29 16:24:19 +02:00