Skip to content

Commit ba6af0c

Browse files
committed
Add documentation
1 parent 2a1dedd commit ba6af0c

20 files changed

+304
-4
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags: '*'
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: julia-actions/setup-julia@latest
13+
with:
14+
version: '1'
15+
- name: Install dependencies
16+
run: julia --project=docs -e "using Pkg; lib = joinpath(@__DIR__, \""lib\""); paths = joinpath.(lib, readdir(lib)); foreach(x->Pkg.develop(PackageSpec(path=x)), paths); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()"
17+
- name: Build and deploy
18+
run: julia --project=docs docs/make.jl
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
DOCUMENTER_KEY: ${{ secrets.SSH_KEY }}

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
DiffinDiffs = "1c15b2bf-cfaa-4a64-9ed6-b84bdd745e5c"
33
DiffinDiffsBase = "7fc23ce2-6e83-4e3c-822f-a79085ccb3e8"
44
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
5+
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
56
InteractionWeightedDIDs = "4fda0319-85a0-4a01-849e-821b918731ee"
7+
StatsProcedures = "d2f4e7c0-4966-47f3-9552-d63f8a71a436"
8+
Vcov = "ec2bfdc2-55df-4fc9-b9ae-4958c2cf2486"
69

710
[compat]
811
Documenter = "0.27"

docs/make.jl

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
using Documenter
22
using DiffinDiffs
3+
using DocumenterCitations
4+
using StatsProcedures
5+
using Vcov
36

4-
makedocs(
7+
bib = CitationBibliography(joinpath(@__DIR__, "../paper/paper.bib"), sorting=:nyt)
8+
9+
makedocs(bib,
510
modules = [DiffinDiffsBase, InteractionWeightedDIDs],
611
format = Documenter.HTML(
12+
assets = ["assets/favicon.ico"],
713
canonical = "https://JuliaDiffinDiffs.github.io/DiffinDiffs.jl/stable/",
814
prettyurls = get(ENV, "CI", nothing) == "true",
9-
collapselevel = 1
15+
collapselevel = 2,
16+
ansicolor = true
1017
),
1118
sitename = "DiffinDiffs.jl",
1219
authors = "Junyuan Chen",
@@ -18,13 +25,24 @@ makedocs(
1825
"Library" => [
1926
"Treatment Types" => "lib/treatments.md",
2027
"Parallel Types" => "lib/parallels.md",
21-
"Treatment Terms" => "lib/terms.md",
28+
"Formula Terms" => "lib/terms.md",
29+
"Estimators" => "lib/estimators.md",
30+
"Inference" => "lib/inference.md",
31+
"Procedures" => "lib/procedures.md",
32+
"Results" => "lib/results.md",
33+
"Tables" => "lib/tables.md",
34+
"Panel Operations" => "lib/panel.md",
35+
"ScaledArrays" => "lib/ScaledArrays.md",
36+
"StatsProcedures" => "lib/StatsProcedures.md",
2237
"Miscellanea" => "lib/miscellanea.md"
2338
],
2439
"About" => [
40+
"References" => "about/references.md",
41+
"License" => "about/license.md"
2542
]
2643
],
27-
workdir = joinpath(@__DIR__, "..")
44+
workdir = joinpath(@__DIR__, ".."),
45+
doctest = false
2846
)
2947

3048
deploydocs(

docs/src/about/license.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# License
2+
3+
[DiffinDiffs.jl](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl)
4+
is licensed under the
5+
[MIT license](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl/blob/master/LICENSE.md).

docs/src/about/references.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# References
2+
3+
```@bibliography
4+
```

docs/src/index.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# DiffinDiffs.jl
2+
3+
Welcome to the documentation site for DiffinDiffs.jl!
4+
5+
[DiffinDiffs.jl](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl)
6+
is a suite of Julia packages for difference-in-differences (DID).
7+
The goal of its development is to promote applications of
8+
the latest advances in econometric methodology related to DID in academic research
9+
while leveraging the performance and composability of the Julia language.
10+
11+
## Why DiffinDiffs.jl?
12+
13+
- **Fast:** Handle datasets of multiple gigabytes with ease
14+
- **Transparent:** Completely open source and natively written in Julia
15+
- **Extensible:** Unified interface with modular package organization
16+
17+
## Package Organization
18+
19+
[DiffinDiffs.jl](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl)
20+
reexports types, functions and macros defined in
21+
component packages that are separately registered.
22+
The package itself does not host any concrete functionality except documentation.
23+
This facilitates decentralized code development under a unified framework.
24+
25+
| Package | Description | Version | Status |
26+
|:--------|:------------|:--------|:-------|
27+
[DiffinDiffsBase](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl/tree/master/lib/DiffinDiffsBase) | Base package for DiffinDiffs.jl | [![version](https://juliahub.com/docs/DiffinDiffsBase/version.svg)](https://juliahub.com/ui/Packages/DiffinDiffsBase/AGMId) | [![pkgeval](https://juliahub.com/docs/DiffinDiffsBase/pkgeval.svg)](https://juliahub.com/ui/Packages/DiffinDiffsBase/AGMId) |
28+
[InteractionWeightedDIDs](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl/tree/master/lib/InteractionWeightedDIDs) | Regression-based multi-period DID | [![version](https://juliahub.com/docs/InteractionWeightedDIDs/version.svg)](https://juliahub.com/ui/Packages/InteractionWeightedDIDs/Vf93d) | [![pkgeval](https://juliahub.com/docs/InteractionWeightedDIDs/pkgeval.svg)](https://juliahub.com/ui/Packages/InteractionWeightedDIDs/Vf93d) |
29+
30+
More components will be included in the future as development moves forward.
31+
32+
## Installation
33+
34+
[DiffinDiffs.jl](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl)
35+
can be installed with the Julia package manager
36+
[Pkg](https://docs.julialang.org/en/v1/stdlib/Pkg/).
37+
From the Julia REPL, type `]` to enter the Pkg REPL and run:
38+
39+
```
40+
pkg> add DiffinDiffs
41+
```
42+
43+
This will install all the component packages of
44+
[DiffinDiffs.jl](https://github.com/JuliaDiffinDiffs/DiffinDiffs.jl)
45+
as dependencies.
46+
There is no need to explicitly add the individual components
47+
unless one needs to access internal objects.

docs/src/lib/ScaledArrays.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ScaledArrays
2+
3+
```@autodocs
4+
Modules = [DiffinDiffsBase]
5+
Pages = ["src/ScaledArrays.jl"]
6+
```

docs/src/lib/StatsProcedures.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# StatsProcedures
2+
3+
```@autodocs
4+
Modules = [StatsProcedures]
5+
```

docs/src/lib/estimators.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Estimators
2+
3+
```@autodocs
4+
Modules = [DiffinDiffsBase, InteractionWeightedDIDs]
5+
Filter = t -> typeof(t) === DataType && t <: DiffinDiffsEstimator
6+
```

docs/src/lib/inference.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Inference
2+
3+
```@autodocs
4+
Modules = [Vcov]
5+
```

0 commit comments

Comments
 (0)