springheel.copystuff module¶
-
async
springheel.copystuff.
copyArrows
(theme: str, old_arrows_path: str, new_arrows_path: str)¶ Copy navigation arrows to the output folder.
- Parameters
- themestr
The name of a site theme. Arrows with this prefix will be copied.
- old_arrows_pathstr
The source directory for arrows.
- new_arrows_pathstr
The location in output/ whither the arrows will be copied.
-
async
springheel.copystuff.
copyButtons
(site: springheel.classes.Site, old_buttons_path: str, socialbuttons_path: str, translated_strings: dict)¶ Copy buttons to the output folder.
- Parameters
- sitespringheel.classes.Site
The comic
Site
. Buttons from this site will be copied.- old_buttons_pathstr
The source directory for social buttons.
- socialbuttons_pathstr
The location in output/ whither the buttons will be copied.
- translated_stringsdict
The translation file contents for this site.
-
async
springheel.copystuff.
copyHeader
(old_header_path: str, new_header_path: str)¶ Copy a header/banner image to the output folder.
- Parameters
- old_header_pathstr
The source directory for the image.
- new_header_pathstr
The location in output/ whither the header will be copied.
-
async
springheel.copystuff.
copyMultiThemes
(themes: List[str], c_path: str, o_path: str, assets_path: str)¶ Concatenate themes into one stylesheet in the output folder.
- Parameters
- themeslist of str
The names of themes to use.
- c_pathstr
The current directory.
- o_pathstr
The path to the output directory (i.e. output/).
- assets_pathstr
The path to the assets directory in output. Usually “assets”.
-
async
springheel.copystuff.
copyTheme
(site_theme_path: str, new_site_theme_path: str, print_ipath: str)¶ Copy theme assets to the output folder.
- Parameters
- site_theme_pathstr
The source directory for theme assets.
- new_site_theme_pathstr
The location in output/ whither the theme will be copied.
- print_ipathstr
Path to the print.css stylesheet.