Skip to content

Docs/landing page #3677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 7, 2025
Merged

Docs/landing page #3677

merged 3 commits into from
Apr 7, 2025

Conversation

ethanshar
Copy link
Collaborator

Description

  • Inject options for how to render the landing page
  • Update CodeSection to use our new LivePreview

Changelog

NA

Additional info

@@ -22,7 +24,6 @@ export default () => {
const data = await response.json();
const _starsCount = (data.stargazers_count / 1000).toFixed(1);


localStorage.setItem(STARS_COUNT_KEY, _starsCount.toString());
setStarsCount(_starsCount);
Copy link
Contributor

Choose a reason for hiding this comment

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

Stars still showing NanK, the value should come form the config file if _starsCount doesn't have any value.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a fallback to handle this use case

Copy link
Contributor

@adids1221 adids1221 left a comment

Choose a reason for hiding this comment

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

Approved, left a small comment to fix.

@ethanshar ethanshar enabled auto-merge (squash) April 7, 2025 18:14
@ethanshar ethanshar merged commit da53cf1 into master Apr 7, 2025
1 check passed
@ethanshar ethanshar deleted the docs/landing_page branch April 7, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants