bookbuilderpy.resources package

The package containing the pre-defined bookbuilderpy resources.

class bookbuilderpy.resources.ResourceServer[source]

Bases: object

The resource server.

get_mathjax_url()[source]

Get the mathjax url.

Returns:

the mathjax url

Return type:

str

get_server()[source]

Get the server address.

Returns:

the server address

Return type:

str

bookbuilderpy.resources.load_resource(name, source_dir, dest_dir)[source]

Load a text resource or template for the use with pandoc.

Parameters:
  • name (str) – the template name

  • source_dir (str) – the source directory

  • dest_dir (str) – the destination directory

Return type:

Optional[Path]

Returns:

the fully qualified path to the resource file if it was created, or None if no new file was created