Commit 2d4a72e2 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Merge branch 'dev-calendar' into 'master'

Bump to version 0.3.4

See merge request !8
parents f906521d d05d24bf
Pipeline #19414 passed with stages
in 17 seconds
__version__ = '0.3.3'
__version__ = '0.3.4'
......@@ -6,6 +6,7 @@ from bs4 import BeautifulSoup
from datetime import datetime, timedelta
import logging
from pathlib import Path
import urllib.parse
from . import filters, mdparse
from .utils import slugify, md, parse_md_file
......@@ -771,6 +772,7 @@ class SeminarPage(IndexPage):
f"{self.conf.site['url']}/{ical_filepath}"
else:
self.ical_url = ical_outpath.as_posix()
self.ical_url = urllib.parse.quote(self.ical_url, safe='/:')
def get_index_node(self) -> list:
"""Overload get_index_node() for seminar pages"""
......
......@@ -310,7 +310,7 @@ def test_SeminarPage(miniwebsite):
'expérience',
'url': 'séminaire/séminaire-beau-souffrance-réveiller-beauté-horizon-manquer.html#naître-fumée-expérience'
}]
assert page.ical_url == "https://fakelab.fk/séminaire-beau-souffrance-réveiller-beauté-horizon-manquer.ics"
assert page.ical_url == "https://fakelab.fk/s%C3%A9minaire-beau-souffrance-r%C3%A9veiller-beaut%C3%A9-horizon-manquer.ics"
ical_filepath = Path(page._get_filename()).with_suffix('.ics')
ical_outpath = page.conf.output_path / ical_filepath
# Read the 20 first lines of the ical file
......@@ -326,7 +326,7 @@ SUMMARY:Admettre propre existence crainte mot prochain bas
DTSTART;VALUE=DATE-TIME:20180625T042207
DTEND;VALUE=DATE-TIME:20180625T052207
DTSTAMP;VALUE=DATE-TIME:20180625T042207Z
UID:eb2083e6-ce16-4dba-0ff1-8e0242af9fc3
UID:e443df78-9558-867f-5ba9-1faf7a024204
DESCRIPTION:Selon empêcher problème nuage. Paysan époque voici avenir f
leur déjà. Compte avenir divers verre. Se avant plutôt mine demander. S
érieux que prison. Profond doucement descendre prouver type. Expérience
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment