Skip to content

Commit ffe9abc

Browse files
authored
Merge pull request #12 from cclib/dev/documentation
Dev/documentation
2 parents a062d00 + 7180188 commit ffe9abc

File tree

3 files changed

+42
-13
lines changed

3 files changed

+42
-13
lines changed

docs/make.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ DocMeta.setdocmeta!(Cclib, :DocTestSetup, :(using Cclib); recursive=true)
55

66
makedocs(;
77
modules=[Cclib],
8-
authors="Felipe S. S. Schneider <[email protected]> and contributors",
9-
repo="https://github.com/schneiderfelipe/Cclib.jl/blob/{commit}{path}#{line}",
8+
authors="cclib development team",
9+
repo="https://github.com/cclib/Cclib.jl",
1010
sitename="Cclib.jl",
1111
format=Documenter.HTML(;
1212
prettyurls=get(ENV, "CI", "false") == "true",
13-
canonical="https://schneiderfelipe.github.io/Cclib.jl",
13+
canonical="https://github.com/cclib/Cclib.jl",
1414
assets=String[],
1515
),
1616
pages=[
1717
"Home" => "index.md",
18+
"How to parse files" => "io.md",
1819
],
1920
)
2021

2122
deploydocs(;
22-
repo="github.com/schneiderfelipe/Cclib.jl",
23+
repo="https://github.com/cclib/Cclib.jl",
2324
devbranch="main",
2425
)

docs/src/index.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
```@meta
2-
CurrentModule = Cclib
3-
```
1+
# Introduction
42

5-
# Cclib
3+
[Cclib.jl](https://github.com/cclib/Cclib.jl) is a Julia wrapper around [Cclib](https://cclib.github.io/index.html) - an open source library written in Python for parsing and interpreting the results of computational chemistry packages.
64

7-
Documentation for [Cclib](https://github.com/schneiderfelipe/Cclib.jl).
5+
It allows to perform natively in Julia the following:
86

9-
```@index
7+
- Parse data from the output files generated by computational chemistry programs, such as Gaussian, GAMESS, PSI4 etc.
8+
- Provide a consistent interface to the results of computational chemistry calculations, particularly those results that are useful for algorithms or visualization
9+
- Facilitate the implementation of algorithms that are not specific to a particular computational chemistry package
10+
- Maximize interoperability with other open source computational chemistry and cheminformatic software libraries
1011

12+
# How to install
13+
To install [Cclib.jl](https://github.com/cclib/Cclib.jl), start up and type the following into the REPL.
14+
```julia
15+
Pkg.add("Cclib")
1116
```
1217

13-
```@autodocs
14-
Modules = [Cclib]
15-
```

docs/src/io.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Reading files
2+
3+
This page outlines how to access information store in computational chemistry output files.
4+
5+
### Supported formats
6+
Properties that can be parsed and supported file formats can be found [here](https://cclib.github.io/data.html").
7+
8+
### How to read files
9+
```Julia
10+
julia> using Cclib
11+
julia> mol = ccread("uracil_two.xyz")
12+
```
13+
The data is now stored in ```mol``` variable. To see what data it contains, we can use the ```keys``` function that comes with the standard library.
14+
```Julia
15+
julia> keys(mol)
16+
KeySet for a Dict{String, Any} with 4 entries. Keys:
17+
"atomcoords"
18+
"natom"
19+
"atomnos"
20+
"metadata"
21+
```
22+
Accessing the data is identical to how one would access data in a dictionary:
23+
```Julia
24+
julia> mol["natom"]
25+
12
26+
```

0 commit comments

Comments
 (0)