From 93cea3d532d393a99e50ef44b7063b9bcfa8c1e2 Mon Sep 17 00:00:00 2001 From: Juro Oravec Date: Wed, 13 Aug 2025 17:37:40 +0200 Subject: [PATCH] docs: fix old links for defining_js_css_html_files (#1338) --- docs/getting_started/adding_js_and_css.md | 2 +- src/django_components/app_settings.py | 4 ++-- src/django_components/component.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/getting_started/adding_js_and_css.md b/docs/getting_started/adding_js_and_css.md index cc3e675a..d26c2dfb 100644 --- a/docs/getting_started/adding_js_and_css.md +++ b/docs/getting_started/adding_js_and_css.md @@ -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 diff --git a/src/django_components/app_settings.py b/src/django_components/app_settings.py index aa1a2d9f..68f0f9e7 100644 --- a/src/django_components/app_settings.py +++ b/src/django_components/app_settings.py @@ -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 `/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: diff --git a/src/django_components/component.py b/src/django_components/component.py index b7245a1d..bce340b4 100644 --- a/src/django_components/component.py +++ b/src/django_components/component.py @@ -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 `