From: Radek Czajka Date: Wed, 24 Sep 2014 13:25:36 +0000 (+0200) Subject: RC2 X-Git-Url: https://git.mdrn.pl/static.git/commitdiff_plain/290c8eac26043188d00ea58c57e1d42d67277aaf?ds=inline RC2 --- diff --git a/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-odp.zip b/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-odp.zip index 8029428..ddffe9c 100644 Binary files a/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-odp.zip and b/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-odp.zip differ diff --git a/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-pdf.zip b/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-pdf.zip index 6a47ad0..3255c87 100644 Binary files a/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-pdf.zip and b/content/media/krotki-kurs-wlasnosci-intelektualnej-slajdy-pdf.zip differ diff --git a/content/texts/intro/informacje-o-kursie.html b/content/texts/intro/informacje-o-kursie.html index 108d419..23de686 100644 --- a/content/texts/intro/informacje-o-kursie.html +++ b/content/texts/intro/informacje-o-kursie.html @@ -26,7 +26,7 @@ Kurs składa się z: ## Informacja o prawach -Publikacja dostępna jest na wolnej licencji +Materiały dostępne są na wolnej licencji Creative Commons Uznanie autorstwa-Na tych samych warunkach 3.0 Polska. diff --git a/parse.py b/parse.py index 4101379..e1296c6 100755 --- a/parse.py +++ b/parse.py @@ -97,14 +97,14 @@ order: %d ''' % (tytul, podrozdzial_n)).encode('utf-8')) elif podrozdzial: if tag.tag == 'h4': - tag.text = re.sub('^[0-9\. ]+', '', tag.text) + tag.text = re.sub('^[0-9\. ]+', '', tag.text).strip() tag.tag = 'h2' slug = slughifi(tag.text) etree.SubElement(tag, "a", {'class': 'permalink', 'id': slug, 'href': '#' + slug, 'title': 'Link do tego miejsca'}) elif tag.tag == 'h5': - tag.text = re.sub('^[0-9\. ]+', '', tag.text) + tag.text = re.sub('^[0-9\. ]+', '', tag.text).strip() tag.tag = 'h3' podrozdzial.write(etree.tostring(tag, encoding='utf-8')) diff --git a/production.yaml b/production.yaml index e77622c..674e371 100644 --- a/production.yaml +++ b/production.yaml @@ -1,6 +1,6 @@ extends: site.yaml -base_url: /.kurs -media_url: /.kurs/media +base_url: /kurs +media_url: /kurs/media deploy_root: deploy_production plugins: - hyde.ext.plugins.meta.MetaPlugin