Skip to content

Commit 6c19da6

Browse files
committed
Adding talk brainstorming section
1 parent 4f93d75 commit 6c19da6

File tree

5 files changed

+47
-2
lines changed

5 files changed

+47
-2
lines changed

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
"embed",
216216
"gravatar",
217217
"sketchviz",
218+
"notion",
218219
]
219220

220221
myst_enable_extensions = [
@@ -433,4 +434,4 @@
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"

events.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ list-style: circle
99
excerpts:
1010
---
1111
```
12+
13+
```{toctree}
14+
:caption: Secciones
15+
:hidden: true
16+
17+
talk-brainstorming.md
18+
```

ext/notion.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
8585
about.md

talk-brainstorming.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Brainstorming de Charlas
2+
3+
```{notion} https://forested-roadrunner-0a7.notion.site/ebd/1e114afe2a67809c9ff0eb9429b1d3c7?v=1e114afe2a6780d88e41000c2debb2b5
4+
```

0 commit comments

Comments
 (0)