From 728d541059e88b333a262080d71fc8d9455cf54e Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Sun, 19 Mar 2023 01:15:55 +0800 Subject: [PATCH 01/13] Modify default template, prototype --- .../test_default/expected/index.html | 170 +++--------------- .../expected/index.page-vue-render.js | 58 +----- .../test_default/expected/siteData.json | 10 +- packages/core/template/default/index.md | 123 +++---------- 4 files changed, 47 insertions(+), 314 deletions(-) diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html index a69bdeb756..271fc13e3c 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html @@ -6,7 +6,7 @@ - Landing Page + Home Page @@ -28,7 +28,7 @@ const baseUrl = '' - +
@@ -90,162 +90,34 @@
-

Landing Page Title

-

A tagline can go here

+

Great!
You just initialized a MarkBind site.

+

Let's get started...

-

Heading 1

-

Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.

-

A block quote:

+
+
User Guide: Authoring Contents
-

Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.

+

Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.

-

A list:

-
    -
  • item A
  • -
  • item B -
      -
    1. item b1
    2. -
    3. item b2
    4. -
    5. item b3
    6. -
    -
  • -
-

A code example:

-
<foo>
-  <bar type="name">goo</bar>
-</foo>
-
-

Sub Heading 1.1

-

A tooltip, a modal, a link, a badge, another badge.

- - Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. - -

A table:

-
- - - - - - - - - - - - - - - - - - - - - - - -
Column 1Column 2Column 3 / ?
value1x5
value2y20
-
-

Sub Heading 1.2

-

Media embeds:

-
-

Tabs:

- - - Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. - - - ... - - - - ... - - - ... - - - -
-

Heading 2

-

Some boxes:

- - default - - - info - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - - - tip - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - -
-

Heading 3

- - Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. - -
- - ... - -
- - ... - -
- - ... - -
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

- - Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. - -

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

More info in: User Guide → Authoring Contents

+
+
User Guide: Working with Sites
+
+

Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.

+
+

More info in: User Guide → Working with Sites

+
+
User Guide: Full Syntax Reference
+
+

Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.

+
+

More info in: User Guide → Full Syntax Reference

+
diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js index 4cd7c8acbc..aed931f4f4 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js @@ -1,65 +1,11 @@ var pageVueRenderFn = function anonymous( ) { -with(this){return _c('div',{attrs:{"id":"app"}},[_c('header',{attrs:{"sticky":""}},[_c('navbar',{attrs:{"type":"dark"},scopedSlots:_u([{key:"brand",fn:function(){return [_c('a',{staticClass:"navbar-brand",attrs:{"href":"/index.html","title":"Home"}},[_v("Your Logo")])]},proxy:true},{key:"right",fn:function(){return [_c('li',[_c('form',{staticClass:"navbar-form"},[_c('searchbar',{attrs:{"data":searchData,"placeholder":"Search","on-hit":searchCallback,"menu-align-right":""}})],1)])]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])]),_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])]),_v(" "),_c('dropdown',{staticClass:"nav-link",scopedSlots:_u([{key:"header",fn:function(){return [_v("Topic 3")]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])]),_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])],1)],1),_v(" "),_c('div',{attrs:{"id":"flex-body"}},[_c('overlay-source',{attrs:{"id":"site-nav","tag-name":"nav","to":"site-nav"}},[_c('div',{staticClass:"site-nav-top"},[_c('div',{staticClass:"fw-bold mb-2",staticStyle:{"font-size":"1.25rem"}},[_v("Template")])]),_v(" "),_c('div',{staticClass:"nav-component slim-scroll"},[_c('site-nav',[_c('overlay-source',{staticClass:"site-nav-list site-nav-list-root",attrs:{"tag-name":"ul","to":"mb-site-nav"}},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/index.html"}},[_v("Home 🏠")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_v("Topic 3 \n\n"),_c('div',{staticClass:"site-nav-dropdown-btn-container"},[_c('i',{staticClass:"site-nav-dropdown-btn-icon site-nav-rotate-icon",attrs:{"onclick":"handleSiteNavClick(this.parentNode.parentNode, false); event.stopPropagation();"}},[_c('span',{staticClass:"glyphicon glyphicon-menu-down",attrs:{"aria-hidden":"true"}})])])]),_c('ul',{staticClass:"site-nav-dropdown-container site-nav-dropdown-container-open site-nav-list"},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])])])])],1)],1)]),_v(" "),_c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_m(0),_v(" "),_m(1),_v(" "),_m(2),_v(" "),_m(3),_v(" "),_m(4),_v(" "),_m(5),_v(" "),_m(6),_v(" "),_m(7),_v(" "),_m(8),_m(9),_v(" "),_c('p',[_v("A "),_c('tooltip',{attrs:{"placement":"top","trigger":"hover"},scopedSlots:_u([{key:"content",fn:function(){return [_v("❗️ some "),_c('strong',[_v("important explanation")])]},proxy:true}])},[_v("tooltip")]),_v(", a "),_c('trigger',{attrs:{"for":"modal:modalinfo","trigger":"click"}},[_v("modal")]),_v(", a "),_c('a',{attrs:{"href":"https://markbind.org/"}},[_v("link")]),_v(", a "),_c('span',{staticClass:"badge bg-danger"},[_v("badge")]),_v(", another "),_c('span',{staticClass:"badge bg-warning text-dark"},[_v("badge")]),_v(".")],1),_v(" "),_c('modal',{attrs:{"id":"modal:modalinfo"},scopedSlots:_u([{key:"header",fn:function(){return [_v("Modal Title")]},proxy:true}])},[_v("\nSome text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.\n")]),_v(" "),_m(10),_v(" "),_m(11),_m(12),_v(" "),_m(13),_v(" "),_m(14),_v(" "),_m(15),_v(" "),_c('tabs',[_c('tab',{scopedSlots:_u([{key:"header",fn:function(){return [_v("Tab X")]},proxy:true}])},[_v("\n Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.\n ")]),_v(" "),_c('tab',{scopedSlots:_u([{key:"header",fn:function(){return [_v("Tab Y")]},proxy:true}])},[_v("\n ...\n ")]),_v(" "),_c('tab-group',{scopedSlots:_u([{key:"header",fn:function(){return [_v("Tab group")]},proxy:true}])},[_v(" "),_c('tab',{scopedSlots:_u([{key:"header",fn:function(){return [_v("Tab Y.1")]},proxy:true}])},[_v("\n ...\n ")]),_v(" "),_c('tab',{scopedSlots:_u([{key:"header",fn:function(){return [_v("Tab Y.2")]},proxy:true}])},[_v("\n ...\n ")])],1)],1),_v(" "),_c('br'),_v(" "),_m(16),_v(" "),_m(17),_v(" "),_c('box',[_v("\n default\n")]),_v(" "),_c('box',{attrs:{"type":"info"}},[_v("\n info\n")]),_v(" "),_c('box',{attrs:{"type":"warning","dismissible":""}},[_v("\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n")]),_v(" "),_c('box',{attrs:{"type":"tip"},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_v("Box heading")])]},proxy:true}])},[_v("\n tip\n")]),_v(" "),_c('box',{attrs:{"type":"success"},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_v("Box heading")])]},proxy:true}])},[_v("\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n")]),_v(" "),_c('box',{attrs:{"type":"important","dismissible":""},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_v("Box heading")])]},proxy:true}])},[_v("\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n")]),_v(" "),_c('br'),_v(" "),_m(18),_v(" "),_c('panel',{attrs:{"type":"info"},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_v("Expandable panel")])]},proxy:true}])},[_v("\n Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.\n")]),_v(" "),_c('br'),_v(" "),_c('panel',{attrs:{"type":"info","expanded":""},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_v("Expanded panel on load")])]},proxy:true}])},[_v("\n ...\n")]),_v(" "),_c('br'),_v(" "),_c('panel',{attrs:{"type":"success","minimized":""},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_v("Expanded panel header")])]},proxy:true},{key:"_alt",fn:function(){return [_c('p',[_v("Minimized panel header")])]},proxy:true}])},[_v("\n ...\n")]),_v(" "),_c('br'),_v(" "),_c('panel',{attrs:{"type":"seamless"},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_v("Expanded panel header")])]},proxy:true},{key:"_alt",fn:function(){return [_c('p',[_v("Minimized panel header")])]},proxy:true}])},[_v("\n ...\n")]),_v(" "),_c('br'),_v(" "),_c('p',[_v("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")]),_v(" "),_c('panel',{attrs:{"type":"minimal","popup-url":"https://markbind.org/userGuide/components/presentation.html#panels","no-switch":""},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_c('em',[_c('strong',[_v("Minimal panel "),_c('strong',[_v("->")])])])])]},proxy:true},{key:"_alt",fn:function(){return [_c('p',[_v("Minimal panel")])]},proxy:true}])},[_v("\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n")]),_v(" "),_c('p',[_v("Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")])],1),_v(" "),_c('overlay-source',{attrs:{"id":"page-nav","tag-name":"nav","to":"page-nav"}},[_c('div',{staticClass:"nav-component slim-scroll"},[_c('a',{pre:true,attrs:{"class":"navbar-brand page-nav-title","href":"#"}},[_v("Chapters of This Page")]),_v(" "),_c('overlay-source',{staticClass:"nav nav-pills flex-column my-0 small no-flex-wrap",attrs:{"id":"mb-page-nav","tag-name":"nav","to":"mb-page-nav"}},[_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#heading-1"}},[_v("Heading 1‎")]),_v(" "),_c('nav',{staticClass:"nav nav-pills flex-column my-0 nested no-flex-wrap"},[_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#sub-heading-1-1"}},[_v("Sub Heading 1.1‎")]),_v(" "),_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#sub-heading-1-2"}},[_v("Sub Heading 1.2‎")])]),_v(" "),_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#heading-2"}},[_v("Heading 2‎")]),_v(" "),_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#heading-3"}},[_v("Heading 3‎")])])],1)]),_v(" "),_c('scroll-top-button')],1),_v(" "),_m(19)])} +with(this){return _c('div',{attrs:{"id":"app"}},[_c('header',{attrs:{"sticky":""}},[_c('navbar',{attrs:{"type":"dark"},scopedSlots:_u([{key:"brand",fn:function(){return [_c('a',{staticClass:"navbar-brand",attrs:{"href":"/index.html","title":"Home"}},[_v("Your Logo")])]},proxy:true},{key:"right",fn:function(){return [_c('li',[_c('form',{staticClass:"navbar-form"},[_c('searchbar',{attrs:{"data":searchData,"placeholder":"Search","on-hit":searchCallback,"menu-align-right":""}})],1)])]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])]),_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])]),_v(" "),_c('dropdown',{staticClass:"nav-link",scopedSlots:_u([{key:"header",fn:function(){return [_v("Topic 3")]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])]),_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])],1)],1),_v(" "),_c('div',{attrs:{"id":"flex-body"}},[_c('overlay-source',{attrs:{"id":"site-nav","tag-name":"nav","to":"site-nav"}},[_c('div',{staticClass:"site-nav-top"},[_c('div',{staticClass:"fw-bold mb-2",staticStyle:{"font-size":"1.25rem"}},[_v("Template")])]),_v(" "),_c('div',{staticClass:"nav-component slim-scroll"},[_c('site-nav',[_c('overlay-source',{staticClass:"site-nav-list site-nav-list-root",attrs:{"tag-name":"ul","to":"mb-site-nav"}},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/index.html"}},[_v("Home 🏠")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_v("Topic 3 \n\n"),_c('div',{staticClass:"site-nav-dropdown-btn-container"},[_c('i',{staticClass:"site-nav-dropdown-btn-icon site-nav-rotate-icon",attrs:{"onclick":"handleSiteNavClick(this.parentNode.parentNode, false); event.stopPropagation();"}},[_c('span',{staticClass:"glyphicon glyphicon-menu-down",attrs:{"aria-hidden":"true"}})])])]),_c('ul',{staticClass:"site-nav-dropdown-container site-nav-dropdown-container-open site-nav-list"},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])])])])],1)],1)]),_v(" "),_m(0),_v(" "),_c('overlay-source',{attrs:{"id":"page-nav","tag-name":"nav","to":"page-nav"}},[_c('div',{staticClass:"nav-component slim-scroll"},[_c('a',{pre:true,attrs:{"class":"navbar-brand page-nav-title","href":"#"}},[_v("Chapters of This Page")]),_v(" "),_c('overlay-source',{staticClass:"nav nav-pills flex-column my-0 small no-flex-wrap",attrs:{"id":"mb-page-nav","tag-name":"nav","to":"mb-page-nav"}})],1)]),_v(" "),_c('scroll-top-button')],1),_v(" "),_m(1)])} }; var pageVueStaticRenderFns = [function anonymous( ) { -with(this){return _c('div',{staticClass:"bg-primary text-white py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-4 no-index",attrs:{"id":"landing-page-title"}},[_c('span',{staticClass:"anchor",attrs:{"id":"landing-page-title"}}),_v("Landing Page Title"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#landing-page-title","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("A tagline can go here")])])])} -},function anonymous( -) { -with(this){return _c('h1',{attrs:{"id":"heading-1"}},[_c('span',{staticClass:"anchor",attrs:{"id":"heading-1"}}),_v("Heading 1"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#heading-1","onclick":"event.stopPropagation()"}})])} -},function anonymous( -) { -with(this){return _c('p',[_v("Some text some text some text some text some text some text some text. "),_c('strong',[_v("Some text some text some text some text some text "),_c('mark',[_v("some text")]),_v(" some text")]),_v(". Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.")])} -},function anonymous( -) { -with(this){return _c('p',[_c('strong',[_v("A block quote:")])])} -},function anonymous( -) { -with(this){return _c('blockquote',[_c('p',[_v("Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text.")])])} -},function anonymous( -) { -with(this){return _c('p',[_c('strong',[_v("A list:")])])} -},function anonymous( -) { -with(this){return _c('ul',[_c('li',[_v("item A")]),_v(" "),_c('li',[_v("item B\n"),_c('ol',[_c('li',[_v("item b1")]),_v(" "),_c('li',[_v("item b2")]),_v(" "),_c('li',[_v("item b3")])])])])} -},function anonymous( -) { -with(this){return _c('p',[_c('strong',[_v("A "),_c('code',{pre:true,attrs:{"class":"hljs inline no-lang"}},[_v("code")]),_v(" example:")])])} -},function anonymous( -) { -with(this){return _c('pre',[_c('code',{pre:true,attrs:{"class":"hljs html"}},[_c('span',[_c('span',{pre:true,attrs:{"class":"hljs-tag"}},[_v("<"),_c('span',{pre:true,attrs:{"class":"hljs-name"}},[_v("foo")]),_v(">")]),_v("\n")]),_c('span',[_v(" "),_c('span',{pre:true,attrs:{"class":"hljs-tag"}},[_v("<"),_c('span',{pre:true,attrs:{"class":"hljs-name"}},[_v("bar")]),_v(" "),_c('span',{pre:true,attrs:{"class":"hljs-attr"}},[_v("type")]),_v("="),_c('span',{pre:true,attrs:{"class":"hljs-string"}},[_v("\"name\"")]),_v(">")]),_v("goo"),_c('span',{pre:true,attrs:{"class":"hljs-tag"}},[_v("")]),_v("\n")]),_c('span',[_c('span',{pre:true,attrs:{"class":"hljs-tag"}},[_v("")]),_v("\n")])])])} -},function anonymous( -) { -with(this){return _c('h2',{attrs:{"id":"sub-heading-1-1"}},[_c('span',{staticClass:"anchor",attrs:{"id":"sub-heading-1-1"}}),_v("Sub Heading 1.1"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#sub-heading-1-1","onclick":"event.stopPropagation()"}})])} -},function anonymous( -) { -with(this){return _c('p',[_c('strong',[_v("A table:")])])} -},function anonymous( -) { -with(this){return _c('div',{staticClass:"table-responsive"},[_c('table',{staticClass:"markbind-table table table-bordered table-striped"},[_c('thead',[_c('tr',[_c('th',{staticStyle:{"text-align":"center"}},[_v("Column 1")]),_v(" "),_c('th',{staticStyle:{"text-align":"center"}},[_v("Column 2")]),_v(" "),_c('th',{staticStyle:{"text-align":"center"}},[_v("Column 3")]),_v(" "),_c('th',[_c('span',{staticClass:"far fa-thumbs-up",attrs:{"aria-hidden":"true"}}),_v(" / "),_c('span',{staticClass:"far fa-thumbs-down",attrs:{"aria-hidden":"true"}}),_v("?")])])]),_v(" "),_c('tbody',[_c('tr',[_c('td',{staticStyle:{"text-align":"center"}},[_v("value1")]),_v(" "),_c('td',{staticStyle:{"text-align":"center"}},[_v("x")]),_v(" "),_c('td',{staticStyle:{"text-align":"center"}},[_v("5")]),_v(" "),_c('td',[_c('span',{staticClass:"far fa-thumbs-up",attrs:{"aria-hidden":"true"}})])]),_v(" "),_c('tr',[_c('td',{staticStyle:{"text-align":"center"}},[_v("value2")]),_v(" "),_c('td',{staticStyle:{"text-align":"center"}},[_v("y")]),_v(" "),_c('td',{staticStyle:{"text-align":"center"}},[_v("20")]),_v(" "),_c('td',[_c('span',{staticClass:"far fa-thumbs-down",attrs:{"aria-hidden":"true"}})])])])])])} -},function anonymous( -) { -with(this){return _c('h2',{attrs:{"id":"sub-heading-1-2"}},[_c('span',{staticClass:"anchor",attrs:{"id":"sub-heading-1-2"}}),_v("Sub Heading 1.2"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#sub-heading-1-2","onclick":"event.stopPropagation()"}})])} -},function anonymous( -) { -with(this){return _c('p',[_c('strong',[_v("Media embeds:")])])} -},function anonymous( -) { -with(this){return _c('div',{staticClass:"block-embed block-embed-service-youtube",staticStyle:{"position":"relative","padding-bottom":"60.9375%"}},[_c('iframe',{attrs:{"type":"text/html","src":"//www.youtube.com/embed/v40b3ExbM0c","frameborder":"0","webkitallowfullscreen":"","mozallowfullscreen":"","allowfullscreen":""}})])} -},function anonymous( -) { -with(this){return _c('p',[_c('strong',[_v("Tabs:")])])} -},function anonymous( -) { -with(this){return _c('h1',{attrs:{"id":"heading-2"}},[_c('span',{staticClass:"anchor",attrs:{"id":"heading-2"}}),_v("Heading 2"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#heading-2","onclick":"event.stopPropagation()"}})])} -},function anonymous( -) { -with(this){return _c('p',[_c('strong',[_v("Some boxes:")])])} -},function anonymous( -) { -with(this){return _c('h1',{attrs:{"id":"heading-3"}},[_c('span',{staticClass:"anchor",attrs:{"id":"heading-3"}}),_v("Heading 3"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#heading-3","onclick":"event.stopPropagation()"}})])} +with(this){return _c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_c('div',{staticClass:"bg-primary text-white py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-4 no-index",attrs:{"id":"great-you-just-initialized-a-markbind-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"great-you-just-initialized-a-markbind-site"}}),_v("Great!"),_c('br'),_v("You just initialized a MarkBind site."),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#great-you-just-initialized-a-markbind-site","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("Let's get started...")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-authoring-contents"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-authoring-contents"}}),_c('strong',[_v("User Guide: Authoring Contents")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-authoring-contents","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Authoring Contents")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-working-with-sites"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-working-with-sites"}}),_c('strong',[_v("User Guide: Working with Sites")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-working-with-sites","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Working with Sites")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-full-syntax-reference"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-full-syntax-reference"}}),_c('strong',[_v("User Guide: Full Syntax Reference")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-full-syntax-reference","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/fullSyntaxReference.html","target":"_blank"}},[_v("User Guide → Full Syntax Reference")])])])]),_v(" "),_c('hr')])} },function anonymous( ) { with(this){return _c('footer',[_c('div',{staticClass:"text-center"},[_c('small',[_v("[Generated by "),_c('a',{attrs:{"href":"https://markbind.org/"}},[_v("MarkBind 4.1.0")]),_v("]")])])])} diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json b/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json index 6d5029373b..7afd87cebf 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json @@ -41,14 +41,8 @@ }, { "src": "index.md", - "title": "Landing Page", - "headings": { - "heading-1": "Heading 1", - "sub-heading-1-1": "Sub Heading 1.1", - "sub-heading-1-2": "Sub Heading 1.2", - "heading-2": "Heading 2", - "heading-3": "Heading 3" - }, + "title": "Home Page", + "headings": {}, "headingKeywords": {} } ] diff --git a/packages/core/template/default/index.md b/packages/core/template/default/index.md index 9ca9159017..1fbcf2ac2d 100755 --- a/packages/core/template/default/index.md +++ b/packages/core/template/default/index.md @@ -1,5 +1,5 @@ - title: Landing Page + title: Home Page layout: default.md pageNav: 2 pageNavTitle: "Chapters of This Page" @@ -9,124 +9,45 @@
-

Landing Page Title

-

A tagline can go here

+

Great!
You just initialized a MarkBind site.

+

Let's get started...

-# Heading 1 -Some text some text some text some text some text some text some text. **Some text some text some text some text some text ==some text== some text**. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. +
-**A block quote:** +
User Guide: Authoring Contents
-> Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. +
-**A list:** +Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site. -* item A -* item B - 1. item b1 - 1. item b2 - 1. item b3 +
-**A `code` example:** +More info in: _User Guide → Authoring Contents_ -```html - - goo - -``` +
-## Sub Heading 1.1 +
User Guide: Working with Sites
-A tooltip, a modal, a link, a badge, another badge. +
- -Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. - +Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site. -**A table:** +
-Column 1 | Column 2 | Column 3 | :far-thumbs-up: / :far-thumbs-down:? -:------: | :------: | :------: | ---- -value1 | x | 5 | :far-thumbs-up: -value2 | y | 20 | :far-thumbs-down: +More info in: _User Guide → Working with Sites_ +
-## Sub Heading 1.2 +
User Guide: Full Syntax Reference
-**Media embeds:** +
-@[youtube](http://www.youtube.com/watch?v=v40b3ExbM0c) +Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site. -**Tabs:** +
- - - Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. - - - ... - - - - ... - - - ... - - - +More info in: _User Guide → Full Syntax Reference_ -
- -# Heading 2 - -**Some boxes:** - - - default - - - info - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - - - tip - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - - -
- -# Heading 3 - - - Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text. Some text some text some text some text some text some text some text some text some text some text some text some text some text some text. Some text some text some text some text some text some text. Some text some text some text some text some text some text some text. - -
- - ... - -
- - ... - -
- - ... - -
- -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - -Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. - - -Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +
From 2e0be1f39c32cc81cc28307399928cc1dd3186b0 Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Sun, 19 Mar 2023 01:28:57 +0800 Subject: [PATCH 02/13] Modify wording in templates.md --- docs/userGuide/templates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/userGuide/templates.md b/docs/userGuide/templates.md index beaae86237..e442006667 100644 --- a/docs/userGuide/templates.md +++ b/docs/userGuide/templates.md @@ -20,5 +20,5 @@ markbind init --template minimal Name | Template key | Description | Quick Deploy ---- | ------- | ----------- | ------------ -Default | `default` | Default template if `--template` is unspecified. Filled with MarkBind features to guide you to author better content. | -Minimal | `minimal` | Minimalistic template that gets you started quickly | \ No newline at end of file +Default | `default` | Default template if `--template` is unspecified. Includes links to the main sections of the MarkBind User Guide. | +Minimal | `minimal` | Minimalistic template that gets you started quickly. | \ No newline at end of file From d5317d095a7a908d8a582e36e54a7751e4889a53 Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Mon, 20 Mar 2023 12:11:15 +0800 Subject: [PATCH 03/13] Change headings to markdown --- packages/core/template/default/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/template/default/index.md b/packages/core/template/default/index.md index 1fbcf2ac2d..a77002695e 100755 --- a/packages/core/template/default/index.md +++ b/packages/core/template/default/index.md @@ -16,7 +16,7 @@
-
User Guide: Authoring Contents
+##### **User Guide: Authoring Contents**
@@ -28,7 +28,7 @@ Learn about the variety of syntax schemes, formats, and custom MarkBind componen
-
User Guide: Working with Sites
+##### **User Guide: Working with Sites**
@@ -40,7 +40,7 @@ Learn how to modify site properties, apply themes, and enable / disable plugins
-
User Guide: Full Syntax Reference
+##### **User Guide: Full Syntax Reference**
From b63d3310b22dfdf1a66cb5342dbc616df9c18da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lee=20Hyung=20Woon=20/=20=EC=9D=B4=ED=98=95=EC=9A=B4?= Date: Mon, 20 Mar 2023 13:35:06 +0800 Subject: [PATCH 04/13] Update packages/core/template/default/index.md Co-authored-by: Jovyn Tan <61113575+jovyntls@users.noreply.github.com> --- packages/core/template/default/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/template/default/index.md b/packages/core/template/default/index.md index a77002695e..654a32633b 100755 --- a/packages/core/template/default/index.md +++ b/packages/core/template/default/index.md @@ -9,7 +9,7 @@
-

Great!
You just initialized a MarkBind site.

+

Great!
You've just initialized a MarkBind site.

Let's get started...

From 8e83dbc3c4ab0f84f662fcd31088755586c6bd33 Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Mon, 20 Mar 2023 13:45:04 +0800 Subject: [PATCH 05/13] Update tests --- .../test_site_templates/test_default/expected/index.html | 2 +- .../test_default/expected/index.page-vue-render.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html index 271fc13e3c..70633f4755 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html @@ -90,7 +90,7 @@
-

Great!
You just initialized a MarkBind site.

+

Great!
You've just initialized a MarkBind site.

Let's get started...

diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js index aed931f4f4..10bf190524 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js @@ -5,7 +5,7 @@ with(this){return _c('div',{attrs:{"id":"app"}},[_c('header',{attrs:{"sticky":"" }; var pageVueStaticRenderFns = [function anonymous( ) { -with(this){return _c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_c('div',{staticClass:"bg-primary text-white py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-4 no-index",attrs:{"id":"great-you-just-initialized-a-markbind-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"great-you-just-initialized-a-markbind-site"}}),_v("Great!"),_c('br'),_v("You just initialized a MarkBind site."),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#great-you-just-initialized-a-markbind-site","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("Let's get started...")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-authoring-contents"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-authoring-contents"}}),_c('strong',[_v("User Guide: Authoring Contents")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-authoring-contents","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Authoring Contents")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-working-with-sites"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-working-with-sites"}}),_c('strong',[_v("User Guide: Working with Sites")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-working-with-sites","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Working with Sites")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-full-syntax-reference"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-full-syntax-reference"}}),_c('strong',[_v("User Guide: Full Syntax Reference")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-full-syntax-reference","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/fullSyntaxReference.html","target":"_blank"}},[_v("User Guide → Full Syntax Reference")])])])]),_v(" "),_c('hr')])} +with(this){return _c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_c('div',{staticClass:"bg-primary text-white py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-4 no-index",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}}),_v("Great!"),_c('br'),_v("You've just initialized a MarkBind site."),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#great-you-ve-just-initialized-a-markbind-site","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("Let's get started...")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-authoring-contents"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-authoring-contents"}}),_c('strong',[_v("User Guide: Authoring Contents")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-authoring-contents","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Authoring Contents")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-working-with-sites"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-working-with-sites"}}),_c('strong',[_v("User Guide: Working with Sites")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-working-with-sites","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Working with Sites")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-full-syntax-reference"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-full-syntax-reference"}}),_c('strong',[_v("User Guide: Full Syntax Reference")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-full-syntax-reference","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/fullSyntaxReference.html","target":"_blank"}},[_v("User Guide → Full Syntax Reference")])])])]),_v(" "),_c('hr')])} },function anonymous( ) { with(this){return _c('footer',[_c('div',{staticClass:"text-center"},[_c('small',[_v("[Generated by "),_c('a',{attrs:{"href":"https://markbind.org/"}},[_v("MarkBind 4.1.0")]),_v("]")])])])} From 44f44542396dd4ab489d92fbe067fcb3498f174a Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Mon, 20 Mar 2023 18:48:12 +0800 Subject: [PATCH 06/13] Make changes --- docs/userGuide/templates.md | 2 +- packages/core/template/default/index.md | 32 ++++++++----------------- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/docs/userGuide/templates.md b/docs/userGuide/templates.md index e442006667..8a0b9efef1 100644 --- a/docs/userGuide/templates.md +++ b/docs/userGuide/templates.md @@ -20,5 +20,5 @@ markbind init --template minimal Name | Template key | Description | Quick Deploy ---- | ------- | ----------- | ------------ -Default | `default` | Default template if `--template` is unspecified. Includes links to the main sections of the MarkBind User Guide. | +Default | `default` | Default template if `--template` is unspecified. Includes core features such as site and page navigation for a more convenient quick start. | Minimal | `minimal` | Minimalistic template that gets you started quickly. | \ No newline at end of file diff --git a/packages/core/template/default/index.md b/packages/core/template/default/index.md index 654a32633b..9416a866af 100755 --- a/packages/core/template/default/index.md +++ b/packages/core/template/default/index.md @@ -14,40 +14,28 @@ -
+--- ##### **User Guide: Authoring Contents** -
+> Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site. -Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site. +More info in: _User Guide → Authoring Contents_ -
- -More info in: _User Guide → Authoring Contents_ - -
+--- ##### **User Guide: Working with Sites** -
- -Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site. +> Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site. -
+More info in: _User Guide → Working with Sites_ -More info in: _User Guide → Working with Sites_ - -
+--- ##### **User Guide: Full Syntax Reference** -
- -Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site. - -
+> Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site. -More info in: _User Guide → Full Syntax Reference_ +More info in: _User Guide → Full Syntax Reference_ -
+--- From cc92d453491b8a243592253e9e5183b507754c46 Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Mon, 20 Mar 2023 18:53:15 +0800 Subject: [PATCH 07/13] Update tests --- .../test_site_templates/test_default/expected/index.html | 6 +++--- .../test_default/expected/index.page-vue-render.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html index 70633f4755..f855a1c461 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html @@ -99,19 +99,19 @@

Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.

-

More info in: User Guide → Authoring Contents

+

More info in: User Guide → Authoring Contents


User Guide: Working with Sites

Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.

-

More info in: User Guide → Working with Sites

+

More info in: User Guide → Working with Sites


User Guide: Full Syntax Reference

Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.

-

More info in: User Guide → Full Syntax Reference

+

More info in: User Guide → Full Syntax Reference


diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js index 10bf190524..5d293903e4 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js @@ -5,7 +5,7 @@ with(this){return _c('div',{attrs:{"id":"app"}},[_c('header',{attrs:{"sticky":"" }; var pageVueStaticRenderFns = [function anonymous( ) { -with(this){return _c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_c('div',{staticClass:"bg-primary text-white py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-4 no-index",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}}),_v("Great!"),_c('br'),_v("You've just initialized a MarkBind site."),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#great-you-ve-just-initialized-a-markbind-site","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("Let's get started...")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-authoring-contents"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-authoring-contents"}}),_c('strong',[_v("User Guide: Authoring Contents")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-authoring-contents","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Authoring Contents")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-working-with-sites"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-working-with-sites"}}),_c('strong',[_v("User Guide: Working with Sites")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-working-with-sites","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Working with Sites")])])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-full-syntax-reference"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-full-syntax-reference"}}),_c('strong',[_v("User Guide: Full Syntax Reference")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-full-syntax-reference","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.")])]),_v(" "),_c('p',[_c('span',{staticClass:"indented"},[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/fullSyntaxReference.html","target":"_blank"}},[_v("User Guide → Full Syntax Reference")])])])]),_v(" "),_c('hr')])} +with(this){return _c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_c('div',{staticClass:"bg-primary text-white py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-4 no-index",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}}),_v("Great!"),_c('br'),_v("You've just initialized a MarkBind site."),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#great-you-ve-just-initialized-a-markbind-site","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("Let's get started...")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-authoring-contents"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-authoring-contents"}}),_c('strong',[_v("User Guide: Authoring Contents")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-authoring-contents","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Authoring Contents")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-working-with-sites"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-working-with-sites"}}),_c('strong',[_v("User Guide: Working with Sites")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-working-with-sites","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Working with Sites")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-full-syntax-reference"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-full-syntax-reference"}}),_c('strong',[_v("User Guide: Full Syntax Reference")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-full-syntax-reference","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/fullSyntaxReference.html","target":"_blank"}},[_v("User Guide → Full Syntax Reference")])])]),_v(" "),_c('hr')])} },function anonymous( ) { with(this){return _c('footer',[_c('div',{staticClass:"text-center"},[_c('small',[_v("[Generated by "),_c('a',{attrs:{"href":"https://markbind.org/"}},[_v("MarkBind 4.1.0")]),_v("]")])])])} From 00d8a878c39d2a0d64483194e63f260d3696e81a Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Sun, 26 Mar 2023 18:06:28 +0800 Subject: [PATCH 08/13] Update template --- .../test_default/expected/index.html | 60 +++++++++++++------ .../expected/index.page-vue-render.js | 22 ++++++- .../test_default/expected/siteData.json | 6 +- packages/core/template/default/index.md | 42 +++++++++++-- 4 files changed, 104 insertions(+), 26 deletions(-) diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html index f855a1c461..0b90f89aae 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html @@ -28,7 +28,7 @@ const baseUrl = '' - +
@@ -88,36 +88,58 @@

-
+
-

Great!
You've just initialized a MarkBind site.

+

Great!
You've just initialized a MarkBind site.

Let's get started...


-
User Guide: Authoring Contents
-
-

Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.

-
-

More info in: User Guide → Authoring Contents

+

What did I just do?

+

You have just initialized a default MarkBind site, which is equipped with a set of core features of a MarkBind site like Site and Page Navigation, as well as some links to our User Guide, to help you get started more conveniently!

+ +

If you were intending to convert an existing GitHub wiki or a docs folder into MarkBind, use the "--convert" flag instead. See User Guide: MarkBind in the Project Workflow for more information.

+

If you want to start with a minimal template instead, use the "--template" flag to initialize a minimal site instead of the default. See User Guide: Templates for more information.

+

-
User Guide: Working with Sites
-
-

Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.

-
-

More info in: User Guide → Working with Sites

-
-
User Guide: Full Syntax Reference
-
-

Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.

-
-

More info in: User Guide → Full Syntax Reference

+ +

This default site comes pre-configured with the core Navigation components: a siteNav, a pageNav, a NavBar, and a Search Bar. To help you get started with the siteNav, we have included five dummy placeholder pages. The NavBar also comes with a placeholder slot for your custom Logo.


+

Guide to MarkBind

+

To see the capability of MarkBind in action, feel free to take a look at some of the websites built using MarkBind on our Showcase page.

+

For more information on how to work with MarkBind sites and to add content, refer to our comprehensive User Guide.

+ +

If you are interested in contributing to MarkBind, you can refer to our Developer Guide as well!

+
+ +
User Guide: Authoring Contents
+
+

Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.

+
+

More info in: User Guide → Authoring Contents

+
+
User Guide: Working with Sites
+
+

Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.

+
+

More info in: User Guide → Working with Sites

+
+
User Guide: Full Syntax Reference
+
+

Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.

+
+

More info in: User Guide → Full Syntax Reference

+
diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js index 5d293903e4..d0bdbe8f6f 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.page-vue-render.js @@ -1,11 +1,29 @@ var pageVueRenderFn = function anonymous( ) { -with(this){return _c('div',{attrs:{"id":"app"}},[_c('header',{attrs:{"sticky":""}},[_c('navbar',{attrs:{"type":"dark"},scopedSlots:_u([{key:"brand",fn:function(){return [_c('a',{staticClass:"navbar-brand",attrs:{"href":"/index.html","title":"Home"}},[_v("Your Logo")])]},proxy:true},{key:"right",fn:function(){return [_c('li',[_c('form',{staticClass:"navbar-form"},[_c('searchbar',{attrs:{"data":searchData,"placeholder":"Search","on-hit":searchCallback,"menu-align-right":""}})],1)])]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])]),_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])]),_v(" "),_c('dropdown',{staticClass:"nav-link",scopedSlots:_u([{key:"header",fn:function(){return [_v("Topic 3")]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])]),_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])],1)],1),_v(" "),_c('div',{attrs:{"id":"flex-body"}},[_c('overlay-source',{attrs:{"id":"site-nav","tag-name":"nav","to":"site-nav"}},[_c('div',{staticClass:"site-nav-top"},[_c('div',{staticClass:"fw-bold mb-2",staticStyle:{"font-size":"1.25rem"}},[_v("Template")])]),_v(" "),_c('div',{staticClass:"nav-component slim-scroll"},[_c('site-nav',[_c('overlay-source',{staticClass:"site-nav-list site-nav-list-root",attrs:{"tag-name":"ul","to":"mb-site-nav"}},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/index.html"}},[_v("Home 🏠")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_v("Topic 3 \n\n"),_c('div',{staticClass:"site-nav-dropdown-btn-container"},[_c('i',{staticClass:"site-nav-dropdown-btn-icon site-nav-rotate-icon",attrs:{"onclick":"handleSiteNavClick(this.parentNode.parentNode, false); event.stopPropagation();"}},[_c('span',{staticClass:"glyphicon glyphicon-menu-down",attrs:{"aria-hidden":"true"}})])])]),_c('ul',{staticClass:"site-nav-dropdown-container site-nav-dropdown-container-open site-nav-list"},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])])])])],1)],1)]),_v(" "),_m(0),_v(" "),_c('overlay-source',{attrs:{"id":"page-nav","tag-name":"nav","to":"page-nav"}},[_c('div',{staticClass:"nav-component slim-scroll"},[_c('a',{pre:true,attrs:{"class":"navbar-brand page-nav-title","href":"#"}},[_v("Chapters of This Page")]),_v(" "),_c('overlay-source',{staticClass:"nav nav-pills flex-column my-0 small no-flex-wrap",attrs:{"id":"mb-page-nav","tag-name":"nav","to":"mb-page-nav"}})],1)]),_v(" "),_c('scroll-top-button')],1),_v(" "),_m(1)])} +with(this){return _c('div',{attrs:{"id":"app"}},[_c('header',{attrs:{"sticky":""}},[_c('navbar',{attrs:{"type":"dark"},scopedSlots:_u([{key:"brand",fn:function(){return [_c('a',{staticClass:"navbar-brand",attrs:{"href":"/index.html","title":"Home"}},[_v("Your Logo")])]},proxy:true},{key:"right",fn:function(){return [_c('li',[_c('form',{staticClass:"navbar-form"},[_c('searchbar',{attrs:{"data":searchData,"placeholder":"Search","on-hit":searchCallback,"menu-align-right":""}})],1)])]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])]),_v(" "),_c('li',[_c('a',{staticClass:"nav-link",attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])]),_v(" "),_c('dropdown',{staticClass:"nav-link",scopedSlots:_u([{key:"header",fn:function(){return [_v("Topic 3")]},proxy:true}])},[_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])]),_v(" "),_c('li',[_c('a',{staticClass:"dropdown-item",attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])],1)],1),_v(" "),_c('div',{attrs:{"id":"flex-body"}},[_c('overlay-source',{attrs:{"id":"site-nav","tag-name":"nav","to":"site-nav"}},[_c('div',{staticClass:"site-nav-top"},[_c('div',{staticClass:"fw-bold mb-2",staticStyle:{"font-size":"1.25rem"}},[_v("Template")])]),_v(" "),_c('div',{staticClass:"nav-component slim-scroll"},[_c('site-nav',[_c('overlay-source',{staticClass:"site-nav-list site-nav-list-root",attrs:{"tag-name":"ul","to":"mb-site-nav"}},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/index.html"}},[_v("Home 🏠")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic1.html"}},[_v("Topic 1")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic2.html"}},[_v("Topic 2")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-0",attrs:{"onclick":"handleSiteNavClick(this)"}},[_v("Topic 3 \n\n"),_c('div',{staticClass:"site-nav-dropdown-btn-container"},[_c('i',{staticClass:"site-nav-dropdown-btn-icon site-nav-rotate-icon",attrs:{"onclick":"handleSiteNavClick(this.parentNode.parentNode, false); event.stopPropagation();"}},[_c('span',{staticClass:"glyphicon glyphicon-menu-down",attrs:{"aria-hidden":"true"}})])])]),_c('ul',{staticClass:"site-nav-dropdown-container site-nav-dropdown-container-open site-nav-list"},[_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3a.html"}},[_v("Topic 3a")])])]),_v(" "),_c('li',[_c('div',{staticClass:"site-nav-default-list-item site-nav-list-item-1",attrs:{"onclick":"handleSiteNavClick(this)"}},[_c('a',{attrs:{"href":"/contents/topic3b.html"}},[_v("Topic 3b")])])])])])])],1)],1)]),_v(" "),_c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_m(0),_v(" "),_c('hr'),_v(" "),_m(1),_v(" "),_m(2),_v(" "),_c('box',{attrs:{"type":"tip"}},[_c('p',[_v("If you were intending to convert an existing GitHub wiki or a docs folder into MarkBind, use the \"--convert\" flag instead. See "),_c('a',{attrs:{"href":"https://markbind.org/userGuide/markBindInTheProjectWorkflow.html#converting-existing-project-documentation-wiki","target":"_blank"}},[_v("User Guide: MarkBind in the Project Workflow")]),_v(" for more information.")]),_v(" "),_c('p',[_v("If you want to start with a "),_c('tooltip',{scopedSlots:_u([{key:"content",fn:function(){return [_v("i.e. without any content")]},proxy:true}])},[_c('em',[_v("minimal")])]),_v(" template instead, use the \"--template\" flag to initialize a minimal site instead of the default. See "),_c('a',{attrs:{"href":"https://markbind.org/userGuide/templates.html","target":"_blank"}},[_v("User Guide: Templates")]),_v(" for more information.")],1)]),_v(" "),_c('hr'),_v(" "),_m(3),_v(" "),_c('p',[_v("This "),_c('em',[_v("default")]),_v(" site comes pre-configured with the core "),_c('a',{attrs:{"href":"https://markbind.org/userGuide/components/navigation.html#navigation-components","target":"_blank"}},[_v("Navigation components")]),_v(": a "),_c('tooltip',{scopedSlots:_u([{key:"content",fn:function(){return [_v("Site Navigation")]},proxy:true}])},[_c('strong',[_v("siteNav")])]),_v(", a "),_c('tooltip',{scopedSlots:_u([{key:"content",fn:function(){return [_v("Page Navigation")]},proxy:true}])},[_c('strong',[_v("pageNav")])]),_v(", a "),_c('tooltip',{scopedSlots:_u([{key:"content",fn:function(){return [_v("Navigation Bar")]},proxy:true}])},[_c('strong',[_v("NavBar")])]),_v(", and a "),_c('strong',[_v("Search Bar")]),_v(". To help you get started with the "),_c('strong',[_v("siteNav")]),_v(", we have included "),_c('tooltip',{scopedSlots:_u([{key:"content",fn:function(){return [_v("Topic 1, Topic 2, Topic 3, Topic 3a, Topic 3b")]},proxy:true}])},[_v("five dummy placeholder pages")]),_v(". The "),_c('strong',[_v("NavBar")]),_v(" also comes with a placeholder slot for your custom Logo.")],1),_v(" "),_c('hr'),_v(" "),_m(4),_v(" "),_m(5),_v(" "),_m(6),_v(" "),_c('box',{attrs:{"type":"info"}},[_c('p',[_v("If you are interested in contributing to MarkBind, you can refer to our "),_c('a',{attrs:{"href":"https://markbind.org/devdocs/devGuide/devGuide.html","target":"_blank"}},[_v("Developer Guide")]),_v(" as well!")])]),_v(" "),_c('panel',{attrs:{"expanded":"","no-close":""},scopedSlots:_u([{key:"header",fn:function(){return [_c('p',[_c('strong',[_v("Good starting points in our User Guide:")])])]},proxy:true}])},[_v(" "),_c('h5',{attrs:{"id":"user-guide-authoring-contents"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-authoring-contents"}}),_c('strong',[_v("User Guide: Authoring Contents")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-authoring-contents","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Authoring Contents")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-working-with-sites"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-working-with-sites"}}),_c('strong',[_v("User Guide: Working with Sites")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-working-with-sites","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Working with Sites")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-full-syntax-reference"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-full-syntax-reference"}}),_c('strong',[_v("User Guide: Full Syntax Reference")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-full-syntax-reference","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/fullSyntaxReference.html","target":"_blank"}},[_v("User Guide → Full Syntax Reference")])])])])],1),_v(" "),_c('overlay-source',{attrs:{"id":"page-nav","tag-name":"nav","to":"page-nav"}},[_c('div',{staticClass:"nav-component slim-scroll"},[_c('a',{pre:true,attrs:{"class":"navbar-brand page-nav-title","href":"#"}},[_v("Chapters of This Page")]),_v(" "),_c('overlay-source',{staticClass:"nav nav-pills flex-column my-0 small no-flex-wrap",attrs:{"id":"mb-page-nav","tag-name":"nav","to":"mb-page-nav"}},[_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#what-did-i-just-do"}},[_v("What did I just do?‎")]),_v(" "),_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#navigating-this-site"}},[_v("Navigating this site‎")]),_v(" "),_c('a',{pre:true,attrs:{"class":"nav-link py-1","href":"#guide-to-markbind"}},[_v("Guide to MarkBind‎")])])],1)]),_v(" "),_c('scroll-top-button')],1),_v(" "),_m(7)])} }; var pageVueStaticRenderFns = [function anonymous( ) { -with(this){return _c('div',{attrs:{"id":"content-wrapper"}},[_c('br'),_v(" "),_c('div',{staticClass:"bg-primary text-white py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-4 no-index",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}}),_v("Great!"),_c('br'),_v("You've just initialized a MarkBind site."),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#great-you-ve-just-initialized-a-markbind-site","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("Let's get started...")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-authoring-contents"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-authoring-contents"}}),_c('strong',[_v("User Guide: Authoring Contents")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-authoring-contents","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Authoring Contents")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-working-with-sites"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-working-with-sites"}}),_c('strong',[_v("User Guide: Working with Sites")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-working-with-sites","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/authoringContents.html","target":"_blank"}},[_v("User Guide → Working with Sites")])])]),_v(" "),_c('hr'),_v(" "),_c('h5',{attrs:{"id":"user-guide-full-syntax-reference"}},[_c('span',{staticClass:"anchor",attrs:{"id":"user-guide-full-syntax-reference"}}),_c('strong',[_v("User Guide: Full Syntax Reference")]),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#user-guide-full-syntax-reference","onclick":"event.stopPropagation()"}})]),_v(" "),_c('blockquote',[_c('p',[_v("Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.")])]),_v(" "),_c('p',[_v("More info in: "),_c('em',[_c('a',{attrs:{"href":"https://markbind.org/userGuide/fullSyntaxReference.html","target":"_blank"}},[_v("User Guide → Full Syntax Reference")])])]),_v(" "),_c('hr')])} +with(this){return _c('div',{staticClass:"bg-primary text-white px-2 py-5 mb-4"},[_c('div',{staticClass:"container"},[_c('h1',{staticClass:"display-5 no-index",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"great-you-ve-just-initialized-a-markbind-site"}}),_v("Great!"),_c('br'),_v("You've just initialized a MarkBind site."),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#great-you-ve-just-initialized-a-markbind-site","onclick":"event.stopPropagation()"}})]),_v(" "),_c('p',{staticClass:"lead"},[_v("Let's get started...")])])])} +},function anonymous( +) { +with(this){return _c('h2',{attrs:{"id":"what-did-i-just-do"}},[_c('span',{staticClass:"anchor",attrs:{"id":"what-did-i-just-do"}}),_v("What did I just do?"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#what-did-i-just-do","onclick":"event.stopPropagation()"}})])} +},function anonymous( +) { +with(this){return _c('p',[_v("You have just initialized a "),_c('em',[_v("default")]),_v(" MarkBind site, which is equipped with a set of core features of a MarkBind site like Site and Page Navigation, as well as some links to our User Guide, to help you get started more conveniently!")])} +},function anonymous( +) { +with(this){return _c('h2',{attrs:{"id":"navigating-this-site"}},[_c('span',{staticClass:"anchor",attrs:{"id":"navigating-this-site"}}),_v("Navigating this site"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#navigating-this-site","onclick":"event.stopPropagation()"}})])} +},function anonymous( +) { +with(this){return _c('h2',{attrs:{"id":"guide-to-markbind"}},[_c('span',{staticClass:"anchor",attrs:{"id":"guide-to-markbind"}}),_v("Guide to MarkBind"),_c('a',{staticClass:"fa fa-anchor",attrs:{"href":"#guide-to-markbind","onclick":"event.stopPropagation()"}})])} +},function anonymous( +) { +with(this){return _c('p',[_v("To see the capability of MarkBind in action, feel free to take a look at some of the websites built using MarkBind on our "),_c('a',{attrs:{"href":"https://markbind.org/userGuide/gettingStarted.html","target":"_blank"}},[_v("Showcase")]),_v(" page.")])} +},function anonymous( +) { +with(this){return _c('p',[_v("For more information on how to work with MarkBind sites and to add content, refer to our comprehensive "),_c('a',{attrs:{"href":"https://markbind.org/userGuide/gettingStarted.html","target":"_blank"}},[_v("User Guide")]),_v(".")])} },function anonymous( ) { with(this){return _c('footer',[_c('div',{staticClass:"text-center"},[_c('small',[_v("[Generated by "),_c('a',{attrs:{"href":"https://markbind.org/"}},[_v("MarkBind 4.1.0")]),_v("]")])])])} diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json b/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json index 7afd87cebf..9298a3d0d8 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/siteData.json @@ -42,7 +42,11 @@ { "src": "index.md", "title": "Home Page", - "headings": {}, + "headings": { + "what-did-i-just-do": "What did I just do?", + "navigating-this-site": "Navigating this site", + "guide-to-markbind": "Guide to MarkBind" + }, "headingKeywords": {} } ] diff --git a/packages/core/template/default/index.md b/packages/core/template/default/index.md index 9416a866af..7597b34ce4 100755 --- a/packages/core/template/default/index.md +++ b/packages/core/template/default/index.md @@ -1,21 +1,55 @@ title: Home Page layout: default.md - pageNav: 2 + pageNav: 4 pageNavTitle: "Chapters of This Page"
-
+
-

Great!
You've just initialized a MarkBind site.

+

Great!
You've just initialized a MarkBind site.

Let's get started...

--- +## What did I just do? + +You have just initialized a _default_ MarkBind site, which is equipped with a set of core features of a MarkBind site like Site and Page Navigation, as well as some links to our User Guide, to help you get started more conveniently! + + + +If you were intending to convert an existing GitHub wiki or a docs folder into MarkBind, use the "--convert" flag instead. See User Guide: MarkBind in the Project Workflow for more information. + +If you want to start with a _minimal_ template instead, use the "--template" flag to initialize a minimal site instead of the default. See User Guide: Templates for more information. + + + +--- + +## Navigating this site + +This _default_ site comes pre-configured with the core Navigation components: a **siteNav**, a **pageNav**, a **NavBar**, and a **Search Bar**. To help you get started with the **siteNav**, we have included five dummy placeholder pages. The **NavBar** also comes with a placeholder slot for your custom Logo. + +--- + +## Guide to MarkBind + +To see the capability of MarkBind in action, feel free to take a look at some of the websites built using MarkBind on our Showcase page. + +For more information on how to work with MarkBind sites and to add content, refer to our comprehensive User Guide. + + + +If you are interested in contributing to MarkBind, you can refer to our Developer Guide as well! + + + + + ##### **User Guide: Authoring Contents** > Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site. @@ -38,4 +72,4 @@ More info in: _User Guide → Full Syntax Reference_ ---- + From 945ea738078da9000f4299903da634c4db9dee5e Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Tue, 28 Mar 2023 23:48:47 +0800 Subject: [PATCH 09/13] Fix nits --- packages/core/template/default/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/template/default/index.md b/packages/core/template/default/index.md index 7597b34ce4..0d82bde80c 100755 --- a/packages/core/template/default/index.md +++ b/packages/core/template/default/index.md @@ -2,7 +2,7 @@ title: Home Page layout: default.md pageNav: 4 - pageNavTitle: "Chapters of This Page" + pageNavTitle: "Placeholder Topic Pages"
@@ -16,7 +16,7 @@ --- -## What did I just do? +## What did you just do? You have just initialized a _default_ MarkBind site, which is equipped with a set of core features of a MarkBind site like Site and Page Navigation, as well as some links to our User Guide, to help you get started more conveniently! @@ -38,7 +38,7 @@ This _default_ site comes pre-configured with the core Showcase page. +To see the capability of MarkBind in action, feel free to take a look at some of the websites built using MarkBind on our Showcase page. For more information on how to work with MarkBind sites and to add content, refer to our comprehensive User Guide. @@ -62,7 +62,7 @@ More info in: _ Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site. -More info in: _User Guide → Working with Sites_ +More info in: _User Guide → Working with Sites_ --- From 579dc10e7a8515e9e1571f21486d3fb5536c44c6 Mon Sep 17 00:00:00 2001 From: lhw-1 Date: Tue, 28 Mar 2023 23:52:10 +0800 Subject: [PATCH 10/13] Update tests --- .../test_default/expected/index.html | 22 +++++++++---------- .../expected/index.page-vue-render.js | 12 +++++----- .../test_default/expected/siteData.json | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html index 0b90f89aae..7f7641df5b 100644 --- a/packages/cli/test/functional/test_site_templates/test_default/expected/index.html +++ b/packages/cli/test/functional/test_site_templates/test_default/expected/index.html @@ -90,23 +90,23 @@
-

Great!
You've just initialized a MarkBind site.

+

Great!
You've just initialized a MarkBind site.

Let's get started...


-

What did I just do?

+

What did you just do?

You have just initialized a default MarkBind site, which is equipped with a set of core features of a MarkBind site like Site and Page Navigation, as well as some links to our User Guide, to help you get started more conveniently!

If you were intending to convert an existing GitHub wiki or a docs folder into MarkBind, use the "--convert" flag instead. See User Guide: MarkBind in the Project Workflow for more information.

If you want to start with a minimal template instead, use the "--template" flag to initialize a minimal site instead of the default. See User Guide: Templates for more information.


- +

This default site comes pre-configured with the core Navigation components: a siteNav, a pageNav, a NavBar, and a Search Bar. To help you get started with the siteNav, we have included five dummy placeholder pages. The NavBar also comes with a placeholder slot for your custom Logo.


-

Guide to MarkBind

-

To see the capability of MarkBind in action, feel free to take a look at some of the websites built using MarkBind on our Showcase page.

+

Guide to MarkBind

+

To see the capability of MarkBind in action, feel free to take a look at some of the websites built using MarkBind on our Showcase page.

For more information on how to work with MarkBind sites and to add content, refer to our comprehensive User Guide.

If you are interested in contributing to MarkBind, you can refer to our Developer Guide as well!

@@ -114,19 +114,19 @@

Gu -
User Guide: Authoring Contents
+
User Guide: Authoring Contents

Learn about the variety of syntax schemes, formats, and custom MarkBind components that you can use in your MarkBind site.

More info in: User Guide → Authoring Contents


-
User Guide: Working with Sites
+
User Guide: Working with Sites

Learn how to modify site properties, apply themes, and enable / disable plugins for your MarkBind site.

-

More info in: User Guide → Working with Sites

+

More info in: User Guide → Working with Sites


-
User Guide: Full Syntax Reference
+
User Guide: Full Syntax Reference

Refer to our Full Syntax Reference page to find a specific feature or component that you want to use in your MarkBind site.

@@ -135,9 +135,9 @@