This is an automated email from the ASF dual-hosted git repository. zhangyu pushed a commit to branch fix-build in repository https://gitbox.apache.org/repos/asf/ambari-website.git
commit e208c246f65c080eb66d5cf420793ef33a4337c4 Author: zRains <[email protected]> AuthorDate: Sun Mar 16 07:45:56 2025 +0000 fix: build --- src/theme/DocItem/Layout/index.tsx | 73 ---------------------- src/theme/DocItem/Layout/styles.module.css | 32 ---------- src/theme/Root.tsx | 33 ---------- .../quick-start/docker-environment-setup.md | 2 +- .../environment-setup/bare-metal-kvm-setup.md | 2 +- .../environment-setup/docker-environment-setup.md | 2 +- .../environment-setup/vagrant-environment-setup.md | 4 +- .../quick-start/installation-guide.md | 2 +- versioned_docs/version-3.0.0/release-notes.md | 8 ++- 9 files changed, 13 insertions(+), 145 deletions(-) diff --git a/src/theme/DocItem/Layout/index.tsx b/src/theme/DocItem/Layout/index.tsx deleted file mode 100644 index 82e2019..0000000 --- a/src/theme/DocItem/Layout/index.tsx +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import React from 'react'; -import clsx from 'clsx'; -import {useWindowSize} from '@docusaurus/theme-common'; -// Using a simpler approach without internal imports -import DocItemPaginator from '@theme/DocItem/Paginator'; -import DocVersionBanner from '@theme/DocVersionBanner'; -import DocVersionBadge from '@theme/DocVersionBadge'; -import DocItemFooter from '@theme/DocItem/Footer'; -import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile'; -import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop'; -import DocItemContent from '@theme/DocItem/Content'; -import DocBreadcrumbs from '@theme/DocBreadcrumbs'; -import styles from './styles.module.css'; -import Breadcrumbs from '@site/src/components/Breadcrumbs'; - -/** - * Decide if the toc should be rendered, on mobile or desktop viewports - */ -function useDocTOC() { - const windowSize = useWindowSize(); - // We'll get these from props instead of internal hooks - return { - hidden: false, - mobile: <DocItemTOCMobile />, - desktop: (windowSize === 'desktop' || windowSize === 'ssr') ? ( - <DocItemTOCDesktop /> - ) : undefined, - }; -} - -export default function DocItemLayout({children}) { - const docTOC = useDocTOC(); - - return ( - <div className="row"> - <div className={clsx('col', !docTOC.hidden && styles.docItemCol)}> - <DocVersionBanner /> - <div className={styles.docItemContainer}> - <article> - <DocVersionBadge /> - {/* Add the custom breadcrumbs component */} - <Breadcrumbs /> - {/* We still render the original DocBreadcrumbs for compatibility */} - <DocBreadcrumbs /> - <DocItemContent>{children}</DocItemContent> - <DocItemFooter /> - </article> - <DocItemPaginator /> - </div> - </div> - {docTOC.desktop && <div className="col col--3">{docTOC.desktop}</div>} - </div> - ); -} diff --git a/src/theme/DocItem/Layout/styles.module.css b/src/theme/DocItem/Layout/styles.module.css deleted file mode 100644 index ed7ef8c..0000000 --- a/src/theme/DocItem/Layout/styles.module.css +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -.docItemContainer { - margin: 0 auto; - padding: 0 0.5rem; -} - -.docItemCol { - max-width: 75rem; -} - -/* Hide the default DocBreadcrumbs when our custom one is shown */ -:global(.breadcrumbsContainer + nav[aria-label="breadcrumbs"]) { - display: none; -} diff --git a/src/theme/Root.tsx b/src/theme/Root.tsx deleted file mode 100644 index e54b9ae..0000000 --- a/src/theme/Root.tsx +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import React from 'react'; -import BackToTopButton from '@site/src/components/BackToTopButton'; - -// Default implementation, that you can customize -function Root({children}) { - return ( - <> - {children} - <BackToTopButton /> - </> - ); -} - -export default Root; diff --git a/versioned_docs/version-3.0.0/quick-start/docker-environment-setup.md b/versioned_docs/version-3.0.0/quick-start/docker-environment-setup.md index f252878..1abc50c 100644 --- a/versioned_docs/version-3.0.0/quick-start/docker-environment-setup.md +++ b/versioned_docs/version-3.0.0/quick-start/docker-environment-setup.md @@ -375,7 +375,7 @@ docker exec -it bigtop_hostname0 ls -la /var/log/ ## Next Steps -Now that your Docker environment is set up, proceed to the [Installation Guide](installation-guide.md) to install and configure Ambari Server and Agents. The installation guide provides standardized instructions that work across all environments (Vagrant, Docker, and bare metal/KVM). +Now that your Docker environment is set up, proceed to the [Installation Guide](./installation-guide.md) to install and configure Ambari Server and Agents. The installation guide provides standardized instructions that work across all environments (Vagrant, Docker, and bare metal/KVM). When following the installation guide, remember: diff --git a/versioned_docs/version-3.0.0/quick-start/environment-setup/bare-metal-kvm-setup.md b/versioned_docs/version-3.0.0/quick-start/environment-setup/bare-metal-kvm-setup.md index 4ceb15c..ab8a6d4 100644 --- a/versioned_docs/version-3.0.0/quick-start/environment-setup/bare-metal-kvm-setup.md +++ b/versioned_docs/version-3.0.0/quick-start/environment-setup/bare-metal-kvm-setup.md @@ -270,7 +270,7 @@ setenforce 0 ## Next Steps -Now that your bare metal or KVM environment is configured, proceed to the [Installation Guide](installation-guide.md) to install and configure Ambari Server and Agents. The installation guide provides standardized instructions that work across all environments (Vagrant, Docker, and bare metal/KVM). +Now that your bare metal or KVM environment is configured, proceed to the [Installation Guide](../installation-guide.md) to install and configure Ambari Server and Agents. The installation guide provides standardized instructions that work across all environments (Vagrant, Docker, and bare metal/KVM). When following the installation guide, remember: diff --git a/versioned_docs/version-3.0.0/quick-start/environment-setup/docker-environment-setup.md b/versioned_docs/version-3.0.0/quick-start/environment-setup/docker-environment-setup.md index f04ccf3..c1db997 100644 --- a/versioned_docs/version-3.0.0/quick-start/environment-setup/docker-environment-setup.md +++ b/versioned_docs/version-3.0.0/quick-start/environment-setup/docker-environment-setup.md @@ -412,7 +412,7 @@ docker exec -it bigtop_hostname0 ls -la /var/log/ ## Next Steps -Now that your Docker environment is set up, proceed to the [Installation Guide](installation-guide.md) to install and configure Ambari Server and Agents. The installation guide provides standardized instructions that work across all environments (Vagrant, Docker, and bare metal/KVM). +Now that your Docker environment is set up, proceed to the [Installation Guide](../installation-guide.md) to install and configure Ambari Server and Agents. The installation guide provides standardized instructions that work across all environments (Vagrant, Docker, and bare metal/KVM). When following the installation guide, remember: diff --git a/versioned_docs/version-3.0.0/quick-start/environment-setup/vagrant-environment-setup.md b/versioned_docs/version-3.0.0/quick-start/environment-setup/vagrant-environment-setup.md index 00829e7..e7b8cff 100644 --- a/versioned_docs/version-3.0.0/quick-start/environment-setup/vagrant-environment-setup.md +++ b/versioned_docs/version-3.0.0/quick-start/environment-setup/vagrant-environment-setup.md @@ -11,7 +11,7 @@ This guide is part of the Quick Start section and covers: 4. Configuring security settings (firewall, SELinux) 5. Preparing the environment for Ambari installation -For complete installation instructions, refer to the [Installation Guide](installation-guide.md). +For complete installation instructions, refer to the [Installation Guide](../installation-guide.md). ## System Requirements @@ -484,7 +484,7 @@ vagrant status vagrant ssh vm1 # Similarly for vm2, vm3 ``` -3. Proceed to the [Installation Guide](installation-guide.md) to install and configure Ambari Server and Agents. +3. Proceed to the [Installation Guide](../installation-guide.md) to install and configure Ambari Server and Agents. ## Common Vagrant Commands diff --git a/versioned_docs/version-3.0.0/quick-start/installation-guide.md b/versioned_docs/version-3.0.0/quick-start/installation-guide.md index a41974b..db52d1d 100644 --- a/versioned_docs/version-3.0.0/quick-start/installation-guide.md +++ b/versioned_docs/version-3.0.0/quick-start/installation-guide.md @@ -4,7 +4,7 @@ This guide covers the installation and setup of Apache Ambari on bare metal, KVM ## Prerequisites -Ensure you have a working environment (bare metal, KVM, Docker, or [Vagrant setup](vagrant-environment-setup.md)) before proceeding. +Ensure you have a working environment (bare metal, KVM, Docker, or [Vagrant setup](./environment-setup/vagrant-environment-setup.md)) before proceeding. ## 1. Setting up Ambari Repository diff --git a/versioned_docs/version-3.0.0/release-notes.md b/versioned_docs/version-3.0.0/release-notes.md index 55089cf..25f84e9 100644 --- a/versioned_docs/version-3.0.0/release-notes.md +++ b/versioned_docs/version-3.0.0/release-notes.md @@ -199,7 +199,13 @@ These roadmap items represent the project's commitment to continuous improvement ## Upgrading to Apache Ambari 3.0.0 -For detailed instructions on upgrading from previous versions, please refer to the [Upgrade Guide](upgrade-guide.md). +:::note + +TODO + +::: + +For detailed instructions on upgrading from previous versions, please refer to the Upgrade Guide. ## Compatibility Matrix --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
