File tree Expand file tree Collapse file tree 5 files changed +47
-2
lines changed
Expand file tree Collapse file tree 5 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 215215 "embed" ,
216216 "gravatar" ,
217217 "sketchviz" ,
218+ "notion" ,
218219]
219220
220221myst_enable_extensions = [
433434 "image" : "_static/logo/logo.png" ,
434435}
435436# Ensures og:image meta tag generation which is not always generated by sphinxext.opengraph
436- ogp_image = "_static/logo/logo.png"
437+ ogp_image = "_static/logo/logo.png"
Original file line number Diff line number Diff line change @@ -9,3 +9,10 @@ list-style: circle
99excerpts:
1010---
1111```
12+
13+ ``` {toctree}
14+ :caption: Secciones
15+ :hidden: true
16+
17+ talk-brainstorming.md
18+ ```
Original file line number Diff line number Diff line change 1+ """A directive to generate an iframe with a Notion page."""
2+
3+ from docutils import nodes
4+ from docutils .parsers .rst import Directive
5+ from sphinx .application import Sphinx
6+ from sphinx .util import logging
7+
8+ logger = logging .getLogger (__name__ )
9+
10+ TEMPLATE : str = """
11+ <iframe src="{url}" width="100%" height="1200" frameborder="0" allowfullscreen />
12+ """
13+
14+
15+ class Notion (Directive ):
16+ has_content = True
17+ final_argument_whitespace = False
18+
19+ def run (self ):
20+ para = nodes .raw (
21+ "" , TEMPLATE .format (url = self .content [0 ]), format = "html"
22+ )
23+ return [para ]
24+
25+
26+ def setup (app : Sphinx ):
27+ app .add_directive ("notion" ,Notion )
28+
29+ return {
30+ "version" : "0.1" ,
31+ "parallel_read_safe" : True ,
32+ "parallel_write_safe" : True ,
33+ }
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ Revisa nuestras normas de como integrarte en la comunidad de Python Perú.
7979```
8080
8181``` {toctree}
82- :caption: Secciónes
82+ :caption: Secciones
8383:hidden: true
8484
8585about.md
Original file line number Diff line number Diff line change 1+ # Brainstorming de Charlas
2+
3+ ``` {notion} https://forested-roadrunner-0a7.notion.site/ebd/1e114afe2a67809c9ff0eb9429b1d3c7?v=1e114afe2a6780d88e41000c2debb2b5
4+ ```
You can’t perform that action at this time.
0 commit comments