Skip to content

Commit

Permalink
fix: resolved getting started documentation (#100)
Browse files Browse the repository at this point in the history
* fix: resolved 404 not found

* chore: confined auto links for only h1 & h2 tags

* chore: minor changes
  • Loading branch information
sboy99 committed Mar 19, 2023
1 parent 855f029 commit 3165787
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
13 changes: 6 additions & 7 deletions docs/guides/starting-contribution/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ There are 2 ways you can add your profile :

## Step 1:

### 1. Visit the <Link href="https://github.com/pbclife/gitopener.vercel.app">GitOpener repo</Link>
### 1. Visit the [GitOpener repo](https://github.com/pbclife/gitopener.vercel.app)

![repo](https://user-images.githubusercontent.com/95094057/218765545-f6586a18-c194-42d5-a5aa-45cf42e5b5ee.png)

Expand All @@ -23,12 +23,13 @@ There are 2 ways you can add your profile :

![addFile](https://user-images.githubusercontent.com/95094057/218765622-86d41908-343d-403f-891e-4a8e0b035ce3.png)

### 4. Create your file named `contribution/<Your GitHub username>`, and append `.mdx` (for example `contribution/Aadarsh805.mdx`)
### 4. Create your file named `contribution/<Your GitHub username>`, and append `.mdx` for example `contribution/Aadarsh805.mdx`

![createProfile](https://user-images.githubusercontent.com/95094057/218765648-f408a8f0-efa3-4c81-97c9-810db37f7235.png)

### 5. For the content use the mdx structure below:
```

```markdown github_username.mdx
---
author: Aadarsh Thakur
github_username: Aadarsh805
Expand Down Expand Up @@ -60,8 +61,6 @@ I love building cool projects, contributing to OpenSource and getting involved i

### 6. Add Projects

<!-- -->

### 7. Click `Create pull request`

### 8. Now you need to wait to have your Pull Request reviewed
Expand All @@ -70,6 +69,6 @@ I love building cool projects, contributing to OpenSource and getting involved i

Looking for inspiration? You can view the following profiles for an example:

- ![Sagar Bera](https://gitopener.vercel.app/contribution/sboy99)
- [Sagar Bera](https://gitopener.vercel.app/contribution/sboy99)

- ![Aadarsh Thakur](https://gitopener.vercel.app/contribution/Aadarsh805)
- [Aadarsh Thakur](https://gitopener.vercel.app/contribution/Aadarsh805)
2 changes: 1 addition & 1 deletion src/components/contributorProfilePage/Skills.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Skills: FC<SkillsProps> = ({ children, title, desc }) => {
return (
<>
{title && (
<div className="prose mb-4 max-w-lg ">
<div className="prose my-4 mb-4 max-w-lg">
<h3>{title}</h3>
{desc && <p>{desc}</p>}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/contributorProfilePage/Socials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function arrangeSocialLinks(

if (tLink) {
tLink.to = social[link] as string;
if (featuredLinks.length <= 2) featuredLinks.push(tLink);
if (featuredLinks.length < 3) featuredLinks.push(tLink);
else otherLinks.push(tLink);
}
count++;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/mdx/getMdxContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getMdxContent = async (
rehypePrism,
rehypeSlug,
...rehypePlugins,
[rehypeAutolinkHeadings, { behavior: `wrap` }],
[rehypeAutolinkHeadings, { behavior: `wrap`, test: ['h1', 'h2'] }],
],
},
});
Expand Down

1 comment on commit 3165787

@vercel
Copy link

@vercel vercel bot commented on 3165787 Mar 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.