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
@@ -56,63 +57,12 @@ Use `wiki2book -h` for more information and `wiki2book <command> -h` for informa
56
57
57
58
### Configuration
58
59
59
-
Next to the project file (s. below), the application reads technical, project-independent and basic configurations from a JSON file (e.g. the templates to ignore), which can be specified with `--config, -c <file>`.
60
-
See [configs/de.json](configs/de.json) for an example and [src/config/config.go](src/config/config.go) for all technical details on each possible value including their defaults.
61
-
62
-
Some properties can be configured in both, the project and configuration file (such as the Wikipedia URL).
63
-
Entries from the project file are used in case a property is given in both files.
64
-
65
-
Also take a look at the [config.go](src/config/config.go) source file, which contains a lot of documentation on each config entry.
66
-
67
-
### Project file
68
-
69
-
When using a project, the above-mentioned `project.json` is a configuration for this project, containing e.g. the title, cover image and list of articles, and may look like this:
*`wikipedia-instance` (this value overrides the general configuration (s. above) when given)
106
-
107
-
#### Use a different Wikipedia instance
108
-
109
-
Per default, the english wikipedia (`en`) is used.
110
-
However, you can change the `wikipedia-instance` entry in your projects or config file (s. above; project entries take precedence over configuration entries).
111
-
Notice, that you also have to adjust the list of ignore templates and all other language-specific configurations.
112
-
Take a look at the [German config file](configs/de.json) and some [German project files](projects/de/) to get an idea of a switch to a different Wikipedia instance.
60
+
See the [config documentation](./doc/configuration.md).
113
61
114
62
### Pandoc version 2 and 3
115
63
64
+
_Only relevant when using the `pandoc` output driver._
65
+
116
66
Pandoc version 2 might internally use CSS3 parameters by default, such as the `gap` property.
117
67
This might cause problems on certain eBook readers (e.g. Tolino ones).
118
68
To overcome this, pass the argument `--pandoc-data-dir ./pandoc/data` to wiki2book, which uses a template from this repo without such problematic `gap` parameter.
@@ -146,9 +96,18 @@ Use the following command to render the file
0 commit comments