From d27c3bd5b249ec2b3cdc2fd9d20cc4cf34234e1c Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 23 Jan 2024 23:21:13 +0300 Subject: [PATCH] Add guide for CDN, menu reorg --- assets/menu/menu.json | 48 +++++++---- doc/cdn/ComponentDoc.vue | 20 +++++ doc/cdn/CreateAppDoc.vue | 37 +++++++++ doc/cdn/ExampleDoc.vue | 57 +++++++++++++ doc/cdn/PluginDoc.vue | 23 ++++++ doc/cdn/ScriptDoc.vue | 25 ++++++ doc/cdn/ThemingDoc.vue | 20 +++++ doc/{guides => }/csslayer/BootstrapDoc.vue | 0 doc/{guides => }/csslayer/NormalizeDoc.vue | 0 doc/{guides => }/csslayer/ResetDoc.vue | 0 doc/{guides => }/csslayer/SpecificityDoc.vue | 0 doc/{guides => }/csslayer/TailwindDoc.vue | 0 doc/installation/GuidesDoc.vue | 87 ++++++++++++++++++++ doc/nuxt/StyledModeDoc.vue | 2 +- doc/nuxt/configuration/CSSLayerOrderDoc.vue | 2 +- doc/vite/StyledModeDoc.vue | 4 +- pages/cdn/index.vue | 64 ++++++++++++++ pages/{guides => }/csslayer/index.vue | 10 +-- pages/installation/index.vue | 34 ++++++++ 19 files changed, 410 insertions(+), 23 deletions(-) create mode 100644 doc/cdn/ComponentDoc.vue create mode 100644 doc/cdn/CreateAppDoc.vue create mode 100644 doc/cdn/ExampleDoc.vue create mode 100644 doc/cdn/PluginDoc.vue create mode 100644 doc/cdn/ScriptDoc.vue create mode 100644 doc/cdn/ThemingDoc.vue rename doc/{guides => }/csslayer/BootstrapDoc.vue (100%) rename doc/{guides => }/csslayer/NormalizeDoc.vue (100%) rename doc/{guides => }/csslayer/ResetDoc.vue (100%) rename doc/{guides => }/csslayer/SpecificityDoc.vue (100%) rename doc/{guides => }/csslayer/TailwindDoc.vue (100%) create mode 100644 doc/installation/GuidesDoc.vue create mode 100644 pages/cdn/index.vue rename pages/{guides => }/csslayer/index.vue (85%) create mode 100644 pages/installation/index.vue diff --git a/assets/menu/menu.json b/assets/menu/menu.json index 5bc2b1e2f..7c9775101 100644 --- a/assets/menu/menu.json +++ b/assets/menu/menu.json @@ -9,16 +9,8 @@ "to": "/introduction" }, { - "name": "Vite Setup", - "to": "/vite" - }, - { - "name": "Nuxt Setup", - "to": "/nuxt" - }, - { - "name": "Configuration", - "to": "/configuration" + "name": "Installation", + "to": "/installation" }, { "name": "Playground", @@ -26,6 +18,38 @@ } ] }, + { + "name": "Installation", + "icon": "pi pi-cloud-download", + "children": [ + { + "name": "Vite", + "to": "/vite" + }, + { + "name": "Nuxt", + "to": "/vite" + }, + { + "name": "CDN", + "to": "/cdn" + } + ] + }, + { + "name": "Configuration", + "icon": "pi pi-cog", + "children": [ + { + "name": "Options", + "to": "/configuration" + }, + { + "name": "CSS Layer", + "to": "/csslayer" + } + ] + }, { "name": "Components", "icon": "pi pi-compass", @@ -536,10 +560,6 @@ "name": "Accessibility", "to": "/guides/accessibility" }, - { - "name": "CSS Layer", - "to": "/guides/csslayer" - }, { "name": "PrimeTV", "icon": "pi pi-youtube", diff --git a/doc/cdn/ComponentDoc.vue b/doc/cdn/ComponentDoc.vue new file mode 100644 index 000000000..479acad80 --- /dev/null +++ b/doc/cdn/ComponentDoc.vue @@ -0,0 +1,20 @@ + + + diff --git a/doc/cdn/CreateAppDoc.vue b/doc/cdn/CreateAppDoc.vue new file mode 100644 index 000000000..00c9cfa58 --- /dev/null +++ b/doc/cdn/CreateAppDoc.vue @@ -0,0 +1,37 @@ + + + diff --git a/doc/cdn/ExampleDoc.vue b/doc/cdn/ExampleDoc.vue new file mode 100644 index 000000000..961799ca3 --- /dev/null +++ b/doc/cdn/ExampleDoc.vue @@ -0,0 +1,57 @@ + + + diff --git a/doc/cdn/PluginDoc.vue b/doc/cdn/PluginDoc.vue new file mode 100644 index 000000000..ab0a8ebff --- /dev/null +++ b/doc/cdn/PluginDoc.vue @@ -0,0 +1,23 @@ + + + diff --git a/doc/cdn/ScriptDoc.vue b/doc/cdn/ScriptDoc.vue new file mode 100644 index 000000000..289e1ed06 --- /dev/null +++ b/doc/cdn/ScriptDoc.vue @@ -0,0 +1,25 @@ + + + diff --git a/doc/cdn/ThemingDoc.vue b/doc/cdn/ThemingDoc.vue new file mode 100644 index 000000000..408aa97cf --- /dev/null +++ b/doc/cdn/ThemingDoc.vue @@ -0,0 +1,20 @@ + + + diff --git a/doc/guides/csslayer/BootstrapDoc.vue b/doc/csslayer/BootstrapDoc.vue similarity index 100% rename from doc/guides/csslayer/BootstrapDoc.vue rename to doc/csslayer/BootstrapDoc.vue diff --git a/doc/guides/csslayer/NormalizeDoc.vue b/doc/csslayer/NormalizeDoc.vue similarity index 100% rename from doc/guides/csslayer/NormalizeDoc.vue rename to doc/csslayer/NormalizeDoc.vue diff --git a/doc/guides/csslayer/ResetDoc.vue b/doc/csslayer/ResetDoc.vue similarity index 100% rename from doc/guides/csslayer/ResetDoc.vue rename to doc/csslayer/ResetDoc.vue diff --git a/doc/guides/csslayer/SpecificityDoc.vue b/doc/csslayer/SpecificityDoc.vue similarity index 100% rename from doc/guides/csslayer/SpecificityDoc.vue rename to doc/csslayer/SpecificityDoc.vue diff --git a/doc/guides/csslayer/TailwindDoc.vue b/doc/csslayer/TailwindDoc.vue similarity index 100% rename from doc/guides/csslayer/TailwindDoc.vue rename to doc/csslayer/TailwindDoc.vue diff --git a/doc/installation/GuidesDoc.vue b/doc/installation/GuidesDoc.vue new file mode 100644 index 000000000..fa4cbd3fa --- /dev/null +++ b/doc/installation/GuidesDoc.vue @@ -0,0 +1,87 @@ + + + diff --git a/doc/nuxt/StyledModeDoc.vue b/doc/nuxt/StyledModeDoc.vue index d052bd93e..e8e9ec3a3 100644 --- a/doc/nuxt/StyledModeDoc.vue +++ b/doc/nuxt/StyledModeDoc.vue @@ -13,7 +13,7 @@

The style classes of PrimeVue are defined under the primevue CSS layer to be easier to customize by having low specificity. If you are using a CSS library that styles default HTML elements such as Tailwind Preflight, Bootstrap, Normalize, or similar, a custom CSS layer configuration might be necessary with the cssLayerOrder option to make sure primevue layer is defined afterward. This only applies to Styled Mode as Unstyled Mode does not use any default - styles or layers. View the CSS Layer guide for more information. + styles or layers. View the CSS Layer guide for more information.

diff --git a/doc/nuxt/configuration/CSSLayerOrderDoc.vue b/doc/nuxt/configuration/CSSLayerOrderDoc.vue index 240c10431..b0870a689 100644 --- a/doc/nuxt/configuration/CSSLayerOrderDoc.vue +++ b/doc/nuxt/configuration/CSSLayerOrderDoc.vue @@ -1,6 +1,6 @@