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

luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d25accff07 update announcementBar and document download style (#200)
2d25accff07 is described below

commit 2d25accff07cbe042618db0ceec2d07d26d0299a
Author: wangyongfeng <[email protected]>
AuthorDate: Thu Feb 23 15:33:28 2023 +0800

    update announcementBar and document download style (#200)
    
    Co-authored-by: wangyf0555 <[email protected]>
---
 .github/workflows/manual-deploy-website.yml |  3 ++
 docusaurus.config.js                        |  5 ++-
 src/pages/download/index.tsx                | 48 ++++++++++++++---------------
 src/theme/AnnouncementBar/styles.module.css |  1 +
 4 files changed, 30 insertions(+), 27 deletions(-)

diff --git a/.github/workflows/manual-deploy-website.yml 
b/.github/workflows/manual-deploy-website.yml
index 941a5550fd2..04e8544a28a 100644
--- a/.github/workflows/manual-deploy-website.yml
+++ b/.github/workflows/manual-deploy-website.yml
@@ -79,6 +79,9 @@ jobs:
           # use your own endpoint
           endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
           folder: build
+    
+    - name: Remove pdf
+      run: rm -rf ./build/assets/files/*.pdf
 
     - name: Deploy Website
       if: ${{ github.event.inputs.branch == 'master' }}
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 1dda8ecee25..1bb8974623e 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -182,9 +182,8 @@ const config = {
         ({
             announcementBar: {
                 id: 'support_us',
-                content: `Do you like Apache Doris?Give us a 🌟 on Github 
-                    <a href="https://github.com/apache/doris"; target="_blank" 
style="display: inline-block; margin-left: 4px; height: 1.2rem;">
-                        <img style="width: 1.2rem; height: 1.2rem;" 
src="./images/github-white-icon.svg">
+                content: `<a href="https://github.com/apache/doris"; 
target="_blank" style="display: flex; width: 100%; align-items: center; 
justify-content: center; margin-left: 4px; text-decoration: none;">Do you like 
Apache Doris?Give us a 🌟 on Github 
+                        <img style="width: 1.2rem; height: 1.2rem; 
margin-left: 0.4rem;" src="./images/github-white-icon.svg">
                     </a>`,
                 backgroundColor: '#3C2FD4',
                 textColor: '#FFFFFF',
diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx
index e0010fe2baa..2f07fbeee7e 100644
--- a/src/pages/download/index.tsx
+++ b/src/pages/download/index.tsx
@@ -402,30 +402,6 @@ export default function Download(): JSX.Element {
                     </CodeBlock>
                 </PageColumn>
             </section>
-            <section className="table-content">
-                <PageColumn
-                    align="left"
-                    title={
-                        <Translate id="download.document" description="文档">
-                            Document
-                        </Translate>
-                    }
-                >
-                    <div className="content">
-                        <p style={{ display: 'flex', alignItems: 'center' }}>
-                            Click to download the latest
-                            <span className="downlaod-document" 
onClick={downloadDocument}>
-                                offline documents{' '}
-                                <img
-                                    style={{ width: '1.2rem', height: 
'1.2rem', paddingLeft: '0.2rem' }}
-                                    
src={require('@site/static/images/icon/download.png').default}
-                                    alt=""
-                                />
-                            </span>
-                        </p>
-                    </div>
-                </PageColumn>
-            </section>
             <section className="table-content">
                 <PageColumn
                     align="left"
@@ -501,6 +477,30 @@ export default function Download(): JSX.Element {
                     </CodeBlock>
                 </PageColumn>
             </section>
+            <section className="table-content">
+                <PageColumn
+                    align="left"
+                    title={
+                        <Translate id="download.document" description="文档">
+                            Document
+                        </Translate>
+                    }
+                >
+                    <div className="content">
+                        <p style={{ display: 'flex', alignItems: 'center' }}>
+                            Click to download the latest
+                            <span className="downlaod-document" 
onClick={downloadDocument}>
+                                offline documents{' '}
+                                <img
+                                    style={{ width: '1.2rem', height: 
'1.2rem', paddingLeft: '0.2rem' }}
+                                    
src={require('@site/static/images/icon/download.png').default}
+                                    alt=""
+                                />
+                            </span>
+                        </p>
+                    </div>
+                </PageColumn>
+            </section>
             <section className="verify">
                 <PageColumn
                     align="left"
diff --git a/src/theme/AnnouncementBar/styles.module.css 
b/src/theme/AnnouncementBar/styles.module.css
index 2e51edff4d0..a9b1a2c5c51 100644
--- a/src/theme/AnnouncementBar/styles.module.css
+++ b/src/theme/AnnouncementBar/styles.module.css
@@ -10,6 +10,7 @@
   background: linear-gradient(270.01deg, #3C2FD5 -12.32%, #7780F4 150.41%);;
   color: var(--ifm-color-black);
   border-bottom: 1px solid var(--ifm-color-emphasis-100);
+  z-index: 1;
 }
 
 html[data-announcement-bar-initially-dismissed='true'] .announcementBar {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to