This is an automated email from the ASF dual-hosted git repository.

kpumuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/thrift-website.git


The following commit(s) were added to refs/heads/main by this push:
     new e4f3b9d  Added Apache Thrift changelog page
e4f3b9d is described below

commit e4f3b9d1345a845758fbb840741d281d10a3305e
Author: Dmytro Shteflyuk <[email protected]>
AuthorDate: Wed Apr 29 13:23:46 2026 -0400

    Added Apache Thrift changelog page
---
 _plugins/remote_snippets.rb | 6 ++++++
 changelog.md                | 5 +++++
 download.md                 | 2 ++
 index.md                    | 1 +
 4 files changed, 14 insertions(+)

diff --git a/_plugins/remote_snippets.rb b/_plugins/remote_snippets.rb
index 9f90f70..c5620b7 100644
--- a/_plugins/remote_snippets.rb
+++ b/_plugins/remote_snippets.rb
@@ -27,6 +27,12 @@ class RemoteSnippet < Liquid::Tag
     content = ""
     if @range == "all"
       URI.open(url) {|f| content = f.read }
+    elsif @range.start_with?("#")
+      header, count = @range.split(",", 2)
+      header = "#{header} "
+      count = Integer(count) + 1
+      found = 0
+      URI.open(url) {|f| content = f.each_line.take_while { |line| found += 
(line.start_with?(header) ? 1 : 0); found <= count }.join() }
     else
       rangenums = @range.split(",", 2)
       first = 0
diff --git a/changelog.md b/changelog.md
new file mode 100644
index 0000000..b31868b
--- /dev/null
+++ b/changelog.md
@@ -0,0 +1,5 @@
+---
+title: "Changelog"
+---
+
+{% remote_snippet CHANGES.md direct ##,3 %}
diff --git a/download.md b/download.md
index 443d7f6..fb4b4cf 100644
--- a/download.md
+++ b/download.md
@@ -5,6 +5,8 @@ title: "Download"
 ## Release
 The latest stable release of Thrift is {{ site.current_release }} (released on 
{{ site.current_release_date }}).
 
+See the [Apache Thrift changelog](/changelog) for release notes and 
development history.
+
 * [thrift-{{ site.current_release }}.tar.gz]({{ site.mirror_url }}/thrift/{{ 
site.current_release }}/thrift-{{ site.current_release }}.tar.gz) \[[PGP]({{ 
site.release_url }}/{{ site.current_release }}/thrift-{{ site.current_release 
}}.tar.gz.asc)\]
 \[[SHA256]({{ site.release_url }}/{{ site.current_release }}/thrift-{{ 
site.current_release }}.tar.gz.sha256)\]
 \[[SHA1]({{ site.release_url }}/{{ site.current_release }}/thrift-{{ 
site.current_release }}.tar.gz.sha1)\]
diff --git a/index.md b/index.md
index 07149fc..286d218 100644
--- a/index.md
+++ b/index.md
@@ -58,6 +58,7 @@ title: Home
     </p>
     <p>
       <h4>[<a href="/download">Other Downloads</a>]</h4>
+      <h4>[<a href="/changelog">Changelog</a>]</h4>
     </p>
   </div>
 </div>

Reply via email to