archivebox.index.html
Module Contents
Functions
parse an archive index html file and return the list of urls |
|
render the template for the entire main index |
|
render a given html template string with the given template content |
|
Data
API
- archivebox.index.html.__package__
‘archivebox.index’
- archivebox.index.html.MAIN_INDEX_TEMPLATE
‘static_index.html’
- archivebox.index.html.MINIMAL_INDEX_TEMPLATE
‘minimal_index.html’
- archivebox.index.html.LINK_DETAILS_TEMPLATE
‘snapshot.html’
- archivebox.index.html.TITLE_LOADING_MSG
‘Not yet archived…’
- archivebox.index.html.parse_html_main_index(out_dir: pathlib.Path = DATA_DIR) Iterator[str]
parse an archive index html file and return the list of urls
- archivebox.index.html.generate_index_from_links(links: List[archivebox.index.schema.Link], with_headers: bool)
- archivebox.index.html.main_index_template(links: List[archivebox.index.schema.Link], template: str = MAIN_INDEX_TEMPLATE) str
render the template for the entire main index
- archivebox.index.html.write_html_link_details(link: archivebox.index.schema.Link, out_dir: Optional[str] = None) None
- archivebox.index.html.link_details_template(link: archivebox.index.schema.Link) str
- archivebox.index.html.render_django_template(template: str, context: Mapping[str, str]) str
render a given html template string with the given template content
- archivebox.index.html.snapshot_icons(snapshot) str