29 Commits

Author SHA1 Message Date
Daniel Larraz
5b85cad4ee doc: Add missing references to c examples (#12089)
This PR also adds a `:skip:` directive to suppress missing-example
warnings for languages without an equivalent version.
2025-08-23 22:09:10 +00:00
Daniel Larraz
00c54de893 doc: Fix invalid escape sequences in Sphinx config files (#12066)
This PR addresses the `SyntaxWarning: invalid escape sequence` warnings
reported by recent versions of Python.
2025-08-13 09:53:37 +00:00
Aina Niemetz
91201c459e Fix docs in preparation for upcoming release. (#11983) 2025-06-17 13:22:02 +00:00
Aina Niemetz
0647c4c107 Update copyright headers. (#11561)
Co-authored-by: Daniel Larraz <daniel-larraz@users.noreply.github.com>
2025-01-23 17:54:20 +00:00
Aina Niemetz
55b0458eac docs: cpp: Add missing entries and some fixes. (#11035) 2024-07-12 16:17:06 +00:00
Andres Noetzli
ad425c0bc9 [Docs] Update EnumDocumenter for newer Sphinx (#8914)
The `no_docstring` argument of
`sphinx.ext.autodoc.Documenter.add_content()` has been
[deprecated](https://www.sphinx-doc.org/en/master/changes.html) since
Sphinx 3.4.0 (released in December 2020). It seems that newer Sphinx
versions have removed that argument, which breaks our `EnumDocumenter`
(e.g., see the following
[example](https://github.com/cvc5/cvc5/runs/7081097179?check_suite_focus=true)).
This commit updates our use of
`sphinx.ext.autodoc.Documenter.add_content()`.
2022-06-27 21:57:05 +00:00
Aina Niemetz
4b86c47858 api: Various fixes in Python documentation. (#8554) 2022-04-04 19:37:51 +00:00
Andrew Reynolds
4eac250cf2 Change tuple tokens and update datatypes theory ref (#8420)
Changes tuple_ to tuple. for consistency.

Also fixes the lexer list for smt2 and updates the datatypes theory reference with missing content.
2022-03-30 04:39:29 +00:00
Aina Niemetz
c321323278 api: Refactor kinds documentation. (#8384) 2022-03-25 03:13:06 +00:00
Gereon Kremer
b08ef33d5a Refactor documentation (#8288)
This PR moves some stuff around in our documentation. Most notably, it moves some sections out of the "Binary documentation" to become their own top-level sections. While doing so, it refactors a few things in options and statistics to be more agnostic to the way cvc5 is used. To allow for command-output being used in regular (not auto-generated) documentation, we add a new extension that takes care of injecting the build folder into a new wrapper run-command.
2022-03-21 21:19:11 +00:00
mudathirmahgoub
a8623b22f6 Update datatypes.rst (#8009) 2022-02-02 16:59:28 +00:00
Aina Niemetz
ac0c6dea9b api: Fix formatting of docs for Term::getSetValue(). (#7914) 2022-01-11 16:25:00 +00:00
Gereon Kremer
0b7c568795 Improve docs extension for examples (#7900)
We recently added automatic download links for examples in our documentation, however they assumed everything to live inside the main cvc5 repo while, e.g., the examples for the z3py compat API do not. While #7896 provided a very simple fix, it mixes different concerns (rendering of tabs vs. locating the input files, though they should coincide right now).
This PR takes a more fundamental approach by extending the current pattern mechanism to allow for explicit url specification.

Closes #7896.
2022-01-07 22:25:38 +00:00
Gereon Kremer
53e274229b Add download link for examples in documentation (#7836)
This PR adds a download link to all examples in the documentation
(that are included via the examples extension). I think we should do
this, as we have text like "download the example here" at several
places already...
2022-01-03 21:25:00 +00:00
Aina Niemetz
eb3b04319a api: Fix smt-lib code blocks and math in C++ docs. (#7795) 2021-12-15 15:09:51 -08:00
Gereon Kremer
881464ade1 Turn kinds in python API into a proper Enum (#7686)
This PR does multiple things:
- the kinds are changed from custom objects to a proper enum.Enum class
  (including according changes to the cython code and the kind generation scripts)
- all examples and tests are modified to account for the change how to use kinds
  (Kind instead of kinds)
- add docstrings to the kind enum values
- add a custom documenter that properly renders enums via autodoc
- extend doxygen setup so that we can write comments as rst (allowing us to copy
  the documentation for kinds from the cpp api to the other apis)
2021-12-08 04:16:03 +00:00
Gereon Kremer
bcabf70ae1 Extend docs example extension (#7717)
This PR extends the custom sphinx extension for examples. It now allows for simple patterns in the file names and matches the file types using arbitrary regular expressions instead of just looking at the file extensions. This is necessary to integrate examples from the z3pycompat API: the examples live at a nontrivial place (in the build folder), which we inject via the file name patterns; we will have two separate examples which both end in .py but can be distinguished via the pattern used in the beginning.
2021-11-30 22:37:30 +00:00
Gereon Kremer
ae7084ba7a Add sygus examples to documentation (#7303)
For some reason, we didn't have any SMT-LIB (or rather SyGuS) example files for the SyGuS examples yet.
This PR adds these missing examples.
2021-10-04 16:46:49 -07:00
Gereon Kremer
3630215cc0 Various improvements to documentation (#7283)
This PR adds a couple of improvements to our documentation setup
- add an explicit dependency on the extension so that sphinx rebuilds pages appropriately when an extension is modified
- sphinx now emits warnings for examples that are not implemented in all languages (smt2, cpp, java and python)
- add -v to make the sphinx output more log-file friendly
- avoid a warning when the java bindings (and thus java docs) are not build
- replace file(WRITE by configure_file to avoid rather common erroneous rebuilds of python docs
- fix a reference to a label in the python docs
- suppress timestamps in javadoc output to avoid docs-ci being triggered for every PR
- improve placeholder message when java bindings are disabled
2021-10-04 20:59:28 +00:00
Alex Ozdemir
41b0ff8aa9 Start python API Solver documentation (#7064) 2021-09-20 22:12:17 +00:00
Gereon Kremer
f0084555f6 Refactor lexer for SMT-LIB in sphinx (#6805)
This PR refactors the lexer used by sphinx for highlighting SMT-LIB files. This new lexer properly checks for word boundaries and uses the proper character sets from the SMT-LIB standard.
2021-07-02 06:42:28 +00:00
Aina Niemetz
78a3406dbd docs: Add quickstart guide. (#6782) 2021-06-23 19:08:21 +00:00
Aina Niemetz
226244a0bd docs: Migrate sets and relations theory reference. (#6698)
This migrates page https://cvc4.github.io/sets-and-relations.
It further adds the SMT2 version of examples/api/cpp/sets.cpp and adds
test/regress/regress0/rels/relations-ops.smt2 as smtlib example for
relations.
2021-06-09 20:44:13 +00:00
Aina Niemetz
b257f55a30 docs: Migrate separation logic theory reference. (#6702)
This migrates page https://cvc4.github.io/separation-logic.
2021-06-09 07:20:14 +00:00
Aina Niemetz
d8cb3b8695 docs: Migrate datatypes theory reference. (#6662)
This migrates https://cvc4.github.io/datatypes.
2021-06-04 00:07:05 +00:00