#7 Add automatic linking from sessions to speakers

닫힘
DeletedUser이 8 년 전를 오픈 · 2개의 코멘트
Deleted User 코멘트됨, 8 년 전

Just as the bios generator automatically creates IDs for speakers based on their last names, I'd like the schedule generator to automatically link people's names to their bios. I recognize that it's probably overkill to actually have the schedule template somehow read the speakers source markdown file to check the speaker exists, so I think that it should just create links with the assumption that there is a file called speakers.html in the same directory as the generated sessions file, and that the speaker exists in the file.

It can determine the ID to put in the URL based on the speaker's name, using the same algorithm that the speakers template uses to generate the ID. However, there is a possibility for mistakes if there are two speakers with the same last name that appear in different orders in the two documents.

Because of this, I think that if we go with this solution, we should add the ability to write some kind of code into the sessions source markdown file to override the speaker ID that's created by the sessions template for a given speaker. Since we currently don't have any speakers with the same name, this override capability can come after the automatic link generation is implemented. (Also, if you can think of a better way to do this, that's awesome -- I just wanted to clarify my thoughts).

Just as the bios generator automatically creates IDs for speakers based on their last names, I'd like the schedule generator to automatically link people's names to their bios. I recognize that it's probably overkill to actually have the schedule template somehow read the speakers source markdown file to check the speaker exists, so I think that it should just create links with the assumption that there is a file called speakers.html in the same directory as the generated sessions file, and that the speaker exists in the file. It can determine the ID to put in the URL based on the speaker's name, using the same algorithm that the speakers template uses to generate the ID. However, there is a possibility for mistakes if there are two speakers with the same last name that appear in different orders in the two documents. Because of this, I think that if we go with this solution, we should add the ability to write some kind of code into the sessions source markdown file to override the speaker ID that's created by the sessions template for a given speaker. Since we currently don't have any speakers with the same name, this override capability can come after the automatic link generation is implemented. (Also, if you can think of a better way to do this, that's awesome -- I just wanted to clarify my thoughts).
Deleted User 코멘트됨, 8 년 전
포스터

Hm, I just noticed that the person creating the program has started putting speaker's organizational affiliations into the session descriptions, in addition to their names. Keep that in mind. We could probably remove the affiliations in the session descriptions if need be, but it seems like a good idea to keep them.

Hm, I just noticed that the person creating the program has started putting speaker's organizational affiliations into the session descriptions, in addition to their names. Keep that in mind. We could probably remove the affiliations in the session descriptions if need be, but it seems like a good idea to keep them.
siddharth ravikumar 커밋 8 년 전에서 이 이슈 언급
Autolinking of speakers in sessions page ready. 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]() -> John Hacker, 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.
rsd 8 년 전가 Close
siddharth ravikumar 코멘트됨, 8 년 전
소유자

The script can auto-link speakers in the schedule MD. See https://pypi.python.org/pypi/lpschedule-generator#auto-linking-speaker-names

The script can auto-link speakers in the schedule MD. See https://pypi.python.org/pypi/lpschedule-generator#auto-linking-speaker-names
로그인하여 이 대화에 참여
레이블 없음
bug
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.