summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
Commit message (Collapse)AuthorAgeFilesLines
* lps_gen.py: Remove unicode mumbo jumbo.rsiddharth2018-09-091-5/+0
|
* lps_gen.py: Change string handling.rsiddharth2018-09-091-2/+2
| | | | | | | unicode(STRING) -> str(STRING) * lps_gen.py (LPSRenderer.get_uid) (LPSpeakersRenderer.mk_uid): Update methods.
* Dedicate to Public Domain.rsiddharth2018-09-091-3/+2
| | | | | | | | | | | | * Makefile: Put under CC0-1.0. * docs/conf.py: Put under CC0-1.0. * libreplanet-templates/2016/lp-schedule.jinja2: Put under CC0-1.0. * libreplanet-templates/2016/lp-speakers.jinja2: Put under CC0-1.0. * libreplanet-templates/2017/lp-schedule.jinja2: Put under CC0-1.0. * libreplanet-templates/2018/lp-schedule.jinja2: Put under CC0-1.0. * lps_gen.py: Put under CC0-1.0. * lpschedule_generator/_version.py: Put under CC0-1.0. * setup.py: Put under CC0-1.0.
* lps_gen.py: Use SPDX license identifier.rsiddharth2018-08-191-13/+2
|
* lps_gen.py: Update LPiCal timeslot regex slurping.rsiddharth2018-03-221-5/+4
| | | | | | | | | | | | | | | | | | Now matches time slots of the form: 09:45 - 10:30: Lorem ipsum dolor sit. or 09:45 - 10:30 - Lorem ipsum dolor sit. or 09:45 - 10:30 * lps_gen.py (LPiCal.timeslot_r): Update variable. (LPiCal.get_timeslot): Update method. * tests/test_lps_gen.py (TestLPiCal.test_get_timeslot): Update test.
* lps_gen.py: Update the timeslot regex to make the name optionalFrançois Revol2018-03-221-2/+2
| | | | Fixes ical generation.
* lps_gen.py: Update LPSRenderer.rsiddharth2017-10-251-0/+4
| | | | | | | | * lps_gen.py (LPSRenderer.paragraph): Update method. * tests/files/lp-sch-sessions-only.md: Update file. * tests/files/lp-sch-tba.md: Update file. * tests/files/lp-sch.md: Update file. * tests/files/lp-sessions-autolink.md: Update file.
* lps_gen.py: LPSRenderer: Add _process_video.rsiddharth2017-10-251-0/+18
| | | | * lps_gen.py (LPSRenderer._process_video): New method.
* lps_gen: Use items() instead iteritems() on dicts.rsiddharth2017-10-221-3/+3
| | | | * lps_gen.py (LPiCal.gen_ical): Update method.
* lps_gen.py: Update print statements.rsiddharth2017-10-221-5/+5
| | | | | | | Use `print` as a function. * lps_gen.py (read_file, write_file, RenderHTML, main): Update functions. * lpschedule_generator/_version.py (__version__): Update variable.
* Add the X-WR-CALNAME property to the ICSFrançois Revol2017-09-251-0/+1
| | | | Giggity doesn't like when it's missing.
* lps_gen.py: Update copyright year.rsiddharth2017-07-061-1/+1
|
* lps_gen.py: Fix whitspace issue.rsiddharth2017-06-011-1/+2
|
* lps_gen.py: Update docstrings.rsiddharth2017-06-011-10/+9
|
* lps_gen.py: Fix whitspace issues.rsiddharth2017-06-011-16/+27
|
* lps_gen.py: Update LPiCal.rsiddharth2017-05-291-3/+8
| | | | | | * lps_gen.py (LPiCal.add_event): Update method. New argument `t_name`. (gen_ical): Update method. * tests/test_lps_gen.py (TestLPiCal.test_add_event): Update method.
* lps_gen: Add LPSRenderer._check_session_title_exists.rsiddharth2017-05-291-0/+33
| | | | | * lps_gen.py (LPSRenderer._check_session_title_exists): New method. (LPSRenderer.header, LPSRenderer.paragraph): Update methods.
* update copyright.rsiddharth2016-05-111-1/+1
|
* Update LPiCal class.rsiddharth2016-03-191-0/+14
| | | | | | | - Detects when timeslot is not given and ignores that timeslot. - Detects when month, day not given and ignores that day. Addresses issue #8.
* Add --ical switchrsiddharth2016-03-181-0/+6
| | | | | | | - With --ical ON and when LP schedule is given, `lps_gen` writes an LP schedule iCal to disk. Addresses issue #8.
* Update LPiCal.__init__ method.rsiddharth2016-03-181-1/+1
| | | | | | - Arg lp_year is stringified before getting copied to self.lp_year. Addresses issue #8.
* Initial version of LPiCal class done.rsiddharth2016-03-181-5/+134
| | | | Addresses issue #8.
* Add LPiCal classrsiddharth2016-03-151-0/+39
| | | | | | | | | Contains two methods at the moment: - get_timeslot - get_month_day Addresses issue #8.
* Moved _version elsewhere.rsiddharth2016-03-051-1/+1
| | | | It is now at lpschedule_generator/_version.py
* changed RenderHTML.rsiddharth2016-03-051-1/+1
| | | | | | | It does not "prettify" the HTML output using BeautifulSoup, instead it just strips extraneous spaces and returns the HTML. Addresses issue #3.
* fixed setup.pyrsiddharth2016-03-051-1/+2
| | | | | | | - version info is loaded from _version.py - to read the README.rst (for long_description), we now use a function defined in setup.py instead of using `lps_gen.read_file` function.
* bumped to version 0.3.1v0.3.1rsiddharth2016-02-191-1/+1
|
* bumped to version 0.3.0v0.3.0rsiddharth2016-02-131-1/+1
|
* setup.py: updated `data_files`.rsiddharth2016-02-131-1/+1
|
* README.rst: Added "Auto-linking speakers names"rsiddharth2016-02-131-1/+1
| | | | | | sub-section under "LP schedule" section. Addresses issue #7.
* lps_gen.py: removed extraneous blank line.rsiddharth2016-02-131-1/+0
|
* Readability change to LPSpeakersRenderer.mk_uidrsiddharth2016-02-131-2/+2
| | | | Arg `text` -> `speaker_block`.
* Edited comment in LPSpeakersMarkdown.rsiddharth2016-02-131-1/+1
|
* Autolinking of speakers in sessions page ready.rsiddharth2016-02-131-3/+54
| | | | | | | | | | | | | | | | If "John Hacker" is the speaker that has to be autolinked in the sessions MD file; the markup to autolink is [John Hacker](). [John Hacker]() -> <a href="speakers.html#hacker">John Hacker</a>, if id for "John Hacker" is available in the `speaker.ids` file[1]. [1]: The `speakers.ids` file is automatically written to the disk (in the current working directory) when the speakers' bio page is generated. List of speakers that are autolinked but don't have an id, are written to the `speakers.noid` file when the sessions page is generated. Addresses issue #7.
* Fixed comment in LPSpeakersRendererrsiddharth2016-02-131-1/+1
|
* LPSpeakersMarkdown writes speakers.ids to disk.rsiddharth2016-02-131-12/+18
| | | | | | | | The `speaker.ids` file contains a mapping of the speakers and their corresponding ids. This file will later be used by LPSMarkdown and LPSRenderer to auto link speakers while generating the sessions page. Addresses issue #7
* read_file: docstring update.rsiddharth2016-02-131-1/+2
|
* lps_gen.py: blank line fix.rsiddharth2016-02-131-0/+1
|
* Introduced JSON utils.rsiddharth2016-02-131-1/+41
| | | | json_read and json_write
* bumped to 0.2.0v0.2.0rsiddharth2016-02-071-1/+1
| | | | Addresses #1
* updated main()rsiddharth2016-02-071-1/+15
| | | | | | | | | | | | | | | Added two mutually exclusive switches: --schedule --speakers If --schedule switch is used, the lps_gen inteprets that the template and the MD file corresponding to LP schedule. If --speakers switch is used, the lps_gen inteprets that the template and the MD file corresponding to LP speakers. Address issue #1.
* updated RenderHTML function.rsiddharth2016-02-071-4/+4
| | | | | Made it generic so that it can be used to render both the schedule and the speakers'.
* updated LPSpeakersRenederer class.rsiddharth2016-02-071-4/+5
| | | | | | | | | | Changed the way speaker' bio are parsed into the lpspeakers_dict dictionary. As a side effect, there is no need to put a placeholder (NO_IMAGE) when the image for a speaker is not available. Addresses issue #1.
* Initial version LP Speakers Renderer ready.rsiddharth2016-02-061-0/+109
| | | | | | | | | | | | - New classes: - LPSpeakersRenderer - LPSpeakersMarkdown + tests for them - New package dependency - unidecode Address issue #1.
* bumped to version 0.1.1v0.1.1rsiddharth2016-01-281-1/+1
|
* updated README.rstrsiddharth2016-01-281-1/+1
| | | | | | Added link to lp-schd-sessions-only.md Fixed link to lp-schd.md
* bumped to 0.1.1b1rsiddharth2016-01-281-1/+1
|
* lps_gen accepts template as arg.rsiddharth2016-01-281-16/+15
| | | | | | | | | As per Zak's request, the script now requires the user to pass the template as (the first) argument to the script. The script does not use the template that is part of the lpschedule-generator module; indeed the internal template will be deleted later.
* changed 2016 template.rsiddharth2016-01-281-1/+1
| | | | | | | - "Day" and "Timeslots" are not collapsible. - Changed the organization of session content. - Room is not part of the collapsible content. - Room and "Details" button are on the same line.
* bumped to 0.1.0v0.1.0rsiddharth2015-12-201-1/+1
|