Skip to content

Commit

Permalink
feat: Add logging config, explain API key support, closses #75
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Burgess committed Nov 25, 2019
1 parent 5903c97 commit 97fd753
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ $ pip install vortexasdk

Set your `VORTEXA_API_KEY` environment variable, that's all.

Refer to [Vortexa API Authentication](https://docs.vortexa.com/reference/intro-authentication)
for more details, including instructions on where to find your API key.

##### Example

```python
Expand Down
1 change: 1 addition & 0 deletions docs/build_docs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

mkdir -p ./_build/pydocmd/examples
python docs/autogen.py
pydocmd build
9 changes: 9 additions & 0 deletions docs/config/config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Config

The VortexaSDK can be configured using environment variables.

| Environment Variable | Default | Description |
|:----------------------|:--------------------------------|:-------------------------|
| VORTEXA_API_KEY | none | API Key used to access the VortexaAPI. Refer to [Vortexa API Authentication](https://docs.vortexa.com/reference/intro-authentication) for more details, including instructions on where to find your API key.|
| LOG_FILE | vortexasdk.log | Output log file |
| LOG_LEVEL | INFO | Configure the level of must be one of `["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]` |
1 change: 1 addition & 0 deletions docs/deploy_docs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

mkdir -p ./_build/pydocmd/examples
python docs/autogen.py
pydocmd gh-deploy
1 change: 0 additions & 1 deletion docs/entities/about-entities.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/serve_docs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

mkdir -p ./_build/pydocmd/examples
python docs/autogen.py
pydocmd serve
4 changes: 1 addition & 3 deletions pydocmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ generate:
- endpoints/products.md:
- vortexasdk.endpoints.products++
- vortexasdk.endpoints.products_result++

- entities/product.md:
- vortexasdk.api.product++
- entities/geography.md:
Expand All @@ -37,15 +36,14 @@ pages:
Products: endpoints/products.md
Vessels: endpoints/vessels.md
- Entities:
# About Entities: entities/about-entities.md << docs/entities/about-entities.md
Cargo Movement: entities/cargo_movement.md
Corporation: entities/corporation.md
Geography: entities/geography.md
Product: entities/product.md
Vessel: entities/vessel.md
- Config: config.md << docs/config/config.md
- Examples:
1 China VLCC Discharges: examples/1_china.md

theme:
name: readthedocs
collapse_navigation: true
Expand Down

0 comments on commit 97fd753

Please sign in to comment.