Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
4 changes: 2 additions & 2 deletions blog/2024-04-16-custom-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ meta: [
---

```python exec
from pcweb.pages.docs import wrapping_react, custom_components, styling, events, getting_started, substates
from pcweb.pages.docs import wrapping_react, custom_components, styling, events, getting_started, component_state
from pcweb.pages.docs.custom_components import custom_components as cc
```

Expand Down Expand Up @@ -118,7 +118,7 @@ def counter_sum():
)
```

See the [Component State]({substates.component_state.path}) page for more details on how to use this class.
See the [Component State]({component_state.overview.path}) page for more details on how to use this class.

## Testing and Publishing

Expand Down
File renamed without changes.
264 changes: 0 additions & 264 deletions docs/substates/overview.md

This file was deleted.

2 changes: 1 addition & 1 deletion pcweb/components/docpage/sidebar/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def sidebar_icon(name):
"Wrapping React": "atom",
"Vars": "variable",
"Events": "arrow-left-right",
"Substates": "boxes",
"Component State": "boxes",
"API Routes": "route",
"Client Storage": "package-open",
"Database": "database",
Expand Down
7 changes: 3 additions & 4 deletions pcweb/components/docpage/sidebar/sidebar_items/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ def get_sidebar_items_backend():
api_routes,
authentication,
client_storage,
component_state,
database,
events,
state,
substates,
utility_methods,
vars,
)
Expand Down Expand Up @@ -154,10 +154,9 @@ def get_sidebar_items_backend():
],
),
create_item(
"Substates",
"Component State",
children=[
substates.overview,
substates.component_state,
component_state.overview,
],
),
create_item(
Expand Down
2 changes: 1 addition & 1 deletion pcweb/pages/docs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def exec_blocks(doc, href):
"docs/custom-components/overview.md": "Custom Components Overview",
"docs/api-routes/overview.md": "API Routes Overview",
"docs/client_storage/overview.md": "Client Storage Overview",
"docs/component_state/overview.md": "ComponentState Overview",
"docs/state/overview.md": "State Overview",
"docs/styling/overview.md": "Styling Overview",
"docs/substates/overview.md": "Substates Overview",
"docs/ui/overview.md": "UI Overview",
"docs/wrapping-react/overview.md": "Wrapping React Overview",
"docs/library/html/html.md": "HTML Elements",
Expand Down
2 changes: 1 addition & 1 deletion pcweb/pcweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
("/docs/wrapping-react", "/docs/wrapping-react/overview"),
("/docs/vars", "/docs/vars/base-vars"),
("/docs/events", "/docs/events/events-overview"),
("/docs/substates", "/docs/substates/overview"),
("/docs/component-state", "/docs/component-state/overview"),
("/docs/api-routes", "/docs/api-routes/overview"),
("/docs/client-storage", "/docs/client-storage/overview"),
("/docs/authentication", "/docs/authentication/authentication-overview"),
Expand Down