mirror of
https://github.com/django-components/django-components.git
synced 2025-09-18 11:49:44 +00:00
docs: fix old links for defining_js_css_html_files (#1338)
This commit is contained in:
parent
0df269adfe
commit
93cea3d532
3 changed files with 5 additions and 5 deletions
|
@ -235,7 +235,7 @@ with a few differences:
|
|||
4. If you set [`Media.extend`](../../reference/api/#django_components.ComponentMediaInput.extend) to a list,
|
||||
it should be a list of [`Component`](../../reference/api/#django_components.Component) classes.
|
||||
|
||||
[Learn more](../../concepts/fundamentals/defining_js_css_html_files) about using Media.
|
||||
[Learn more](../concepts/fundamentals/secondary_js_css_files.md) about using Media.
|
||||
|
||||
```python title="[project root]/components/calendar/calendar.py"
|
||||
from django_components import Component
|
||||
|
|
|
@ -218,7 +218,7 @@ class ComponentsSettings(NamedTuple):
|
|||
[STATICFILES_DIRS](https://docs.djangoproject.com/en/5.2/ref/settings/#std-setting-STATICFILES_DIRS).
|
||||
|
||||
These locations are searched during [autodiscovery](../../concepts/fundamentals/autodiscovery),
|
||||
or when you [define HTML, JS, or CSS as separate files](../../concepts/fundamentals/defining_js_css_html_files).
|
||||
or when you [define HTML, JS, or CSS as separate files](../../concepts/fundamentals/html_js_css_files).
|
||||
|
||||
```python
|
||||
COMPONENTS = ComponentsSettings(
|
||||
|
@ -252,7 +252,7 @@ class ComponentsSettings(NamedTuple):
|
|||
To search for `<app>/my_comps/`.
|
||||
|
||||
These locations are searched during [autodiscovery](../../concepts/fundamentals/autodiscovery),
|
||||
or when you [define HTML, JS, or CSS as separate files](../../concepts/fundamentals/defining_js_css_html_files).
|
||||
or when you [define HTML, JS, or CSS as separate files](../../concepts/fundamentals/html_js_css_files).
|
||||
|
||||
Set to empty list to disable app-level components:
|
||||
|
||||
|
|
|
@ -1750,7 +1750,7 @@ class Component(metaclass=ComponentMeta):
|
|||
|
||||
This field is generated from [`Component.media_class`](../api#django_components.Component.media_class).
|
||||
|
||||
Read more on [Accessing component's HTML / JS / CSS](../../concepts/fundamentals/defining_js_css_html_files/#accessing-components-media-files).
|
||||
Read more on [Accessing component's Media JS / CSS](../../concepts/fundamentals/secondary_js_css_files/#accessing-media-files).
|
||||
|
||||
**Example:**
|
||||
|
||||
|
@ -1776,7 +1776,7 @@ class Component(metaclass=ComponentMeta):
|
|||
This is useful when you want to customize the behavior of the media files, like
|
||||
customizing how the JS or CSS files are rendered into `<script>` or `<link>` HTML tags.
|
||||
|
||||
Read more in [Defining HTML / JS / CSS files](../../concepts/fundamentals/defining_js_css_html_files/#customize-how-paths-are-rendered-into-html-tags-with-media_class).
|
||||
Read more in [Media class](../../concepts/fundamentals/secondary_js_css_files/#media-class).
|
||||
|
||||
**Example:**
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue