Skip to content

Commit 730e885

Browse files
committed
feat(ext): Add docname to keywords
1 parent c24cbd3 commit 730e885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sphinxnotes/snippet/ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def extract_excerpt(s: Snippet) -> str:
5757

5858

5959
def extract_keywords(s: Snippet) -> List[str]:
60-
keywords = []
60+
keywords = [s.docname]
6161
# TODO: Deal with more snippet
6262
if isinstance(s, WithTitle) and s.title is not None:
6363
keywords.extend(extractor.extract(s.title.text, strip_stopwords=False))

0 commit comments

Comments
 (0)