Skip to content
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

[docs] Update folder structure #744

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Conversation

vladmoroz
Copy link
Contributor

@vladmoroz vladmoroz commented Oct 17, 2024

  • Remove /examples
    • CRA/TS example moved into .codesandbox/template as it's referenced in the CodeSandbox CI config
  • Remove unused static files in the docs
  • Move /docs/app to /docs/src/app

@vladmoroz vladmoroz added the docs Improvements or additions to the documentation label Oct 17, 2024
Comment on lines -39 to -57
<span className="only-light-mode">
<img
src="/static/docs-infra/forking-an-example.png"
alt="Forking an example"
loading="lazy"
width="1628"
style={{ display: 'block', maxWidth: '774px' }}
/>
</span>
<span className="only-dark-mode">
<img
src="/static/docs-infra/forking-an-example-dark.png"
alt="Forking an example"
loading="lazy"
width="1628"
style={{ display: 'block', maxWidth: '774px' }}
/>
</span>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was outdated and the doc will be reworked anyway

Comment on lines -25 to +31
const { MDXContent, tableOfContents, metadata } = await getMarkdownPage(CATEGORY_SEGMENT, slug);
const { MDXContent, tableOfContents, metadata } = await getMarkdownPage(
CATEGORY_SEGMENT,
slug,
);
Copy link
Contributor Author

@vladmoroz vladmoroz Oct 17, 2024

Choose a reason for hiding this comment

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

Seems like there was some column width change at some point in the Prettier config? Anyway, Prettier wanted to touch up many files, so lots of unrelated formatting changes here

@mui-bot
Copy link

mui-bot commented Oct 17, 2024

Netlify deploy preview

https://deploy-preview-744--base-ui.netlify.app/

Generated by 🚫 dangerJS against 9cb3df3

@vladmoroz vladmoroz enabled auto-merge (squash) October 17, 2024 21:35
docs/app/playground/[slug]/page.tsx Outdated Show resolved Hide resolved
@@ -6,6 +6,6 @@
"publishDirectory": {
"@base_ui/react": "packages/mui-base/build"
},
"sandboxes": ["/examples/base-ui-cra-ts"],
"sandboxes": ["react-vite-ts"],
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't really make sense, as react-vite-ts doesn't depend on @base_ui/react. I'd ask the team if they would find the sandboxes generated per PR useful, and if yes, I'd leave just this one directory in /examples. Otherwise, we can remove the sandboxes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think they are going to be useful, yeah. I hadn't used CodeSandbox CI before, but from reading the description it sounds like something that would be good to set up once we go a bit more public.

Thoughts on putting the template it /.codesandbox/template/?
No big deal but /examples/ sets up the expectation to see something that resembles a less or more complete app built with Base UI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated with /.codesandbox/template/, lmk if this works for you

Copy link
Member

@oliviertassinari oliviertassinari Oct 20, 2024

Choose a reason for hiding this comment

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

I have never used this "sandboxes" feature of CodeSandbox CI

SCR-20241021-cddi

https://ci.codesandbox.io/status/mui/base-ui/pr/744/builds/552351

I suspect that we can delete this

Suggested change
"sandboxes": ["react-vite-ts"],

Starting from https://deploy-preview-744--base-ui.netlify.app/components/react-field/ feels much more convenient:

SCR-20241021-cdgh

docs/public/static/readme/browserstack-darkmode.svg Outdated Show resolved Hide resolved
@vladmoroz vladmoroz merged commit 342cb97 into mui:master Oct 18, 2024
16 checks passed
@vladmoroz vladmoroz changed the title Update folder structure [docs] Update folder structure Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants