Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
eoa_metadator/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (36 sloc)
932 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code Generator | |
============== | |
Generates LaTeX code for informative frontmatters. These will be | |
attached to the chapter PDFs of EOA publications we offer for | |
download. | |
With the output comes also a script file which will replace the | |
original files on the server. | |
Copy the `generated_files` folder to the server and from there run the | |
script. | |
## Dependencies | |
- texlive-xetex | |
- python3-pypdf2 | |
## Config file | |
The program requires a config file that stores some paths and, if a | |
postgres database is used, the credentials for it. If several | |
publication platforms are used, simply create different config files | |
for each instance. | |
It should contain at least the following fields: | |
``` | |
[server] | |
media_dir: | |
production_url: | |
``` | |
When using SQLite, you can specify the database file like this: | |
``` | |
[sqlite] | |
database_file: | |
``` | |
Insert the postgres database credentials like this: | |
``` | |
[postgres] | |
database_name: | |
user: | |
host: | |
password: "" | |
``` |