Skip to content

Commit 57574c6

Browse files
authored
Merge pull request #1829 from CEED/jeremy/documentation-markers
Use HTML comments as doc inclusion markers
2 parents 6d7116d + 525f58e commit 57574c6

File tree

8 files changed

+17
-14
lines changed

8 files changed

+17
-14
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The CEED research is supported by the [Exascale Computing Project](https://exasc
2727

2828
For more details on the CEED API see the [user manual](https://libceed.org/en/latest/).
2929

30-
<!-- % gettingstarted-inclusion-marker-->
30+
<!-- getting-started-inclusion -->
3131

3232
## Building
3333

@@ -243,6 +243,8 @@ Bit-for-bit reproducibility is important in some applications.
243243
However, some libCEED backends use non-deterministic operations, such as `atomicAdd` for increased performance.
244244
The backends which are capable of generating reproducible results, with the proper compilation options, are highlighted in the list above.
245245

246+
<!-- getting-started-exclusion -->
247+
246248
## Examples
247249

248250
libCEED comes with several examples of its usage, ranging from standalone C codes in the `/examples/ceed` directory to examples based on external packages, such as MFEM, PETSc, and Nek5000.
@@ -254,7 +256,7 @@ To build the examples, set the `MFEM_DIR`, `PETSC_DIR` (and optionally `PETSC_AR
254256
$ cd examples/
255257
```
256258

257-
<!-- % running-examples-inclusion-marker-->
259+
<!-- running-examples-inclusion -->
258260

259261
```console
260262
# libCEED examples on CPU and GPU
@@ -337,7 +339,7 @@ The above code assumes a GPU-capable machine with the CUDA backends enabled.
337339
Depending on the available backends, other CEED resource specifiers can be provided with the `-ceed` option.
338340
Other command line arguments can be found in [examples/petsc](https://github.com/CEED/libCEED/blob/main/examples/petsc/README.md).
339341

340-
<!-- % benchmarks-marker-->
342+
<!-- running-examples-exclusion -->
341343

342344
## Benchmarks
343345

doc/sphinx/source/gettingstarted.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Getting Started
22

33
```{include} ./README.md
4-
:start-after: gettingstarted-inclusion-marker-->
4+
:start-after: <!-- getting-started-inclusion -->
5+
:end-before: <!-- getting-started-exclusion -->
56
```

examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For more details, please see the dedicated [documentation section](https://libce
99

1010
## Bakeoff Problems
1111

12-
<!-- % bps-inclusion-marker-->
12+
<!-- bps-inclusion -->
1313

1414
The Center for Efficient Exascale Discretizations (CEED) uses Bakeoff Problems (BPs) to test and compare the performance of high-order finite element implementations.
1515
The definitions of the problems are given on the ceed [website](https://ceed.exascaleproject.org/bps/).
@@ -46,7 +46,7 @@ The BPs are parametrized by the number $P$ of Gauss-Legendre-Lobatto nodal point
4646
A $Q$-point Gauss-Legendre quadrature is used for all BPs except BP5 and BP6, which choose $Q = P$ and Gauss-Legendre-Lobatto quadrature to collocate with the interpolation nodes.
4747
This latter choice is popular in applications that use spectral element methods because it produces a diagonal mass matrix (enabling easy explicit time integration) and significantly reduces the number of floating point operations to apply the operator.
4848

49-
<!-- % bps-exclusion-marker-->
49+
<!-- bps-exclusion -->
5050

5151
For a more detailed description of the operators employed in the BPs, please see the dedicated [BPs documentation section](https://libceed.org/en/latest/examples/bps.html).
5252

@@ -75,6 +75,6 @@ For a detailed description, please see the corresponding [problems on the cubed-
7575
To build the examples, set the `MFEM_DIR`, `PETSC_DIR`, and `NEK5K_DIR` variables and, from the `examples/` directory, run
7676

7777
```{include} ../README.md
78-
:start-after: running-examples-inclusion-marker-->
79-
:end-before: benchmarks-marker-->
78+
:start-after: <!-- running-examples-inclusion -->
79+
:end-before: <!-- running-examples-exclusion -->
8080
```

examples/bps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# CEED Bakeoff Problems
44

55
```{include} ./README.md
6-
:start-after: bps-inclusion-marker
7-
:end-before: bps-exclusion-marker
6+
:start-after: <!-- bps-inclusion -->
7+
:end-before: <!-- bps-exclusion -->
88
```
99

1010
(mass-operator)=

examples/fluids/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ and run with:
2323

2424
## Runtime options
2525

26-
<!-- % inclusion-fluids-marker-->
26+
<!-- fluids-inclusion -->
2727

2828
The Navier-Stokes mini-app is controlled via command-line options.
2929
The following options are common among all problem types:

examples/fluids/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Moreover, the Navier-Stokes example has been developed using PETSc, so that the
99
## Running the mini-app
1010

1111
```{include} README.md
12-
:start-after: inclusion-fluids-marker-->
12+
:start-after: <!-- fluids-inclusion -->
1313
```
1414
## The Navier-Stokes equations
1515

examples/solids/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ and run with:
2222

2323
## Runtime options
2424

25-
<!-- % inclusion-solids-marker-->
25+
<!-- solids-inclusion -->
2626

2727
The elasticity mini-app is controlled via command-line options, the following of which are mandatory.
2828

examples/solids/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $$ (hyperelastic-cd)
3434
## Running the mini-app
3535
3636
```{include} README.md
37-
:start-after: inclusion-solids-marker-->
37+
:start-after: <!-- solids-inclusion -->
3838
```
3939
4040
(problem-linear-elasticity)=

0 commit comments

Comments
 (0)