Abdelrhman: Fix best practices articles (#4680)

* Fix gtx-trans close sidepanel

* reset the package-lock.json file

* Install the CodeSee workflow. Learn more at https://docs.codesee.io

* Fix Best Practcies roadmaps articels

* Restore files

---------

Co-authored-by: codesee-maps[bot] <86324825+codesee-maps[bot]@users.noreply.github.com>
pull/4696/head
Abdelrhman Kamal 1 year ago committed by GitHub
parent c6c91ef8fe
commit 068847af08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      public/manifest/apple-touch-icon.png
  2. 0
      public/manifest/favicon.ico
  3. 0
      public/manifest/icon152.png
  4. 0
      public/manifest/icon16.png
  5. 0
      public/manifest/icon196.png
  6. 0
      public/manifest/icon32.png
  7. 20
      src/pages/best-practices/[bestPracticeId]/[...topicId].astro

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before

Width:  |  Height:  |  Size: 123 B

After

Width:  |  Height:  |  Size: 123 B

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 267 B

@ -1,6 +1,6 @@
--- ---
import BaseLayout from '../../../layouts/BaseLayout.astro'; import { getAllBestPracticeTopicFiles } from '../../../lib/best-practice-topic';
import { BestPracticeTopicFileType,getAllBestPracticeTopicFiles } from '../../../lib/best-practice-topic'; import type { BestPracticeTopicFileType } from '../../../lib/best-practice-topic';
export async function getStaticPaths() { export async function getStaticPaths() {
const topicPathMapping = await getAllBestPracticeTopicFiles(); const topicPathMapping = await getAllBestPracticeTopicFiles();
@ -20,21 +20,7 @@ export async function getStaticPaths() {
}); });
} }
const { topicId } = Astro.params; const { file } = Astro.props as BestPracticeTopicFileType;
const { file, bestPracticeId, bestPractice, heading } = Astro.props as BestPracticeTopicFileType;
--- ---
<BaseLayout
title={`${heading} - roadmap.sh`}
description={`Free resources to learn ${heading} in ${bestPractice.briefTitle}. Everything you need to know about ${heading} and how it realtes to ${bestPractice.briefTitle}.`}
noIndex={true}
permalink={`/best-practices/${bestPracticeId}/${topicId}`}
>
<div class='bg-gray-50'>
<div class='container py-16 prose prose-p:mt-0 prose-h1:mb-4 prose-h2:mb-3 prose-h2:mt-0'>
<main id='main-content'>
<file.Content /> <file.Content />
</main>
</div>
</div>
</BaseLayout>

Loading…
Cancel
Save