Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
plandes committed Aug 23, 2023
1 parent a4da852 commit 328bb99
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]


## [0.8.1] - 2023-08-23
### Changed
- Add an configuration option to robustly handle errors generated by the
operating system on file system access (perhaps from a corrupted database.


## [0.8.0] - 2023-08-16
Downstream moderate risk update release.

Expand Down Expand Up @@ -176,7 +182,8 @@ Downstream moderate risk update release.
- Initial version


[Unreleased]: https://github.com/plandes/zotsite/compare/v0.8.0...HEAD
[Unreleased]: https://github.com/plandes/zotsite/compare/v0.8.1...HEAD
[0.8.1]: https://github.com/plandes/zotsite/compare/v0.8.0...v0.8.1
[0.8.0]: https://github.com/plandes/zotsite/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/plandes/zotsite/compare/v0.6.3...v0.7.0
[0.6.3]: https://github.com/plandes/zotsite/compare/v0.6.2...v0.6.3
Expand Down
20 changes: 20 additions & 0 deletions doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,26 @@ The generated website takes the following URL encoded parameters:
* **isView**: if `1`, go directly to the PDF rather than the information page.


## Robust File System Access

If one file copy from the Zotero storage fails, the program dump a stack trace
and terminate. However, there might be cases where the database might have
out-of-sync entries from what is on the file system but you still want to
export those entries that are available.

To change this behavior and robustly deal with missing entries, add the
following to the [configuration file]:

```ini
[site_creator]
robust_fs = True
```

This tells the program to continue to try to export even when encountering file
system copy issues. However, you'll get a lot of verbose error output if there
is some larger issue.


<!-- links -->
[configuration file]: #configuration-file
[Zotero]: https://www.zotero.org
Expand Down
5 changes: 5 additions & 0 deletions test-resources/zotsite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ collection_like = %%
prune_pattern = None
# the default output directory to store the collection
out_dir = None

## if the below is uncommented, it will continue to try to export the even when
## encountering file system copy issues.
# [site_creator]
# robust_fs = True

0 comments on commit 328bb99

Please sign in to comment.