doc: Fix unnecessary spaces in folder paths
There are useless spaces in folder paths in https://docs.openstack.org/horizon/latest/configuration/customizing.html This problem is caused by rst max line length. Change-Id: Ie2b8e7178ceea98d8a78a2a8ba264cfa396324a7
This commit is contained in:
parent
7068f286b2
commit
a1d28fc35a
@ -373,8 +373,7 @@ In this template, redefine ``block css``. (Don't forget to include
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
The custom stylesheets then reside in the dashboard's own ``static`` folder
|
The custom stylesheets then reside in the dashboard's own ``static`` folder
|
||||||
``openstack_dashboard/dashboards/my_custom_dashboard/static/
|
``openstack_dashboard/dashboards/my_custom_dashboard/static/my_custom_dashboard/scss/my_custom_dashboard.scss``.
|
||||||
my_custom_dashboard/scss/my_custom_dashboard.scss``.
|
|
||||||
|
|
||||||
All dashboard's templates have to inherit from dashboard's base.html::
|
All dashboard's templates have to inherit from dashboard's base.html::
|
||||||
|
|
||||||
@ -388,14 +387,14 @@ Custom Javascript
|
|||||||
Similarly to adding custom styling (see above), it is possible to include
|
Similarly to adding custom styling (see above), it is possible to include
|
||||||
custom javascript files.
|
custom javascript files.
|
||||||
|
|
||||||
All Horizon's javascript files are listed in the ``openstack_dashboard/
|
All Horizon's javascript files are listed in the
|
||||||
templates/horizon/_scripts.html`` partial template, which is included in
|
``openstack_dashboard/templates/horizon/_scripts.html``
|
||||||
Horizon's base template in ``block js``.
|
partial template, which is included in Horizon's base template in ``block js``.
|
||||||
|
|
||||||
To add custom javascript files, create an ``_scripts.html`` partial template in
|
To add custom javascript files, create an ``_scripts.html`` partial template in
|
||||||
your dashboard ``openstack_dashboard/dashboards/my_custom_dashboard/
|
your dashboard
|
||||||
templates/my_custom_dashboard/_scripts.html`` which extends
|
``openstack_dashboard/dashboards/my_custom_dashboard/templates/my_custom_dashboard/_scripts.html``
|
||||||
``horizon/_scripts.html``. In this template override the
|
which extends ``horizon/_scripts.html``. In this template override the
|
||||||
``block custom_js_files`` including your custom javascript files::
|
``block custom_js_files`` including your custom javascript files::
|
||||||
|
|
||||||
{% extends 'horizon/_scripts.html' %}
|
{% extends 'horizon/_scripts.html' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user