JmlrOrg / JmlrOrg/webpage

Include Month in Formatting of Dates for RSS Feeds

Open
#97 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
11
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Currently the date formatting in the RSS feed is wrong which can cause some aggregators to ignore that field. I have proposed a fix to this in #96.

However, the current feed still only publishes the year the article was published and not the month. I have written a small function to extract the month and year from the .tex file, but I am unsure where this would be implemented in the code as src/gen_json.py appears to be deprecated. Would it be possible to implement this somewhere so that the info.json file for each article includes the published month and year?

The following code makes some assumptions about the positioning of Shortheadings and jmlrheading which may not always be correct. The code in #96 code then be updated to check if the pubDate field is present in info.json and if not just use the year.

def getPubDate(src):
    # in v19 Shortheadings always follows jmlrheading heading so we split
    date = re.split(r"\\ShortHeadings", src)[0]
    # we then split by jmlrheading which leaves only that package input
    date = re.split(r"\\jmlrheading", date)[1]
    # we remove newlines to make it a one line string
    date = re.sub(r"\n", "", date)
    # extract a pattern of the form '{nn/nn}' or '{n/nn}' where n is a number
    # choose the last match to get pubDate and not submission date
    date = re.findall(r"\{\d?\d\/\d\d\}", date)[-1]
    # remove curly brackets
    date = re.sub(r"[{}]", "", date)
    return date

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how article .tex files are converted into per-article info.json files; src/gen_json.py is identified as deprecated, so locate the current entry point. Compare the proposed getPubDate logic with the change discussed in #96, and consider the work complete when info.json includes the publication month and year for RSS consumption.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tex
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.