Browse Source

updated makeidx to stop getting the final slide

master
Julio Biason 7 years ago
parent
commit
5b38fe4d0d
  1. 2
      ajax-sosp-cors-csrf.html
  2. 2
      django-full.html
  3. 2
      django-rest.html
  4. 2
      django.html
  5. 2
      fisl2016.html
  6. 2
      gitflow.html
  7. 2
      gitsvn.html
  8. 2
      gramatica-vim.html
  9. 17
      makeidx.py
  10. 2
      porque-como-opensource.html
  11. 2
      pypoa.html
  12. 2
      python23six.html
  13. 2
      python36.html
  14. 3
      rest.html
  15. 2
      spa.html
  16. 2
      unit-in-unittests-2.html
  17. 2
      vim.html

2
ajax-sosp-cors-csrf.html

@ -51,7 +51,7 @@
<div class="reveal"> <div class="reveal">
<!-- Any section element inside of this container is displayed as a slide --> <!-- Any section element inside of this container is displayed as a slide -->
<div class="slides"> <div class="slides">
<section data-background='_images/ajax-sosp-cors-csrf.png' class='semi-opaque'> <section data-background='_images/ajax-sosp-cors-csrf.png' class='semi-opaque' data-header>
<h1>AJAX / SOSP / CORS / CSRF</h1> <h1>AJAX / SOSP / CORS / CSRF</h1>
<p class='fragment'><small> <p class='fragment'><small>

2
django-full.html

@ -48,7 +48,7 @@
<body> <body>
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section data-backgroun='_images/django-allauth.png'> <section data-background='_images/django-allauth.png' data-header>
<p class='semi-opaque'> <p class='semi-opaque'>
<h1>Django</h1> <h1>Django</h1>
<h2>Uma Introdução</h2> <h2>Uma Introdução</h2>

2
django-rest.html

@ -44,7 +44,7 @@
<body> <body>
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section data-background='_images/django-rest.png'> <section data-background='_images/django-rest.png' data-header>
<h1 class='semi-opaque'>Entendendo Django REST Framework</h1> <h1 class='semi-opaque'>Entendendo Django REST Framework</h1>
</section> </section>

2
django.html

@ -44,7 +44,7 @@
<body> <body>
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section data-background='_images/django-allauth.png'> <section data-background='_images/django-allauth.png' data-header>
<h1 class='semi-opaque'>Entendendo Django</h1> <h1 class='semi-opaque'>Entendendo Django</h1>
</section> </section>

2
fisl2016.html

@ -52,7 +52,7 @@ img {
<body> <body>
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section data-background='_images/fisl2016.png'> <section data-background='_images/fisl2016.png' data-header>
<section> <section>
<h1 class="semi-opaque">FISL 2016</h1> <h1 class="semi-opaque">FISL 2016</h1>
</section> </section>

2
gitflow.html

@ -48,7 +48,7 @@
<div class="reveal"> <div class="reveal">
<!-- Any section element inside of this container is displayed as a slide --> <!-- Any section element inside of this container is displayed as a slide -->
<div class="slides"> <div class="slides">
<section data-background='_images/git-workflow-gitflow.png'> <section data-background='_images/git-workflow-gitflow.png' data-header>
<h1>GIT Flow</h1> <h1>GIT Flow</h1>
</section> </section>

2
gitsvn.html

@ -47,7 +47,7 @@ h1 {
<div class="reveal"> <div class="reveal">
<!-- Any section element inside of this container is displayed as a slide --> <!-- Any section element inside of this container is displayed as a slide -->
<div class="slides"> <div class="slides">
<section data-background='_images/Sketch27014711.png'> <section data-background='_images/Sketch27014711.png' data-header>
<h1>GIT + GIT-SVN</h1> <h1>GIT + GIT-SVN</h1>
</section> </section>

2
gramatica-vim.html

@ -60,7 +60,7 @@
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section> <section>
<section data-background="_images/vim.png"> <section data-background="_images/vim.png" data-header>
<h1 class="semi-opaque">A Gramática do VIM</h1> <h1 class="semi-opaque">A Gramática do VIM</h1>
</section> </section>
</section> </section>

17
makeidx.py

@ -12,6 +12,9 @@ import json
DATA_BACKGROUND = re.compile(r"data-background=['\"](.*?)['\"]") DATA_BACKGROUND = re.compile(r"data-background=['\"](.*?)['\"]")
PRES_TITLE = re.compile(r"<h1.*?>(.*?)</h1>") PRES_TITLE = re.compile(r"<h1.*?>(.*?)</h1>")
HEADER = re.compile(r"section.*data-background=['\"]"
r"(?P<image>.*?)['\"].*data-header"
r"(?P<content>.*?)section", re.M | re.S)
def retrieve_presentation_info(filename): def retrieve_presentation_info(filename):
@ -23,13 +26,19 @@ def retrieve_presentation_info(filename):
with open(filename) as data: with open(filename) as data:
content = data.read() content = data.read()
image = DATA_BACKGROUND.search(content) header = HEADER.search(content)
title = PRES_TITLE.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: 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)) 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: elif not content:
logging.debug('%s has no content', filename) logging.debug('%s has no content', filename)
elif not image: elif not image:

2
porque-como-opensource.html

@ -55,7 +55,7 @@
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section> <section>
<section data-background="_images/osi_keyhole_300X300_90ppi_0.png"> <section data-background="_images/osi_keyhole_300X300_90ppi_0.png" data-header>
<h1 class="semi-opaque">Por que e Como Participar de Projetos Open Source</h1> <h1 class="semi-opaque">Por que e Como Participar de Projetos Open Source</h1>
</section> </section>
</section> </section>

2
pypoa.html

@ -47,7 +47,7 @@ section {
<div class="reveal"> <div class="reveal">
<!-- Any section element inside of this container is displayed as a slide --> <!-- Any section element inside of this container is displayed as a slide -->
<div class="slides"> <div class="slides">
<section data-background='_images/poa.jpg'> <section data-background='_images/poa.jpg' data-header>
<h1>PyPoa 2014</h1> <h1>PyPoa 2014</h1>
<p>7 de Junho de 2014</p> <p>7 de Junho de 2014</p>
</section> </section>

2
python23six.html

@ -51,7 +51,7 @@
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section> <section>
<section data-background="_images/snake-six.jpg"> <section data-background="_images/snake-six.jpg" data-header>
<h1 class="semi-opaque">Python 2 + 3 = Six</h1> <h1 class="semi-opaque">Python 2 + 3 = Six</h1>
</section> </section>
</section> </section>

2
python36.html

@ -55,7 +55,7 @@
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section> <section>
<section data-background='_images/python.jpg'> <section data-background='_images/python.jpg' data-header>
<div class="semi-opaque"> <div class="semi-opaque">
<h1>Python 3.6</h1> <h1>Python 3.6</h1>
<h2>Novidades da versão</h2> <h2>Novidades da versão</h2>

3
rest.html

@ -53,9 +53,8 @@ img {
<body> <body>
<div class="reveal"> <div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides"> <div class="slides">
<section data-background='_images/Seascapeshd.png' class='semi-opaque'> <section data-background='_images/Seascapeshd.png' class='semi-opaque' data-header>
<h1>ReST</h1> <h1>ReST</h1>
<h4>Restructured State Transfer</h4> <h4>Restructured State Transfer</h4>
</section> </section>

2
spa.html

@ -60,7 +60,7 @@ div.code {
<div class="reveal"> <div class="reveal">
<!-- Any section element inside of this container is displayed as a slide --> <!-- Any section element inside of this container is displayed as a slide -->
<div class="slides"> <div class="slides">
<section data-background='_images/Eau_Rouge_1997.jpg' class='semi-opaque'> <section data-background='_images/Eau_Rouge_1997.jpg' class='semi-opaque' data-header>
<h1>SPA</h1> <h1>SPA</h1>
<h2>Single Page Applications</h2> <h2>Single Page Applications</h2>

2
unit-in-unittests-2.html

@ -55,7 +55,7 @@
<div class="reveal"> <div class="reveal">
<div class="slides"> <div class="slides">
<section> <section>
<section data-background="_images/tdd-kentbeck-book.jpg"> <section data-background="_images/tdd-kentbeck-book.jpg" data-header>
<h1 class="semi-opaque">"Unit" em "Unit Tests"</h1> <h1 class="semi-opaque">"Unit" em "Unit Tests"</h1>
</section> </section>
</section> </section>

2
vim.html

@ -55,7 +55,7 @@ img {
<div class="reveal"> <div class="reveal">
<!-- Any section element inside of this container is displayed as a slide --> <!-- Any section element inside of this container is displayed as a slide -->
<div class="slides"> <div class="slides">
<section data-background='_images/vim_dishwash_bar.jpg'> <section data-background='_images/vim_dishwash_bar.jpg' data-header>
<section> <section>
<h1 class='semi-opaque'>Pensando em VIM</h1> <h1 class='semi-opaque'>Pensando em VIM</h1>
</section> </section>

Loading…
Cancel
Save