docs: fix old links for defining_js_css_html_files (#1338)

This commit is contained in:
Juro Oravec 2025-08-13 17:37:40 +02:00 committed by GitHub
parent 0df269adfe
commit 93cea3d532
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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:

View file

@ -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:**