styled-components-website

The styled-components website and documentation

Github星跟踪图

styled-components.com

The styled-components website. Built with Next.js, Preact and (of course) styled-components!

Contributing

Thank you so much for wanting to contribute to the website! We could really use a hand at making it the best it can be, see the issues for some ideas on what to do.

If you've never worked with the technologies used in this repo, here are some links that may help:

Running locally

To develop the website locally, you'll want to run the development server:

# Download the repo
git clone https://github.com/styled-components/styled-components-website
# Enter the repo
cd styled-components-website
# Install the dependencies
npm install
# Start local development
npm run dev

Note: This requires Node.js and npm to be set up locally, see nodejs.org for more information.

Updating the visual diffs

If you add a new section or materially change the website, it probably will trigger the image comparison diff snapshot to fail. These can be updated via:

yarn test -u

Folder structure

This is what each folder correlates to:

styled-components-website
├── components/  # Shared components
├── pages/       # The actual pages, mostly containing layout; the directory directly correlates to the URL. (e.g. pages/docs/basics.js === styled-components.com/docs/basics)
├── sections/    # The content, written in Markdown
├── public/      # Assets
├── test/        # Tests
├── utils/       # Various utilities use across the site
└── vendor/      # Cached dependencies

Got stuck?

Feel free to ping us on Spectrum if you get stuck somewhere while trying to make this website better, let's resolve it together!

主要指标

概览
名称与所有者styled-components/styled-components-website
主编程语言MDX
编程语言JavaScript (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2017-04-10 15:11:30
推送于2024-07-04 16:12:00
最后一次提交
发布数0
用户参与
星数622
关注者数25
派生数436
提交数1.5k
已启用问题?
问题数346
打开的问题数46
拉请求数458
打开的拉请求数20
关闭的拉请求数149
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?