mirror of
https://github.com/django-components/django-components.git
synced 2025-08-17 12:40:15 +00:00
docs: Move the "Getting started" tutorial to top-level of docs (#892)
This commit is contained in:
parent
81c02ddaa7
commit
5e8770c720
9 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@
|
|||
- The JS/CSS defined in `Component.js/css` or `Component.js/css_file` is the "main" JS/CSS
|
||||
- The JS/CSS defined in `Component.Media.js/css` are secondary or additional
|
||||
|
||||
See the updated ["Getting Started" tutorial](https://EmilStenstrom.github.io/django-components/0.124/concepts/getting_started/adding_js_and_css/)
|
||||
See the updated ["Getting Started" tutorial](https://EmilStenstrom.github.io/django-components/0.124/getting_started/adding_js_and_css/)
|
||||
|
||||
#### Refactor
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- See Pydantic for inspo https://docs.pydantic.dev/latest -->
|
||||
- [Get Started](overview/)
|
||||
- [Overview](overview/)
|
||||
- [Getting Started](getting_started/)
|
||||
- Concepts
|
||||
- [Getting started](concepts/getting_started/)
|
||||
- [Fundamentals](concepts/fundamentals/)
|
||||
- [Advanced](concepts/advanced/)
|
||||
- Guides
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Defining HTML / JS / CSS files
|
|||
weight: 8
|
||||
---
|
||||
|
||||
As you could have seen in [the tutorial](../../concepts/getting_started/adding_js_and_css.md), there's multiple ways how you can associate
|
||||
As you could have seen in [the tutorial](../../getting_started/adding_js_and_css.md), there's multiple ways how you can associate
|
||||
HTML / JS / CSS with a component:
|
||||
|
||||
- You can set [`Component.template`](../../reference/api.md#django_components.Component.template),
|
||||
|
@ -49,7 +49,7 @@ HTML / JS / CSS with a component:
|
|||
|
||||
## Defining file paths relative to component
|
||||
|
||||
As seen in the [getting started example](../getting_started/your_first_component.md), to associate HTML / JS / CSS
|
||||
As seen in the [getting started example](../../getting_started/your_first_component.md), to associate HTML / JS / CSS
|
||||
files with a component, you can set them as
|
||||
[`Component.template_file`](../../reference/api.md#django_components.Component.template_file),
|
||||
[`Component.js_file`](../../reference/api.md#django_components.Component.js_file)
|
||||
|
|
|
@ -6,7 +6,7 @@ weight: 1
|
|||
Components can be defined in a single file, which is useful for small components. To do this, you can use the `template`, `js`, and `css` class attributes instead of the `template_file`, `js_file`, and `css_file`.
|
||||
|
||||
For example, here's the calendar component from
|
||||
the [Getting started](../getting_started/your_first_component.md) tutorial,
|
||||
the [Getting started](../../getting_started/your_first_component.md) tutorial,
|
||||
defined in a single file:
|
||||
|
||||
```python title="[project root]/components/calendar.py"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue