Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion pages/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
---
authors: moshams272
---

# Documentation

STUB
The documentation provides deep technical details on webpack's API, configuration, and ecosystem. Whether you are looking up core features or exploring community tools, you will find everything you need below.

### Main Packages

Explore the core configuration, CLI commands, and Node.js API for the latest version of webpack. This is your definitive reference for webpack's built-in capabilities.

[Explore the webpack API!](/docs/api/v5.x)

### Third Party Packages

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wouldn't consider them third-party. They're maintained by the webpack core team, so for the most part, they aren't really third-party

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just want to make them dropdown lists, so could u suggest another name instead third-party

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add-ons ? maybe idk

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we could make it under the main packages section !!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wouldn't consider them third-party. They're maintained by the webpack core team, so for the most part, they aren't really third-party

+1 to that

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yep, I think it should be under the main packages section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice, I'll do that once we choose the design of pages/guides/index.md at PR #161.


#### Loaders

Loaders allow webpack to process other types of files and convert them into valid modules. Discover the extensive ecosystem of third-party loaders for CSS, TypeScript, images, and more.

[Discover community loaders!](/docs/loaders)

Comment thread
moshams272 marked this conversation as resolved.
#### Plugins

Plugins are the backbone of webpack's architecture. Browse community-maintained plugins that extend webpack's capabilities for build optimization, asset management, and environment injection.

[Browse community plugins!](/docs/plugins)
6 changes: 4 additions & 2 deletions pages/site.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ export const sidebar = {
},
],
},
...loaders.sidebar,
...plugins.sidebar,
{
groupName: 'Third Party Packages',
items: [...loaders.sidebar, ...plugins.sidebar],
},
],
guides: guides.sidebar,
};
16 changes: 11 additions & 5 deletions scripts/markdown/readmes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ const processRepos = async (repos, { label, basePath, outputDir }) => {
const siteJson = {
sidebar: [
{
groupName: label,
items: fetched.map(name => ({
link: `${basePath}/${name}`,
label: name.replace(/-(?:webpack-)?(?:loader|plugin)$/, ''),
})),
label: label,
items: [
{
link: basePath,
label: 'Overview',
},
...fetched.map(name => ({
link: `${basePath}/${name}`,
label: name.replace(/-(?:webpack-)?(?:loader|plugin)$/, ''),
})),
],
},
],
};
Expand Down
Loading