mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-20 23:24:18 +02:00
Merge pull request #155 from dbrgn/docs-cache-config
Document location of cache directory. Fixes #151.
This commit is contained in:
commit
1ebb80bb14
2 changed files with 17 additions and 1 deletions
8
docs/README.md
Normal file
8
docs/README.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Tealdeer Docs
|
||||
|
||||
To build the docs, install [mdbook](https://github.com/rust-lang/mdBook).
|
||||
|
||||
You can build the HTML with `mdbook build`.
|
||||
|
||||
To serve the docs on `localhost:3000` and watch for changes, use `mdbook
|
||||
serve`.
|
||||
|
|
@ -18,7 +18,15 @@ The directory where the configuration file resides may be overwritten by the
|
|||
environment variable `TEALDEER_CONFIG_DIR`. Remember to use an absolute path.
|
||||
Variable expansion will not be performed on the path.
|
||||
|
||||
## Example
|
||||
## Override Cache Directory
|
||||
|
||||
Similarly, the cache directory where the pages are downloaded to, also follows
|
||||
OS conventions. On Linux, it will usually be at `~/.cache/tealdeer/`. The path
|
||||
can be overwritten using the environment variable `TEALDEER_CACHE_DIR`.
|
||||
Remember to use an absolute path. Variable expansion will not be performed on
|
||||
the path.
|
||||
|
||||
## Config Example
|
||||
|
||||
```toml
|
||||
[display]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue