From 0d8ae97b8872834a6aca070e59393674eefb7222 Mon Sep 17 00:00:00 2001 From: "kujiu (@rincevent)" Date: Sun, 31 Jan 2021 13:34:25 +0100 Subject: [PATCH] Fix title for admonitions --- README.rst | 7 +++++++ sphinx_gemini_builder/writer.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index b1429e4..a5b0af8 100644 --- a/README.rst +++ b/README.rst @@ -10,3 +10,10 @@ your project. You can add a `gemini_footer` in config, formatted under the Gemini specification. You need to set `gemini_baseurl` for good url in links. + +TODO +---- + +- Table support +- Copy images +- ablog support with RSS generation diff --git a/sphinx_gemini_builder/writer.py b/sphinx_gemini_builder/writer.py index b1fd6ac..61ca1fa 100644 --- a/sphinx_gemini_builder/writer.py +++ b/sphinx_gemini_builder/writer.py @@ -493,7 +493,7 @@ class GeminiTranslator(SphinxTranslator): pass def _visit_admonition(self, node: Element) -> None: - pass + self.add_text(admonitionlabels[node.tagname] + ':') def _depart_admonition(self, node: Element) -> None: self.end_block()