Skip to content

Commit

Permalink
Merge pull request #121 from JuliaReach/schillic/bibliography
Browse files Browse the repository at this point in the history
Use `DocumenterCitations` for bibliography
  • Loading branch information
schillic authored Jan 25, 2025
2 parents b3aad78 + 2ba9b15 commit 7864394
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 11 deletions.
2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
LazySets = "b4f0291d-fe17-52bc-9479-3d1a343d9043"
SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8"

[compat]
Documenter = "1"
DocumenterCitations = "1.3"
LazySets = "3"
SymEngine = "0.11, 0.12"
8 changes: 6 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
using Documenter, SpaceExParser
using Documenter, SpaceExParser, DocumenterCitations

DocMeta.setdocmeta!(SpaceExParser, :DocTestSetup,
:(using SpaceExParser); recursive=true)

bib = CitationBibliography(joinpath(@__DIR__, "src", "refs.bib"); style=:alpha)

makedocs(; sitename="SpaceExParser.jl",
modules=[SpaceExParser],
format=Documenter.HTML(; prettyurls=get(ENV, "CI", nothing) == "true",
assets=["assets/aligned.css"]),
assets=["assets/aligned.css", "assets/citations.css"]),
pagesonly=true,
plugins=[bib],
pages=["Home" => "index.md",
"Examples" => Any["Introduction" => "examples/examples.md",
"Bouncing ball" => "examples/bball.md"],
"Library" => Any["Types" => "lib/types.md", "Methods" => "lib/methods.md"],
"Bibliography" => "bibliography.md",
"About" => "about.md"])

deploydocs(; repo="github.com/JuliaReach/SpaceExParser.jl.git",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To run the unit tests locally, you can do:
```julia
julia> using Pkg

julia> Pkg.test("ReachabilityBase")
julia> Pkg.test("SpaceExParser")
```

We also advise adding new unit tests when adding new features to ensure
Expand Down
17 changes: 17 additions & 0 deletions docs/src/assets/citations.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.citation dl {
display: grid;
grid-template-columns: max-content auto; }
.citation dt {
grid-column-start: 1; }
.citation dd {
grid-column-start: 2;
margin-bottom: 0.75em; }
.citation ul {
padding: 0 0 2.25em 0;
margin: 0;
list-style: none !important;}
.citation ul li {
text-indent: -2.25em;
margin: 0.33em 0.5em 0.5em 2.25em;}
.citation ol li {
padding-left:0.75em;}
4 changes: 4 additions & 0 deletions docs/src/bibliography.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Bibliography

```@bibliography
```
6 changes: 3 additions & 3 deletions docs/src/examples/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ The examples consist of single hybrid automata that are constructed via flatteni

However, note that the flattening process changes the original model and may induce parsing errors. The parsing errors only appear when the constructed model is visualized/analyzed with the Model Editor or/and the Web Interface. There are no parsing errors with the source code/executable SpaceEx. A list of identified parsing problems follows below.

1. Special symbols, e.g. ~, _ in the variable and location names
1. Special symbols, e.g. `~`, `_` in the variable and location names
2. Special characters, e.g. Greek or Russian letters
3. Nondeterministic flows, e.g. x'==x+w1, where 0<w1<0.1 (see bball_nondet)
4. Nondeterministic resets, e.g. v' == -0.75*v+w2 (see bball_nondet)
3. Nondeterministic flows, e.g. `x'==x+w1`, where `0<w1<0.1` (see `bball_nondet`)
4. Nondeterministic resets, e.g. `v' == -0.75*v+w2` (see `bball_nondet`)
5. Naming issues, e.g. default variable name is component.subcomponent.variable

The aforementioned problems would yield errors/warnings when parsed.
Expand Down
8 changes: 3 additions & 5 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

`SpaceExParser` is a [Julia](http://julialang.org) package to read SpaceEx model files.

The SpaceEx modeling language (SpaceExParser) is a format for the mathematical description
of hybrid dynamical systems. It has been described in
[The SpaceEx Modeling Language](http://spaceex.imag.fr/sites/default/files/spaceex_modeling_language_0.pdf),
Scott Cotton, Goran Frehse, Olivier Lebeltel. See also [An Introduction to SpaceEx](http://spaceex.imag.fr/sites/default/files/introduction_to_spaceex_0.pdf),
Goran Frehse, 2010.
The SpaceEx modeling language (SpaceExParser) is a format for the mathematical
description of hybrid dynamical systems. It has been described in [CottonFL10](@citet).
See also [Frehse10](@citet).

A visual model editor is available for download on the [SpaceEx website](http://spaceex.imag.fr/download-6).
See the examples in this documentation for screenshots and further details.
Expand Down
13 changes: 13 additions & 0 deletions docs/src/refs.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@misc{CottonFL10,
author = {Cotton, Scott and Frehse, Goran and Lebeltel, Olivier},
title = {The {SpaceEx} modeling language},
year = {2010},
url = {http://spaceex.imag.fr/sites/default/files/spaceex_modeling_language_0.pdf}
}

@misc{Frehse10,
author = {Frehse, Goran},
title = {An Introduction to {SpaceEx} v0.8},
year = {2010},
url = {http://spaceex.imag.fr/sites/default/files/introduction_to_spaceex_0.pdf}
}

0 comments on commit 7864394

Please sign in to comment.