Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
remove "doc cards" from tutorials and guides pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Mar 26, 2024
1 parent 7fb57ff commit 85894ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions docs/tutorials/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ sidebar_custom_props:
label: Tutorials
---

import DocCardList from "@theme/DocCardList";

:::danger These are not the droids you're looking for

This page has been migrated to the Stellar Developers documentation. Please [click here](https://developers.stellar.org/docs/smart-contracts/example-contracts) for the most up-to-date information
Expand All @@ -17,6 +15,4 @@ This page has been migrated to the Stellar Developers documentation. Please [cli

The Soroban team has put together a large collection of [example contracts] to demonstrate use of the Soroban smart contracts platform. For many of these example contracts, we've written an accompanying "tutorial" that will walk you through the example contracts and describe a bit more about their design. You can think of these "tutorials" as example contracts that end with a deployable smart contract. You can use the provided filters to find a relevant tutorial for your experience level.

<DocCardList />

[example contracts]: https://github.com/stellar/soroban-examples
8 changes: 0 additions & 8 deletions src/theme/DocItem/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {useDoc} from '@docusaurus/theme-common/internal';
import LastUpdated from '@theme/LastUpdated';
import EditThisPage from '@theme/EditThisPage';
import TagsListInline from '@theme/TagsListInline';
import DocCardList from '@theme/DocCardList';

import ReaderFeedback from '@site/src/components/ReaderFeedback';
import styles from './styles.module.css';
Expand Down Expand Up @@ -52,18 +51,11 @@ export default function DocItemFooter() {
const canDisplayTagsRow = tags.length > 0;
const canDisplayEditMetaRow = !!(editUrl || lastUpdatedAt || lastUpdatedBy);
const canDisplayFooter = canDisplayTagsRow || canDisplayEditMetaRow;
const canDisplayDocCardsOnGuide = metadata.permalink.startsWith('/docs/guides')
if (!canDisplayFooter) {
return null;
}
return (
<>
{canDisplayDocCardsOnGuide &&
<div className={clsx(metadata.permalink === '/docs/guides/' ? 'margin-top--lg' : 'margin-top--xl')}>
{metadata.permalink !== '/docs/guides/' && <h3>Guides in this category:</h3>}
<DocCardList />
</div>
}
<ReaderFeedback pageId={metadata.unversionedId} />
<footer
className={clsx(ThemeClassNames.docs.docFooter, 'docusaurus-mt-lg')}>
Expand Down

0 comments on commit 85894ab

Please sign in to comment.