From 8b48a70de3c7523b98500e1faf3d456be572b97c Mon Sep 17 00:00:00 2001 From: Sergey Bedritsky Date: Tue, 8 Jun 2021 13:28:01 +0300 Subject: [PATCH] improve templates; move toc into AppContent (#375) --- docs/content/2.usage/4.template.md | 4 +- package.json | 2 +- .../components/organisms/AppPage.vue | 6 +- .../{PageBottom.vue => EditOnGithub.vue} | 5 +- .../components/organisms/PageContent.vue | 17 ++- .../components/organisms/PageMobileToc.vue | 88 +++++++++++++++ .../components/organisms/PageToc.vue | 106 +++--------------- .../components/organisms/PageTocList.vue | 76 +++++++++++++ .../components/templates/Docs.vue | 12 +- .../components/templates/Releases.vue | 26 +++-- 10 files changed, 228 insertions(+), 114 deletions(-) rename src/defaultTheme/components/organisms/{PageBottom.vue => EditOnGithub.vue} (89%) create mode 100644 src/defaultTheme/components/organisms/PageMobileToc.vue create mode 100644 src/defaultTheme/components/organisms/PageTocList.vue diff --git a/docs/content/2.usage/4.template.md b/docs/content/2.usage/4.template.md index c3571da8f..5009b7edb 100644 --- a/docs/content/2.usage/4.template.md +++ b/docs/content/2.usage/4.template.md @@ -28,13 +28,13 @@ A wrapper component that contains everything about the page, including page cont Display table of contents of the document. This component does not show on [fullscreen document](/usage/content#front-matter). This component shows inside the page on the right side of document content. -### `` +### `` Display information about the document, including the last modified date and a link to edit the document. This component shows inside the page and under the document content. ### `` -Display links to the next and previous pages. This component shows inside the `` and under the ``. +Display links to the next and previous pages. This component shows inside the `` and under the ``. ### `` diff --git a/package.json b/package.json index e04e5e990..646ca5f20 100755 --- a/package.json +++ b/package.json @@ -130,4 +130,4 @@ "peerDependencies": { "vuex": "^3.6.2" } -} +} \ No newline at end of file diff --git a/src/defaultTheme/components/organisms/AppPage.vue b/src/defaultTheme/components/organisms/AppPage.vue index 9656fc0ee..3f57bd79a 100644 --- a/src/defaultTheme/components/organisms/AppPage.vue +++ b/src/defaultTheme/components/organisms/AppPage.vue @@ -1,7 +1,11 @@