Skip to content

Commit

Permalink
ci: adding doc build step
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeswenson committed May 17, 2021
1 parent 68819a8 commit 56f934a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ jobs:
with:
command: test
args: --all-features
- name: Docs
uses: actions-rs/cargo@v1
env:
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
with:
command: doc
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "notion"
version = "0.0.1-beta.3"
authors = ["Jake Swenson <jake@jakeswenson.com>"]
edition = "2018"
repository = "https://github.com/jakeswenson/notion"

description = "A Notion Api Client"
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub mod models;

const NOTION_API_VERSION: &str = "2021-05-13";

/// An wrapper Error type for all errors produced by the [`NotionApi`](NotionApi) client.
#[derive(Debug, Snafu)]
pub enum Error {
#[snafu(display("Invalid Notion API Token: {}", source))]
Expand All @@ -27,6 +28,8 @@ pub enum Error {
JsonParseError { source: serde_json::Error },
}

/// Meant to be a helpful trait allowing anything that can be
/// identified by the specified [Type](Self::Type).
pub trait Identifiable {
// There should only be one way to identify an object
type Type;
Expand Down

0 comments on commit 56f934a

Please sign in to comment.