remove duplicates, remove redundant home link on every file.

This commit is contained in:
Nir 2023-05-29 10:07:13 +03:00
parent d25f5ecaf9
commit 0b152f0dd3
31 changed files with 88 additions and 100 deletions

View File

@ -26,6 +26,6 @@ jobs:
run: poetry run mkdocs build run: poetry run mkdocs build
- name: deploy - name: deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }}
run: poetry run mkdocs gh-deploy --force run: poetry run mkdocs gh-deploy --force

View File

@ -26,7 +26,7 @@ The ```CHECK``` family are equivalent but execution continues in the same test c
Evaluates the expression and records the result. If an exception is thrown, it is caught, reported, and counted as a failure. These are the macros you will use most of the time. Evaluates the expression and records the result. If an exception is thrown, it is caught, reported, and counted as a failure. These are the macros you will use most of the time.
Examples: Examples:
``` ```cpp
CHECK( str == "string value" ); CHECK( str == "string value" );
CHECK( thisReturnsTrue() ); CHECK( thisReturnsTrue() );
REQUIRE( i == 42 ); REQUIRE( i == 42 );
@ -177,6 +177,4 @@ TEST_CASE_METHOD((Fixture<int, int>), "foo", "[bar]") {
This solution is not always applicable, because it might require extra This solution is not always applicable, because it might require extra
changes on the Catch's side to work. changes on the Catch's side to work.
---
[Home](Readme.md#top)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View File

@ -105,6 +105,4 @@ when stepping through code.
integration with CMake has been moved to its own page.](cmake-integration.md#top) integration with CMake has been moved to its own page.](cmake-integration.md#top)
---
[Home](Readme.md#top)

View File

@ -408,6 +408,4 @@ cd vcpkg
The catch2 port in vcpkg is kept up to date by microsoft team members and community contributors. The catch2 port in vcpkg is kept up to date by microsoft team members and community contributors.
If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
---
[Home](Readme.md#top)

View File

@ -583,6 +583,4 @@ ignored.
Verbosity defaults to _normal_. Verbosity defaults to _normal_.
---
[Home](Readme.md#top)

View File

@ -18,6 +18,4 @@ with you sharing this fact.
- [King](https://king.com) - [King](https://king.com)
---
[Home](Readme.md#top)

View File

@ -187,6 +187,4 @@ to Approx's value when computing the allowed relative margin from the
Approx's value. Approx's value.
---
[Home](Readme.md#top)

View File

@ -264,6 +264,4 @@ The macro will be used as is, that is, `CATCH_BREAK_INTO_DEBUGGER();`
must compile and must break into debugger. must compile and must break into debugger.
---
[Home](Readme.md#top)

View File

@ -152,9 +152,7 @@ should use. It provides you with the top anchor mentioned to link to
Text that explains how to use the cool feature. Text that explains how to use the cool feature.
---
[Home](Readme.md#top)
``` ```
* Crosslinks to different pages should target the `top` anchor, like this * Crosslinks to different pages should target the `top` anchor, like this
@ -338,6 +336,4 @@ while contributing to Catch2.
_This documentation will always be in-progress as new information comes _This documentation will always be in-progress as new information comes
up, but we are trying to keep it as up to date as possible._ up, but we are trying to keep it as up to date as possible._
---
[Home](Readme.md#top)

View File

@ -35,6 +35,4 @@ being aborted (when using `--abort` or `--abortx`). It is however
**NOT** invoked for test cases that are [explicitly skipped using the `SKIP` **NOT** invoked for test cases that are [explicitly skipped using the `SKIP`
macro](skipping-passing-failing.md#top). macro](skipping-passing-failing.md#top).
---
[Home](Readme.md#top)

View File

@ -39,6 +39,4 @@ _Note that you should not use any assertion macros within a Listener!_
own page](reporter-events.md#top). own page](reporter-events.md#top).
---
[Home](Readme.md#top)

View File

@ -89,6 +89,4 @@ above what your platform does. **Important: `<random>`'s distributions
are not specified to be repeatable across different platforms.** are not specified to be repeatable across different platforms.**
---
[Home](Readme.md#top)

View File

@ -3,44 +3,86 @@
## Already available ## Already available
- Test Case: [Single-file](../examples/010-TestCase.cpp) ### Test Case: Single-file
- Test Case: [Multiple-file 1](../examples/020-TestCase-1.cpp), [2](../examples/020-TestCase-2.cpp) ```cpp
- Assertion: [REQUIRE, CHECK](../examples/030-Asn-Require-Check.cpp) --8<-- "examples/010-TestCase.cpp"
- Fixture: [Sections](../examples/100-Fix-Section.cpp) ```
- Fixture: [Class-based fixtures](../examples/110-Fix-ClassFixture.cpp) ### Test Case: Multiple-files
- BDD: [SCENARIO, GIVEN, WHEN, THEN](../examples/120-Bdd-ScenarioGivenWhenThen.cpp) === "File 1"
- Listener: [Listeners](../examples/210-Evt-EventListeners.cpp) ```cpp
- Configuration: [Provide your own output streams](../examples/231-Cfg-OutputStreams.cpp) --8<-- "examples/020-TestCase-1.cpp"
- Generators: [Create your own generator](../examples/300-Gen-OwnGenerator.cpp) ```
- Generators: [Use map to convert types in GENERATE expression](../examples/301-Gen-MapTypeConversion.cpp) === "File 2"
- Generators: [Run test with a table of input values](../examples/302-Gen-Table.cpp) ```cpp
- Generators: [Use variables in generator expressions](../examples/310-Gen-VariablesInGenerators.cpp) --8<-- "examples/020-TestCase-2.cpp"
- Generators: [Use custom variable capture in generator expressions](../examples/311-Gen-CustomCapture.cpp) ```
### Assertion (REQUIRE, CHECK)
```cpp
--8<-- "examples/030-Asn-Require-Check.cpp"
```
### Fixtures
#### Sections
```cpp
--8<-- "examples/100-Fix-Section.cpp"
```
#### Class-based fixtures
```cpp
--8<-- "examples/110-Fix-ClassFixture.cpp"
```
### BDD (SCENARIO, GIVEN, WHEN, THEN)
```cpp
--8<-- "examples/120-Bdd-ScenarioGivenWhenThen.cpp"
```
### Listener
```cpp
--8<-- "examples/210-Evt-EventListeners.cpp"
```
### Configuration - *Provide your own output streams*
```cpp
--8<-- "examples/231-Cfg-OutputStreams.cpp"
```
### Generators
#### Create your own generator
```cpp
--8<-- "examples/300-Gen-OwnGenerator.cpp"
```
#### Use map to convert types in GENERATE expression
```cpp
--8<-- "examples/301-Gen-MapTypeConversion.cpp"
```
#### Run test with a table of input values
```cpp
--8<-- "examples/302-Gen-Table.cpp"
```
#### Use variables in generator expressions
```cpp
--8<-- "examples/310-Gen-VariablesInGenerators.cpp"
```
#### Use custom variable capture in generator expressions
```cpp
--8<-- "examples/311-Gen-CustomCapture.cpp"
```
??? note "Planned (TBD)"
## Planned - Assertion: [REQUIRE_THAT and Matchers](../examples/040-Asn-RequireThat.cpp)
- Assertion: [REQUIRE_NO_THROW](../examples/050-Asn-RequireNoThrow.cpp)
- Assertion: [REQUIRE_THROWS](../examples/050-Asn-RequireThrows.cpp)
- Assertion: [REQUIRE_THROWS_AS](../examples/070-Asn-RequireThrowsAs.cpp)
- Assertion: [REQUIRE_THROWS_WITH](../examples/080-Asn-RequireThrowsWith.cpp)
- Assertion: [REQUIRE_THROWS_MATCHES](../examples/090-Asn-RequireThrowsMatches.cpp)
- Floating point: [Approx - Comparisons](../examples/130-Fpt-Approx.cpp)
- Logging: [CAPTURE - Capture expression](../examples/140-Log-Capture.cpp)
- Logging: [INFO - Provide information with failure](../examples/150-Log-Info.cpp)
- Logging: [WARN - Issue warning](../examples/160-Log-Warn.cpp)
- Logging: [FAIL, FAIL_CHECK - Issue message and force failure/continue](../examples/170-Log-Fail.cpp)
- Logging: [SUCCEED - Issue message and continue](../examples/180-Log-Succeed.cpp)
- Report: [User-defined type](../examples/190-Rpt-ReportUserDefinedType.cpp)
- Report: [User-defined reporter](../examples/202-Rpt-UserDefinedReporter.cpp)
- Report: [Automake reporter](../examples/205-Rpt-AutomakeReporter.cpp)
- Report: [TAP reporter](../examples/206-Rpt-TapReporter.cpp)
- Report: [Multiple reporter](../examples/208-Rpt-MultipleReporters.cpp)
- Configuration: [Provide your own main()](../examples/220-Cfg-OwnMain.cpp)
- Configuration: [Compile-time configuration](../examples/230-Cfg-CompileTimeConfiguration.cpp)
- Configuration: [Run-time configuration](../examples/240-Cfg-RunTimeConfiguration.cpp)
- Assertion: [REQUIRE_THAT and Matchers](../examples/040-Asn-RequireThat.cpp)
- Assertion: [REQUIRE_NO_THROW](../examples/050-Asn-RequireNoThrow.cpp)
- Assertion: [REQUIRE_THROWS](../examples/050-Asn-RequireThrows.cpp)
- Assertion: [REQUIRE_THROWS_AS](../examples/070-Asn-RequireThrowsAs.cpp)
- Assertion: [REQUIRE_THROWS_WITH](../examples/080-Asn-RequireThrowsWith.cpp)
- Assertion: [REQUIRE_THROWS_MATCHES](../examples/090-Asn-RequireThrowsMatches.cpp)
- Floating point: [Approx - Comparisons](../examples/130-Fpt-Approx.cpp)
- Logging: [CAPTURE - Capture expression](../examples/140-Log-Capture.cpp)
- Logging: [INFO - Provide information with failure](../examples/150-Log-Info.cpp)
- Logging: [WARN - Issue warning](../examples/160-Log-Warn.cpp)
- Logging: [FAIL, FAIL_CHECK - Issue message and force failure/continue](../examples/170-Log-Fail.cpp)
- Logging: [SUCCEED - Issue message and continue](../examples/180-Log-Succeed.cpp)
- Report: [User-defined type](../examples/190-Rpt-ReportUserDefinedType.cpp)
- Report: [User-defined reporter](../examples/202-Rpt-UserDefinedReporter.cpp)
- Report: [Automake reporter](../examples/205-Rpt-AutomakeReporter.cpp)
- Report: [TAP reporter](../examples/206-Rpt-TapReporter.cpp)
- Report: [Multiple reporter](../examples/208-Rpt-MultipleReporters.cpp)
- Configuration: [Provide your own main()](../examples/220-Cfg-OwnMain.cpp)
- Configuration: [Compile-time configuration](../examples/230-Cfg-CompileTimeConfiguration.cpp)
- Configuration: [Run-time configuration](../examples/240-Cfg-RunTimeConfiguration.cpp)
---
[Home](Readme.md#top)

View File

@ -154,6 +154,4 @@ to enclose the expression inside parentheses:
`CAPTURE( (std::pair<int, int>{1, 2}) );` `CAPTURE( (std::pair<int, int>{1, 2}) );`
---
[Home](Readme.md#top)

View File

@ -435,6 +435,4 @@ and new style matchers arbitrarily.
> `MatcherGenericBase` lives in `catch2/matchers/catch_matchers_templated.hpp` > `MatcherGenericBase` lives in `catch2/matchers/catch_matchers_templated.hpp`
---
[Home](Readme.md#top)

View File

@ -93,6 +93,4 @@ the [interfaces](reporters.md#top) and the [events](reporter-events.md#top)
are now documented. are now documented.
---
[Home](Readme.md#top)

View File

@ -154,6 +154,4 @@ SpECTRE is a code for multi-scale, multi-physics problems in astrophysics and gr
### [Standardese](https://github.com/foonathan/standardese) ### [Standardese](https://github.com/foonathan/standardese)
Standardese aims to be a nextgen Doxygen. Standardese aims to be a nextgen Doxygen.
---
[Home](Readme.md#top)

View File

@ -127,6 +127,4 @@ part of the version. As an example, given single header version v2.3.4,
the macros would expand into `2`, `3`, and `4` respectively. the macros would expand into `2`, `3`, and `4` respectively.
---
[Home](Readme.md#top)

View File

@ -1659,6 +1659,4 @@ Other:
## Even Older versions ## Even Older versions
Release notes were not maintained prior to v1.6.0, but you should be able to work them out from the Git history Release notes were not maintained prior to v1.6.0, but you should be able to work them out from the Git history
---
[Home](Readme.md#top)

View File

@ -170,6 +170,4 @@ or Windows SE handler is called into with a fatal signal/exception.
`noMatchingTestCases` is sent for each user provided test specification `noMatchingTestCases` is sent for each user provided test specification
that did not match any registered tests. that did not match any registered tests.
---
[Home](Readme.md#top)

View File

@ -208,6 +208,4 @@ important for the reporter to work _nicely_.
---
[Home](Readme.md#top)

View File

@ -124,6 +124,4 @@ TEST_CASE( "FAIL showcase" ) {
``` ```
---
[Home](Readme.md#top)

View File

@ -341,6 +341,4 @@ TEMPLATE_PRODUCT_TEST_CASE_SIG("A Template product test case with array signatur
``` ```
---
[Home](Readme.md#top)

View File

@ -157,6 +157,4 @@ TEMPLATE_LIST_TEST_CASE_METHOD(Template_Fixture,
} }
``` ```
---
[Home](Readme.md#top)

View File

@ -127,6 +127,4 @@ inside the `StringMaker` specialization, like so:
This assertion will fail and print out the `testFloat1` and `testFloat2` This assertion will fail and print out the `testFloat1` and `testFloat2`
to 15 decimal places. to 15 decimal places.
---
[Home](Readme.md#top)

View File

@ -222,6 +222,4 @@ about these as you go, in the ever-growing [reference section](Readme.md#top)
of the documentation. of the documentation.
---
[Home](Readme.md#top)

View File

@ -95,6 +95,4 @@ and makes tests easy to navigate by reflecting the project's organizational
structure. structure.
---
[Home](Readme.md#top)

View File

@ -54,6 +54,4 @@ for some idea on who else also uses Catch2.
See the [tutorial](tutorial.md#top) to get more of a taste of using See the [tutorial](tutorial.md#top) to get more of a taste of using
Catch2 in practice. Catch2 in practice.
---
[Home](Readme.md#top)

View File

@ -25,8 +25,8 @@ theme:
font: font:
text: Open Sans text: Open Sans
code: Fira Code code: Fira Code
logo: assets/catch2_logo_with_bg.png logo: https://github.com/catchorg/Catch2/blob/devel/data/artwork/catch2-logo-small-with-background.png?raw=true
favicon: assets/c2_hand_logo.png favicon: https://github.com/catchorg/Catch2/blob/devel/data/artwork/catch2-hand-logo.png?raw=true
plugins: plugins:
@ -34,9 +34,6 @@ plugins:
- mike - mike
markdown_extensions: markdown_extensions:
- def_list - def_list
- pymdownx.tasklist: - pymdownx.tasklist:
@ -51,6 +48,9 @@ markdown_extensions:
- pymdownx.details - pymdownx.details
- admonition - admonition
- tables - tables
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- toc: - toc:
permalink: "#" permalink: "#"