Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Oct 20, 2024
1 parent 7480bdb commit 41473e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/sphinxnotes/snippet/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ def gen_index_id(self) -> str:

def stringify(self, key: DocID, value: list[Item]) -> str:
"""Overwrite PDict.stringify."""
return key[1]
return key[1] # docname
1 change: 0 additions & 1 deletion src/sphinxnotes/snippet/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def __init__(self, node: nodes.literal_block) -> None:
# of the code block. This convention also applies to the code,
# code-block, sourcecode directive.
self.desc = para
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
super().__init__(para, node)
elif caption := node.get('caption'):
# Use caption as descritpion.
Expand Down

0 comments on commit 41473e7

Please sign in to comment.