From bcc26d3fcff0246c06e51548f6509b11960ecb91 Mon Sep 17 00:00:00 2001 From: Manon Bourgognon <manon.bourgognon@epitech.eu> Date: Wed, 5 May 2021 18:17:49 +0200 Subject: [PATCH 1/2] view-title, view-description, keep-url attr --- source/import_documentation/Components/Solid-Router.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/import_documentation/Components/Solid-Router.rst b/source/import_documentation/Components/Solid-Router.rst index 80e3b9c..c038e83 100644 --- a/source/import_documentation/Components/Solid-Router.rst +++ b/source/import_documentation/Components/Solid-Router.rst @@ -53,12 +53,13 @@ Displays a menu and handle the navigation for you. - ``use-hash``: If you can't rewrite the URLs on your server, you might want to set this attribute to use ``location.hash`` instead of ``location.pathname`` as URLs. +- ``keep-url``: It freezes the URL of all the ``<solid-route>`` included. Usefull to freeze the URL when a pop-up is displayed. ``<solid-route>`` attributes: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - ``use-id``: indicates that the route takes an id. -- ``name``: The name of the route. Must match the id of the view +- ``name``: The name of the route. Must match the ``data-view`` of the view that is to be displayed. The same name is used as a url identifier as well. - ``rdf-type``: Can be used as an alternative of ``name``. The @@ -68,6 +69,12 @@ Displays a menu and handle the navigation for you. ``<solid-router>``. It is automatically added/removed by ``<solid-router>`` and should not be tinkered manually. +``<div data-view=[name]>`` attributes: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- ``view-title``: allows to choose the ``<title>`` content of each `data-view` (of each "page"). +- ``view-description``: allows to choose the value of ``content`` attribute in ``<meta name="description">`` tag. + solid-link ---------- -- GitLab From 70c14b7ccb130d8e783bcce8225670391421c42b Mon Sep 17 00:00:00 2001 From: Manon Bourgognon <manon.bourgognon@epitech.eu> Date: Thu, 6 May 2021 10:04:37 +0200 Subject: [PATCH 2/2] update view-title/descr attr documentation --- source/import_documentation/Components/Solid-Router.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/import_documentation/Components/Solid-Router.rst b/source/import_documentation/Components/Solid-Router.rst index c038e83..d24a9fe 100644 --- a/source/import_documentation/Components/Solid-Router.rst +++ b/source/import_documentation/Components/Solid-Router.rst @@ -72,8 +72,8 @@ Displays a menu and handle the navigation for you. ``<div data-view=[name]>`` attributes: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ``view-title``: allows to choose the ``<title>`` content of each `data-view` (of each "page"). -- ``view-description``: allows to choose the value of ``content`` attribute in ``<meta name="description">`` tag. +- ``view-title``: allows to change the ``title`` of the page when a user navigates to this view. +- ``view-description``: allows to change the ``<meta name="description">`` of the page when the user navigates to this view. solid-link ---------- -- GitLab