Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
ad8f36dc48 | |||
3f9eb80713 | |||
8f0ce0900e |
14
README.md
Normal file
14
README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Hope Family Fellowship Notion API Client
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
### Software Packages
|
||||||
|
|
||||||
|
`hff_notion_api_client` depends on a number of packages which are not yet
|
||||||
|
available in he official Nim repository. The easiest way to get access to these
|
||||||
|
packages is to add a new `PackageList` to your [nimble configuration] for the
|
||||||
|
[JDB Software Nim packages repository]. The url is
|
||||||
|
`https://git.jdb-software.com/jdb/nim-packages/raw/main/packages.json`
|
||||||
|
|
||||||
|
[nimble configuration]: https://github.com/nim-lang/nimble#configuration
|
||||||
|
[JDB Software Nim packages]: https://git.jdb-software.com/jdb/nim-packages
|
@ -1,15 +1,14 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.4.2"
|
version = "0.4.5"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Utilities and bindings for HFF's Notion API."
|
description = "Utilities and bindings for HFF's Notion API."
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires "nim >= 1.4.8"
|
requires "nim >= 1.4.8"
|
||||||
requires "https://git.jdb-software.com/jdb/buffoonery"
|
|
||||||
requires "https://git.jdb-software.com/jdb/nim-time-utils.git >= 0.5.0"
|
# packages from git.jdb-software.com/jdb/nim-packages
|
||||||
requires "https://git.jdb-software.com/jdb/nim-namespaced-logging"
|
requires @["buffoonery", "timeutils >= 0.5.0", "namespaced_logging >= 0.3.1"]
|
||||||
|
@ -8,7 +8,7 @@ const NOTION_DATE_FORMAT = "YYYY-MM-dd"
|
|||||||
var logNs {.threadvar.}: LoggingNamespace
|
var logNs {.threadvar.}: LoggingNamespace
|
||||||
|
|
||||||
template log(): untyped =
|
template log(): untyped =
|
||||||
if logNs.isNil: logNs = initLoggingNamespace("hff_notion_api_client/utils", lvlInfo)
|
if logNs.isNil: logNs = getLoggerForNamespace("hff_notion_api_client/utils", lvlInfo)
|
||||||
logNs
|
logNs
|
||||||
|
|
||||||
proc parseDate(str: string): DateTime =
|
proc parseDate(str: string): DateTime =
|
||||||
|
Reference in New Issue
Block a user