AJAX / SOSP / CORS / CSRF
diff --git a/django-full.html b/django-full.html
index 159525e..a6adb6e 100644
--- a/django-full.html
+++ b/django-full.html
@@ -48,7 +48,7 @@
-
+
Django
Uma Introdução
diff --git a/django-rest.html b/django-rest.html
index 4ea5329..bffe67a 100644
--- a/django-rest.html
+++ b/django-rest.html
@@ -44,7 +44,7 @@
-
+
Entendendo Django REST Framework
diff --git a/django.html b/django.html
index 3fabf5e..938b093 100644
--- a/django.html
+++ b/django.html
@@ -44,7 +44,7 @@
-
+
diff --git a/fisl2016.html b/fisl2016.html
index 733853e..f7b1aae 100644
--- a/fisl2016.html
+++ b/fisl2016.html
@@ -52,7 +52,7 @@ img {
-
+
diff --git a/gitflow.html b/gitflow.html
index f853e0b..f2aa7ae 100644
--- a/gitflow.html
+++ b/gitflow.html
@@ -48,7 +48,7 @@
-
+
diff --git a/gitsvn.html b/gitsvn.html
index a70b808..a612092 100644
--- a/gitsvn.html
+++ b/gitsvn.html
@@ -47,7 +47,7 @@ h1 {
-
+
diff --git a/gramatica-vim.html b/gramatica-vim.html
index ba8867c..751ec9c 100644
--- a/gramatica-vim.html
+++ b/gramatica-vim.html
@@ -60,7 +60,7 @@
-
diff --git a/makeidx.py b/makeidx.py
index 090c4fe..4e351a8 100644
--- a/makeidx.py
+++ b/makeidx.py
@@ -12,6 +12,9 @@ import json
DATA_BACKGROUND = re.compile(r"data-background=['\"](.*?)['\"]")
PRES_TITLE = re.compile(r"(.*?)")
+HEADER = re.compile(r"section.*data-background=['\"]"
+ r"(?P.*?)['\"].*data-header"
+ r"(?P.*?)section", re.M | re.S)
def retrieve_presentation_info(filename):
@@ -23,13 +26,19 @@ def retrieve_presentation_info(filename):
with open(filename) as data:
content = data.read()
- image = DATA_BACKGROUND.search(content)
- title = PRES_TITLE.search(content)
+ header = HEADER.search(content)
+ if not header:
+ logging.debug('%s has no header', filename)
+ return result
+
+ logging.debug('Header: %r', header.groupdict())
+ image = header.groupdict()['image']
+ title = PRES_TITLE.search(header.groupdict()['content'])
if content and image and title:
- logging.debug('Image for %s = %s', filename, image.group(1))
+ logging.debug('Image for %s = %s', filename, image)
logging.debug('Title for %s = %s', filename, title.group(1))
- result = (image.group(1), title.group(1))
+ result = (image, title.group(1))
elif not content:
logging.debug('%s has no content', filename)
elif not image:
diff --git a/porque-como-opensource.html b/porque-como-opensource.html
index 927e1bd..cbb7d3f 100644
--- a/porque-como-opensource.html
+++ b/porque-como-opensource.html
@@ -55,7 +55,7 @@
-
+
Por que e Como Participar de Projetos Open Source
diff --git a/pypoa.html b/pypoa.html
index 9c076b5..313480e 100644
--- a/pypoa.html
+++ b/pypoa.html
@@ -47,7 +47,7 @@ section {
-
+
PyPoa 2014
7 de Junho de 2014
diff --git a/python23six.html b/python23six.html
index 3e677c6..db561aa 100644
--- a/python23six.html
+++ b/python23six.html
@@ -51,7 +51,7 @@
-
diff --git a/python36.html b/python36.html
index 866dbbc..50fe301 100644
--- a/python36.html
+++ b/python36.html
@@ -55,7 +55,7 @@
-
+
Python 3.6
Novidades da versão
diff --git a/rest.html b/rest.html
index a616dea..d89b15e 100644
--- a/rest.html
+++ b/rest.html
@@ -53,9 +53,8 @@ img {
-
-
+
ReST
Restructured State Transfer
diff --git a/spa.html b/spa.html
index 63ab9bd..a02a3fa 100644
--- a/spa.html
+++ b/spa.html
@@ -60,7 +60,7 @@ div.code {
-
+
SPA
Single Page Applications
diff --git a/unit-in-unittests-2.html b/unit-in-unittests-2.html
index 67aec8e..5a94d4e 100644
--- a/unit-in-unittests-2.html
+++ b/unit-in-unittests-2.html
@@ -55,7 +55,7 @@
-
diff --git a/vim.html b/vim.html
index b60812a..1a2643f 100644
--- a/vim.html
+++ b/vim.html
@@ -55,7 +55,7 @@ img {