Skip to content

Commit

Permalink
WIP add exporters/html_singlepage (export single-pag HTML file from Y…
Browse files Browse the repository at this point in the history
…AML software data)

- fixes #15
  • Loading branch information
nodiscc committed Oct 21, 2022
1 parent dbdd960 commit c744f89
Show file tree
Hide file tree
Showing 6 changed files with 450 additions and 4 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ install:
##### TESTS #####

.PHONY: test # run tests
test: test_pylint clean clone_awesome_selfhosted test_import_awesome_selfhosted test_process_awesome_selfhosted test_export_awesome_selfhosted test_import_shaarli test_download_video
test: test_pylint clean clone_awesome_selfhosted test_import_awesome_selfhosted test_process_awesome_selfhosted test_export_awesome_selfhosted_md test_export_awesome_selfhosted_html test_import_shaarli test_download_video

.PHONY: test_pylint # run linter (non blocking)
test_pylint: install
Expand Down Expand Up @@ -41,12 +41,18 @@ test_process_awesome_selfhosted: install
hecat --config tests/.hecat.awesome_lint.yml
cd awesome-selfhosted-data && git --no-pager diff --color=always

.PHONY: test_export_awesome_selfhosted # test export to singlepage markdown from awesome-selfhosted-data
test_export_awesome_selfhosted: install
.PHONY: test_export_awesome_selfhosted_md # test export to singlepage markdown from awesome-selfhosted-data
test_export_awesome_selfhosted_md: install
source .venv/bin/activate && \
hecat --config tests/.hecat.export_markdown_singlepage.yml && \
cd awesome-selfhosted && git --no-pager diff --color=always

.PHONY: test_export_awesome_selfhosted_html # test export to singlepage HTML from awesome-selfhosted-data
test_export_awesome_selfhosted_html: install
mkdir -p awesome-selfhosted-html
source .venv/bin/activate && \
hecat --config tests/.hecat.export_html_singlepage.yml

.PHONY: test_import_shaarli # test import from shaarli JSON
test_import_shaarli: install
source .venv/bin/activate && \
Expand Down
1 change: 1 addition & 0 deletions hecat/exporters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""exporters"""
from .markdown_singlepage import render_markdown_singlepage
from .html_singlepage import render_html_singlepage
Loading

0 comments on commit c744f89

Please sign in to comment.