Skip to content

Commit

Permalink
Merge pull request #13 from cite-architecture/dev
Browse files Browse the repository at this point in the history
Support new version of CitableObject
  • Loading branch information
neelsmith authored Sep 16, 2021
2 parents 64f30b0 + 6b46220 commit 3f79695
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CiteEXchange"
uuid = "e2e9ead3-1b6c-4e96-b95f-43e6ab899178"
authors = ["Neel Smith <[email protected]>"]
version = "0.4.2"
version = "0.4.3"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand All @@ -13,8 +13,8 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
CSV = "0.8, 0.9"
CitableObject = "0.6"
CitableObject = "0.7"
DocStringExtensions = "0.8"
Documenter = "0.26, 0.27"
Documenter = "0.27"
HTTP = "0.9"
julia = "1"
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using CiteEXchange
makedocs(
sitename = "CiteEXchange",
pages = [
"Home" => "index.md",
"Overview" => "index.md",

"API documentation" => "apis.md"
]
Expand Down
10 changes: 8 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

*Parse strings and files in CEX format.*

Cite EXchange format (CEX) is a plain-text format for serializing citable scholarly resources.

## Quick example

Plain-text CEX files are composed of one or more blocks defined by a CEX header line.
Expand Down Expand Up @@ -33,12 +35,16 @@ blocklist[1].lines

### Work with an array of `Block`s

CiteEXchange.jl also has functions that work with arrays of `Block`s. E.g., you can see what types of blocks are present, and find all data for a given type of block.
CiteEXchange also has functions that work with arrays of `Block`s. You can see what types of blocks are present.

```@example simple
blocktypes(blocklist)
```

You can find all data for a given type of block.

```@example simple
datafortype("ctscatalog", blocklist)
```
```

A typical work pattern might be to read an array of blocks, see what types of block are included, and then use an appropriate module to process blocks depending on their type (e.g., use the `CitableCorpus` module to read a `ctsdata` or `ctscatalog` block).

0 comments on commit 3f79695

Please sign in to comment.