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

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

commit 2a60c27205c8f340ef8552a8e6c58216f434a480
Author: glass-panel <[email protected]>
AuthorDate: Wed Jul 16 17:35:21 2025 +0800

    Fix notice bar display
---
 site/docusaurus.config.js    | 13 +++++++++----
 site/src/pages/powered-by.md |  9 +++++----
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/site/docusaurus.config.js b/site/docusaurus.config.js
index 0503c07ae..8e591d8d4 100644
--- a/site/docusaurus.config.js
+++ b/site/docusaurus.config.js
@@ -46,6 +46,13 @@ const config = {
       autolinks?.forEach((link) => {
         file.fileContent = file.fileContent.replaceAll(link, `[${link.slice(1, 
-1)}](${link.slice(1, -1)})`);
       });
+      const notices = file.fileContent.match(/^:::([\s\S]+?)^:::$/gm);
+      notices?.forEach((n) => {
+        const lines = n.split('\n');
+        lines[0] = '**' + lines[0].split(' ').slice(2).join(' ') + '** <br/>';
+        lines.pop(); // Remove the last line which is `:::`
+        file.fileContent = file.fileContent.replaceAll(n, lines.map(i=>'> 
'+i).join('\n'));
+      });
       return file.fileContent;
     },
 
@@ -68,8 +75,7 @@ const config = {
           sidebarPath: './sidebars.js',
           // Please change this to your repo.
           // Remove this to remove the "edit this page" links.
-          editUrl:
-            
'https://github.com/apache/incubator-teaclave-website/tree/master/sgx-sdk-api-docs',
+          editUrl: undefined,
           routeBasePath: '/',
           include: [
             '*.md',
@@ -95,8 +101,7 @@ const config = {
           },
           // Please change this to your repo.
           // Remove this to remove the "edit this page" links.
-          editUrl:
-            
'https://github.com/apache/incubator-teaclave-website/tree/master/site/blog',
+          editUrl: undefined,
           // Useful options to enforce blogging best practices
           onInlineTags: 'warn',
           onInlineAuthors: 'ignore',
diff --git a/site/src/pages/powered-by.md b/site/src/pages/powered-by.md
index ddcf5b6e4..f1c160ced 100644
--- a/site/src/pages/powered-by.md
+++ b/site/src/pages/powered-by.md
@@ -64,7 +64,8 @@ and projects using and contributing to Teaclave.
     framework for defining and deploying collaborative, privacy-preserving
     computations amongst a group of mutually mistrusting individuals.
 
-> Want to appear on this page?
-> Submit a [pull 
request](https://github.com/apache/incubator-teaclave-website/edit/master/site/powered-by.md)
-> or send a quick description of your organization and usage
-> to the [mailing list](/community/#mailing-lists) and we'll add you.
+::: tip Want to appear on this page?
+Submit a [pull 
request](https://github.com/apache/incubator-teaclave-website/edit/master/site/powered-by.md)
+or send a quick description of your organization and usage
+to the [mailing list](/community/#mailing-lists) and we'll add you.
+:::
\ No newline at end of file


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

Reply via email to