kou commented on PR #408:
URL: https://github.com/apache/arrow-site/pull/408#issuecomment-1738083986

   > My rationale in proposing to remove the specific version release link is 
that the value in avoiding a click through was not worth the the potential 
confusion if the link was stale (e.g. points at an old release)
   
   I understand.
   
   > If there is some straightforward / automated way to ensure it stays up to 
date, perhaps we can do that instead.
   
   OK. How about the following?
   
   ```diff
   diff --git a/_data/versions.yml b/_data/versions.yml
   index 8273c1d1801..b68e9385490 100644
   --- a/_data/versions.yml
   +++ b/_data/versions.yml
   @@ -19,7 +19,7 @@ current:
      number: '13.0.0'
      pinned_number: '13.0.*'
      major_number: '13'
   -  date: '23 August 2023'
   +  date: 2023-08-23
      git-tag: 'b7d2f7ffca66c868bd2fce5b3749c6caa002a7f0'
      github-tag-link: 
'https://github.com/apache/arrow/releases/tag/apache-arrow-13.0.0'
      release-notes: 'https://arrow.apache.org/release/13.0.0.html'
   diff --git a/arrow.rdf b/arrow.rdf
   index fb2d6e79784..296ecae313f 100644
   --- a/arrow.rdf
   +++ b/arrow.rdf
   @@ -1,3 +1,5 @@
   +---
   +---
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl"?>
    <rdf:RDF xml:lang="en"
   @@ -49,8 +51,8 @@
        <release>
          <Version>
            <name>Apache Arrow</name>
   -        <created>2022-10-31</created>
   -        <revision>10.0.0</revision>
   +        <created>{{ site.data.versions.current.date }}</created>
   +        <revision>{{ site.data.versions.current.number }}</revision>
          </Version>
        </release>
        <repository>
   ```
   
   * We can refer 
https://github.com/apache/arrow-site/blob/main/_data/versions.yml data by `{{ 
site.data.versions... }}` by adding YAML front matter. (Empty YAML front matter 
is added in this case.)
   * We already have the current release information in the file.
   * The file is generated automatically in apache/arrow release process. [*] 
(I can fix date format later in apache/arrow.) 
   
   [*] 
https://github.com/apache/arrow/blob/aca1d3eeed3775c2f02e9f5d59d62478267950b1/dev/release/post-03-website.sh#L238-L272


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to