Skip to content

Commit

Permalink
fix: Mark deprecated to 'google_font' option
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Nov 25, 2023
1 parent 1557dab commit bf3f9e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/directives.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ use this directive into your source.
Override ``revealjs_google_fonts``, but it can specify only one.
.. warning:: This option is not work in v2.x. It will removed in v3.x
.. rst:directive:option:: conf
:type: JSON-string or no-value
Expand Down
2 changes: 2 additions & 0 deletions sphinx_revealjs/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ class RevealjsSlide(Directive): # noqa: D101
}

def run(self): # noqa: D102
if "google_font" in self.options:
logger.warning("DEPRECATED: 'google_font' is not working already.")
node = revealjs_slide()
node.attributes = self.options
node.content = "\n".join(self.content or [])
Expand Down

0 comments on commit bf3f9e5

Please sign in to comment.