kevinlu1248 / docusaurus-2

https://docusaurus-2-sweepai.vercel.app
1 stars 0 forks source link

sweep : make the git star banner content to right side and add facebook, instagram,twitter icon on left side #5

Open zgmunshi opened 1 year ago

zgmunshi commented 1 year ago

make the git star banner content to right side and add facebook, instagram,twitter icon on left side

Checklist - [X] `docusaurus.config.js` > • Add new items to the navbar configuration for Facebook, Instagram, and Twitter. Each item should have a type of 'doc', a docId corresponding to the social media platform, a position of 'left', and a label with the name of the platform. - [X] `src/pages/index.module.css` > • Find the CSS class associated with the Git star banner. Modify the 'justify-content' property to 'flex-end' to move the content to the right side.
sweep-ai[bot] commented 1 year ago

Here's the PR! https://github.com/kevinlu1248/docusaurus-2/pull/6.

⚡ Sweep Free Trial: I used GPT-3.5 to create this ticket. You have 4 GPT-4 tickets left for the month and 0 for the day. For more GPT-4 tickets, visit our payment portal. To retrigger Sweep, edit the issue.


Step 1: 🔍 Code Search

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/kevinlu1248/docusaurus-2/blob/e2f0b3ef2802c6e668ea249c6ff57f3eda09d149/docusaurus.config.js#L1-L131 https://github.com/kevinlu1248/docusaurus-2/blob/e2f0b3ef2802c6e668ea249c6ff57f3eda09d149/docs/tutorial-extras/_category_.json#L1-L6 https://github.com/kevinlu1248/docusaurus-2/blob/e2f0b3ef2802c6e668ea249c6ff57f3eda09d149/src/pages/index.module.css#L1-L22 https://github.com/kevinlu1248/docusaurus-2/blob/e2f0b3ef2802c6e668ea249c6ff57f3eda09d149/src/components/HomepageFeatures/styles.module.css#L1-L10 https://github.com/kevinlu1248/docusaurus-2/blob/e2f0b3ef2802c6e668ea249c6ff57f3eda09d149/docs/tutorial-basics/_category_.json#L1-L7

Step 2: 🧐 Snippet Analysis

From looking through the relevant snippets, I decided to make the following modifications:

File Path Proposed Changes
docusaurus.config.js Modify docusaurus.config.js with contents:
• Add new items to the navbar configuration for Facebook, Instagram, and Twitter. Each item should have a type of 'doc', a docId corresponding to the social media platform, a position of 'left', and a label with the name of the platform.
src/pages/index.module.css Modify src/pages/index.module.css with contents:
• Find the CSS class associated with the Git star banner. Modify the 'justify-content' property to 'flex-end' to move the content to the right side.

Step 3: 📝 Planning

I have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request:

Fix Git star banner position and add social media icons to navbar sweep/fix-git-star-banner

Description

This PR addresses the following issues:

  • Move the Git star banner content to the right side.
  • Add social media icons (Facebook, Instagram, Twitter) to the left side of the navbar.

Summary of Changes

  • Modified the CSS class associated with the Git star banner to move the content to the right side.
  • Added new items to the navbar configuration in the Docusaurus configuration file for Facebook, Instagram, and Twitter.

Please review and merge these changes. Thank you!


Step 4: ⌨️ Coding

File Instructions Progress Error logs
docusaurus.config.js Modify docusaurus.config.js with contents:
• Add new items to the navbar configuration for Facebook, Instagram, and Twitter. Each item should have a type of 'doc', a docId corresponding to the social media platform, a position of 'left', and a label with the name of the platform.
✅ Commit e2f0b3e No errors.
src/pages/index.module.css Modify src/pages/index.module.css with contents:
• Find the CSS class associated with the Git star banner. Modify the 'justify-content' property to 'flex-end' to move the content to the right side.
✅ Commit 37f814a No errors. I have finished coding the issue. I am now reviewing it for completeness.

Step 5: 🔁 Code Review

Here are my self-reviews of my changes at sweep/fix-git-star-banner.

Here is the 1st review

Hi there,

Great job on your first pull request! I've reviewed your changes and have a few suggestions:

In docusaurus.config.js, you've added new items to the 'items' array for Facebook, Instagram, and Twitter. Please ensure that the 'docId' you've provided for each item corresponds to an existing document in the 'docs' directory of the repository. If these documents don't exist, you'll need to create them.

In src/pages/index.module.css, you've changed the 'justify-content' property of the '.buttons' class from 'center' to 'flex-end'. This change is fine and aligns with the issue's requirement to move the git star banner content to the right side.

Keep up the good work!

I finished incorporating these changes.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. Join Our Discord

zgmunshi commented 1 year ago

what is the status ?

kevinlu1248 commented 1 year ago

@zgmunshi We had an outage this morning, I'll re-run this.

zgmunshi commented 1 year ago

@zgmunshi We had an outage this morning, I'll re-run this.

ok thanks