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

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new e19f38cd52 Minor: add githubs start/fork buttons to documentation page 
(#7588)
e19f38cd52 is described below

commit e19f38cd52f731230cb9651648e2bd7d7a458843
Author: Andrew Lamb <[email protected]>
AuthorDate: Tue Sep 19 06:41:16 2023 -0400

    Minor: add githubs start/fork buttons to documentation page (#7588)
    
    * Minor: add githubs start/fork buttons to documentation page
    
    * fixup
---
 docs/source/conf.py   |  8 +++++++-
 docs/source/index.rst | 10 ++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/docs/source/conf.py b/docs/source/conf.py
index d882654aab..9aa84d49bc 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -102,7 +102,13 @@ html_static_path = ['_static']
 
 html_logo = "_static/images/DataFusion-Logo-Background-White.png"
 
-html_css_files = ["theme_overrides.css"]
+html_css_files = [
+    "theme_overrides.css"
+]
+
+html_js_files = [
+    ("https://buttons.github.io/buttons.js";, {'async': 'true', 'defer': 
'true'}),
+]
 
 html_sidebars = {
     "**": ["docs-sidebar.html"],
diff --git a/docs/source/index.rst b/docs/source/index.rst
index 87c03514ac..bb8e2127f1 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -22,6 +22,16 @@
 Apache Arrow DataFusion
 =======================
 
+.. Code from https://buttons.github.io/
+.. raw:: html
+
+  <p>
+    <!-- Place this tag where you want the button to render. -->
+    <a class="github-button" href="https://github.com/apache/arrow-datafusion"; 
data-size="large" data-show-count="true" aria-label="Star 
apache/arrow-datafusion on GitHub">Star</a>
+    <!-- Place this tag where you want the button to render. -->
+     <a class="github-button" 
href="https://github.com/apache/arrow-datafusion/fork"; data-size="large" 
data-show-count="true" aria-label="Fork apache/arrow-datafusion on 
GitHub">Fork</a>
+  </p>
+
 DataFusion is a very fast, extensible query engine for building high-quality 
data-centric systems in
 `Rust <http://rustlang.org>`_, using the `Apache Arrow 
<https://arrow.apache.org>`_
 in-memory format.

Reply via email to