Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-12079

Determine lsstdoc date for Lander from \date command or Git

    Details

      Description

      For PDF landing pages (Lander project), determine the revision date metadata for an lsstdoc-based LaTeX document through these methods, in priority:

      1. Date provided in \date command
      2. Git timestamp for the most recent commit that affected document content.
      3. Run time

      This will make the revision dates posted on the document landing pages more consistent with the dates printed in the PDF. It will also prevent the post revision date from changing for administrative commits to a document's repo.

        Attachments

          Activity

          Hide
          jsick Jonathan Sick added a comment - - edited

          Tim Jenness, could you look at this new functionality in metasrc to get accurate revision dates from lsstdoc documents for landing pages?

          Show
          jsick Jonathan Sick added a comment - - edited Tim Jenness , could you look at this new functionality in metasrc to get accurate revision dates from lsstdoc documents for landing pages?
          Hide
          tjenness Tim Jenness added a comment -

          Looks good. I have some comments on docstrings and case insensitivity on the PR.

          Show
          tjenness Tim Jenness added a comment - Looks good. I have some comments on docstrings and case insensitivity on the PR.
          Hide
          jsick Jonathan Sick added a comment -

          Thanks Tim Jenness. Deployed at lander==0.1.8 and metasrc==0.2.1 (will be picked up automatically be existing landing page-enabled documents).

          I've implemented the logic for ignoring the \date command with draft documents so you can implement that lsstdoc too.

          Show
          jsick Jonathan Sick added a comment - Thanks Tim Jenness . Deployed at lander==0.1.8 and metasrc==0.2.1 (will be picked up automatically be existing landing page-enabled documents). I've implemented the logic for ignoring the \date command with draft documents so you can implement that lsstdoc too.

            People

            • Assignee:
              jsick Jonathan Sick
              Reporter:
              jsick Jonathan Sick
              Reviewers:
              Tim Jenness
              Watchers:
              Jonathan Sick, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel