21 lines
524 B
Julia
21 lines
524 B
Julia
using BibTeX, Base.Test
|
|
|
|
import Documenter
|
|
Documenter.makedocs(
|
|
modules = [BibTeX],
|
|
format = :html,
|
|
sitename = "BibTeX.jl",
|
|
root = joinpath(dirname(dirname(@__FILE__)), "docs"),
|
|
pages = Any["Home" => "index.md"],
|
|
strict = true,
|
|
linkcheck = true,
|
|
checkdocs = :exports,
|
|
authors = "Brandon Taylor"
|
|
)
|
|
|
|
@testset "examples.bib" begin
|
|
b = open(Bib, joinpath("..", "example", "examples.bib"), "r")
|
|
@test length(b) == 92
|
|
@test (b["angenendt"]::BibItem{:article})["date"] == "2002"
|
|
end
|