You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,13 @@ A webhook ensures that manual edits of the bibliography file and authentication-
56
56
To allow manual changes to the bibliography file or the authentication tokens without having to restart the server, it is necessary to configure a webhook.
57
57
The webhook has to send a notification to `<your bib server>/v1/webhook` on push events. There is no secret token required.
58
58
59
+
### Policy
60
+
The tool allows defining a policy for bibliography entries.
61
+
If enabled, a new entry can only be added if it passes the checks of the policy.
62
+
The policy is written as a callback function in Python.
63
+
It has accecss to the entry that should be added, as well as the entire database containing all entries.
64
+
A simple policy is provided in `policy.py`: it rejects entries where the citation key has a length of 0, and accepts all other entries.
65
+
59
66
### Run Server
60
67
* Build the Docker container: `docker build --tag bibtool .`
61
68
* Start the Docker container: `docker run -p 5000:5000 -v <path to bibliography folder>:/data bibtool`
0 commit comments