You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by tw...@apache.org on 2023/12/27 13:57:34 UTC

(incubator-fury-site) branch main updated: chore: nav bar ASF links (#96)

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

twice pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury-site.git


The following commit(s) were added to refs/heads/main by this push:
     new dc542d5  chore: nav bar ASF links (#96)
dc542d5 is described below

commit dc542d5eee5e8e41dbf228c97d15308d0c0a51ce
Author: Suyan <su...@gmail.com>
AuthorDate: Wed Dec 27 21:57:31 2023 +0800

    chore: nav bar ASF links (#96)
    
    ![image](https://github.com/apache/incubator-fury-site/assets/24221472/29ebdb20-23f6-413a-83b1-900e07c78d5c)
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 docusaurus.config.ts | 42 +++++++++++++++++++++++++++++++++++++++++-
 src/css/custom.css   | 20 +++++++++++++++++++-
 2 files changed, 60 insertions(+), 2 deletions(-)

diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index c97954d..b1a41c2 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -77,10 +77,50 @@ const config: Config = {
           label: 'Guide',
         },
         {to: '/blog', label: 'Blog', position: 'right'},
+        {
+          type: 'dropdown',
+          label: 'ASF',
+          position: 'right',
+          items: [
+            {
+              label: 'Foundation',
+              to: 'https://www.apache.org/'
+            },
+            {
+              label: 'License',
+              to: 'https://www.apache.org/licenses/'
+            },
+            {
+              label: 'Events',
+              to: 'https://www.apache.org/events/current-event.html'
+            },
+            {
+              label: 'Privacy',
+              to: 'https://privacy.apache.org/policies/privacy-policy-public.html'
+            },
+            {
+              label: 'Security',
+              to: 'https://www.apache.org/security/'
+            },
+            {
+              label: 'Sponsorship',
+              to: 'https://www.apache.org/foundation/sponsorship.html'
+            },
+            {
+              label: 'Thanks',
+              to: 'https://www.apache.org/foundation/thanks.html'
+            },
+            {
+              label: 'Code of Conduct',
+              to: 'https://www.apache.org/foundation/policies/conduct.html'
+            }
+          ]
+        },
         {
           href: 'https://github.com/apache/incubator-fury',
-          label: 'GitHub',
           position: 'right',
+          className: 'header-github-link',
+          'aria-label': 'GitHub repository',
         },
       ],
     },
diff --git a/src/css/custom.css b/src/css/custom.css
index eb6c902..bae8e3a 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -31,4 +31,22 @@
 
 .navbar__logo img {
   width: 80%;
-}
\ No newline at end of file
+}
+
+.header-github-link:hover {
+  opacity: 0.6;
+}
+
+.header-github-link::before {
+  content: '';
+  width: 24px;
+  height: 24px;
+  display: flex;
+  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.52 [...]
+  no-repeat;
+}
+
+[data-theme='dark'] .header-github-link::before {
+  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135- [...]
+  no-repeat;
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org