From a2ce2d0f7215a3d6559a3b3fc1bdaf3292acf91a Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 26 Dec 2023 21:28:43 +0300 Subject: [PATCH] Add vite and nuxt docs to get started --- assets/menu/menu.json | 16 ++-- doc/nuxt/DownloadDoc.vue | 8 +- doc/nuxt/{ExampleDoc.vue => ExamplesDoc.vue} | 0 doc/nuxt/ModuleSetupDoc.vue | 30 ++++++++ doc/nuxt/SetupDoc.vue | 62 --------------- doc/nuxt/StyledModeDoc.vue | 81 ++++++++++++++++++++ doc/nuxt/UnstyledModeDoc.vue | 47 ++++++++++++ doc/nuxt/UsageDoc.vue | 23 ++++++ doc/vite/DownloadDoc.vue | 27 +++++++ doc/vite/ExamplesDoc.vue | 9 +++ doc/vite/PluginDoc.vue | 27 +++++++ doc/vite/StyledModeDoc.vue | 44 +++++++++++ doc/vite/UnstyledModeDoc.vue | 44 +++++++++++ doc/vite/UsageDoc.vue | 46 +++++++++++ doc/vite/videos/CreateVueDoc.vue | 11 +++ pages/nuxt/index.vue | 60 ++++++++++----- pages/vite/index.vue | 77 +++++++++++++++++++ 17 files changed, 522 insertions(+), 90 deletions(-) rename doc/nuxt/{ExampleDoc.vue => ExamplesDoc.vue} (100%) create mode 100644 doc/nuxt/ModuleSetupDoc.vue delete mode 100644 doc/nuxt/SetupDoc.vue create mode 100644 doc/nuxt/StyledModeDoc.vue create mode 100644 doc/nuxt/UnstyledModeDoc.vue create mode 100644 doc/nuxt/UsageDoc.vue create mode 100644 doc/vite/DownloadDoc.vue create mode 100644 doc/vite/ExamplesDoc.vue create mode 100644 doc/vite/PluginDoc.vue create mode 100644 doc/vite/StyledModeDoc.vue create mode 100644 doc/vite/UnstyledModeDoc.vue create mode 100644 doc/vite/UsageDoc.vue create mode 100644 doc/vite/videos/CreateVueDoc.vue create mode 100644 pages/vite/index.vue diff --git a/assets/menu/menu.json b/assets/menu/menu.json index f597c2e68..6a9f47bd2 100644 --- a/assets/menu/menu.json +++ b/assets/menu/menu.json @@ -5,17 +5,21 @@ "icon": "pi pi-home", "children": [ { - "name": "Installation", - "to": "/installation" + "name": "Introduction", + "to": "/introduction" + }, + { + "name": "Vite Setup", + "to": "/vite" + }, + { + "name": "Nuxt Setup", + "to": "/nuxt" }, { "name": "Configuration", "to": "/configuration" }, - { - "name": "Nuxt", - "to": "/nuxt" - }, { "name": "Playground", "to": "/playground" diff --git a/doc/nuxt/DownloadDoc.vue b/doc/nuxt/DownloadDoc.vue index 23706c233..f657b1dbb 100644 --- a/doc/nuxt/DownloadDoc.vue +++ b/doc/nuxt/DownloadDoc.vue @@ -1,6 +1,9 @@ @@ -12,12 +15,15 @@ export default { code: { basic: ` # Using npm +npm install primevue npm install --save-dev nuxt-primevue # Using yarn +yarn add primevue yarn add --dev nuxt-primevue # Using pnpm +pnpm add primevue pnpm add -D nuxt-primevue ` } diff --git a/doc/nuxt/ExampleDoc.vue b/doc/nuxt/ExamplesDoc.vue similarity index 100% rename from doc/nuxt/ExampleDoc.vue rename to doc/nuxt/ExamplesDoc.vue diff --git a/doc/nuxt/ModuleSetupDoc.vue b/doc/nuxt/ModuleSetupDoc.vue new file mode 100644 index 000000000..335548c4b --- /dev/null +++ b/doc/nuxt/ModuleSetupDoc.vue @@ -0,0 +1,30 @@ + + + diff --git a/doc/nuxt/SetupDoc.vue b/doc/nuxt/SetupDoc.vue deleted file mode 100644 index 1970aba69..000000000 --- a/doc/nuxt/SetupDoc.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - diff --git a/doc/nuxt/StyledModeDoc.vue b/doc/nuxt/StyledModeDoc.vue new file mode 100644 index 000000000..df0bbc777 --- /dev/null +++ b/doc/nuxt/StyledModeDoc.vue @@ -0,0 +1,81 @@ + + + diff --git a/doc/nuxt/UnstyledModeDoc.vue b/doc/nuxt/UnstyledModeDoc.vue new file mode 100644 index 000000000..293a593e9 --- /dev/null +++ b/doc/nuxt/UnstyledModeDoc.vue @@ -0,0 +1,47 @@ + + + diff --git a/doc/nuxt/UsageDoc.vue b/doc/nuxt/UsageDoc.vue new file mode 100644 index 000000000..b6d2625ef --- /dev/null +++ b/doc/nuxt/UsageDoc.vue @@ -0,0 +1,23 @@ + + + diff --git a/doc/vite/DownloadDoc.vue b/doc/vite/DownloadDoc.vue new file mode 100644 index 000000000..31b02b26f --- /dev/null +++ b/doc/vite/DownloadDoc.vue @@ -0,0 +1,27 @@ + + + diff --git a/doc/vite/ExamplesDoc.vue b/doc/vite/ExamplesDoc.vue new file mode 100644 index 000000000..14bceb2a1 --- /dev/null +++ b/doc/vite/ExamplesDoc.vue @@ -0,0 +1,9 @@ + diff --git a/doc/vite/PluginDoc.vue b/doc/vite/PluginDoc.vue new file mode 100644 index 000000000..ea56afbd8 --- /dev/null +++ b/doc/vite/PluginDoc.vue @@ -0,0 +1,27 @@ + + + diff --git a/doc/vite/StyledModeDoc.vue b/doc/vite/StyledModeDoc.vue new file mode 100644 index 000000000..873091b52 --- /dev/null +++ b/doc/vite/StyledModeDoc.vue @@ -0,0 +1,44 @@ + + + diff --git a/doc/vite/UnstyledModeDoc.vue b/doc/vite/UnstyledModeDoc.vue new file mode 100644 index 000000000..240c65242 --- /dev/null +++ b/doc/vite/UnstyledModeDoc.vue @@ -0,0 +1,44 @@ + + + diff --git a/doc/vite/UsageDoc.vue b/doc/vite/UsageDoc.vue new file mode 100644 index 000000000..0683096eb --- /dev/null +++ b/doc/vite/UsageDoc.vue @@ -0,0 +1,46 @@ + + + diff --git a/doc/vite/videos/CreateVueDoc.vue b/doc/vite/videos/CreateVueDoc.vue new file mode 100644 index 000000000..cd2836e41 --- /dev/null +++ b/doc/vite/videos/CreateVueDoc.vue @@ -0,0 +1,11 @@ + diff --git a/pages/nuxt/index.vue b/pages/nuxt/index.vue index 5d8b7051a..4ca835172 100644 --- a/pages/nuxt/index.vue +++ b/pages/nuxt/index.vue @@ -1,15 +1,14 @@