mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 20:52:43 +00:00
wip
This commit is contained in:
@@ -286,6 +286,7 @@ def build(args: argparse.Namespace) -> None:
|
|||||||
generate_archive(articles, archive_template, args.output_dir)
|
generate_archive(articles, archive_template, args.output_dir)
|
||||||
generate_tags(articles, tags_template, tag_template, args.output_dir)
|
generate_tags(articles, tags_template, tag_template, args.output_dir)
|
||||||
generate_search(articles, pages, 'corpus.db')
|
generate_search(articles, pages, 'corpus.db')
|
||||||
|
logger.info("Done.")
|
||||||
|
|
||||||
|
|
||||||
def process_markdown(
|
def process_markdown(
|
||||||
@@ -523,6 +524,7 @@ def generate_search(articles, pages, db):
|
|||||||
path to sqlite file
|
path to sqlite file
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
logger.info("Generating full text search.")
|
||||||
conn = sqlite3.connect(db)
|
conn = sqlite3.connect(db)
|
||||||
with conn:
|
with conn:
|
||||||
conn.executescript("""
|
conn.executescript("""
|
||||||
|
|||||||
Reference in New Issue
Block a user