From 5200f0867c1cf65a7766ecb121cc69293789f720 Mon Sep 17 00:00:00 2001 From: yash-chowdhary Date: Tue, 10 Mar 2020 22:16:57 +0800 Subject: [PATCH 01/11] Upgrade beautify and support option to toggle js-beautify --- package-lock.json | 83 +++++++++++++++++++++++++++++++++-------------- package.json | 6 ++-- src/Page.js | 53 ++++++++++++++++++++---------- src/Site.js | 1 + 4 files changed, 99 insertions(+), 44 deletions(-) diff --git a/package-lock.json b/package-lock.json index 95f86cee5c..b70158f6a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2193,14 +2193,13 @@ } }, "editorconfig": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.13.3.tgz", - "integrity": "sha512-WkjsUNVCu+ITKDj73QDvi0trvpdDWdkDyHybDGSXPfekLCqwmpD7CP7iPbvBgosNuLcI96XTDwNa75JyFl7tEQ==", + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz", + "integrity": "sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==", "requires": { - "bluebird": "^3.0.5", - "commander": "^2.9.0", - "lru-cache": "^3.2.0", - "semver": "^5.1.0", + "commander": "^2.19.0", + "lru-cache": "^4.1.5", + "semver": "^5.6.0", "sigmund": "^1.0.1" }, "dependencies": { @@ -5255,14 +5254,30 @@ } }, "js-beautify": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.7.5.tgz", - "integrity": "sha512-9OhfAqGOrD7hoQBLJMTA+BKuKmoEtTJXzZ7WDF/9gvjtey1koVLuZqIY6c51aPDjbNdNtIXAkiWKVhziawE9Og==", + "version": "1.10.1-rc2", + "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.10.1-rc2.tgz", + "integrity": "sha512-FjuOxdWIbpXKE6ydkg/uYmVgbv84tXpFhViCyATxAxtI8XNRDrgYD7YiJ6leaa02S19YVcRzHFpruxGi5thN7A==", "requires": { - "config-chain": "~1.1.5", - "editorconfig": "^0.13.2", - "mkdirp": "~0.5.0", - "nopt": "~3.0.1" + "config-chain": "^1.1.12", + "editorconfig": "^0.15.3", + "glob": "^7.1.3", + "mkdirp": "~0.5.1", + "nopt": "~4.0.1" + }, + "dependencies": { + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } } }, "js-tokens": { @@ -5784,11 +5799,12 @@ } }, "lru-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-3.2.0.tgz", - "integrity": "sha1-cXibO39Tmb7IVl3aOKow0qCX7+4=", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "requires": { - "pseudomap": "^1.0.1" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "make-dir": { @@ -6351,11 +6367,12 @@ } }, "nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz", + "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==", "requires": { - "abbrev": "1" + "abbrev": "1", + "osenv": "^0.1.4" } }, "normalize-package-data": { @@ -6782,11 +6799,24 @@ "word-wrap": "~1.2.3" } }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" + }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" + }, + "osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } }, "p-each-series": { "version": "2.1.0", @@ -9565,6 +9595,11 @@ "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", "dev": true }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" + }, "yaml": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.7.2.tgz", diff --git a/package.json b/package.json index 850a6549b7..1461d649db 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "highlight.js": "^9.14.2", "htmlparser2": "^3.10.1", "ignore": "^5.1.4", - "js-beautify": "~1.7.5", + "js-beautify": "^1.10.1-rc2", "live-server": "^1.2.1", "lodash": "^4.17.15", "markdown-it": "^8.4.2", @@ -47,11 +47,11 @@ "markdown-it-linkify-images": "^1.1.1", "markdown-it-mark": "^2.0.0", "markdown-it-regexp": "^0.4.0", + "markdown-it-sub": "^1.0.0", + "markdown-it-sup": "^1.0.0", "markdown-it-table-of-contents": "^0.4.4", "markdown-it-task-lists": "^1.4.1", "markdown-it-video": "^0.6.3", - "markdown-it-sub": "^1.0.0", - "markdown-it-sup": "^1.0.0", "nunjucks": "^3.2.0", "path-is-inside": "^1.0.2", "progress": "^2.0.3", diff --git a/src/Page.js b/src/Page.js index 6e90d83232..cb8ebe2af4 100644 --- a/src/Page.js +++ b/src/Page.js @@ -62,6 +62,7 @@ class Page { this.content = pageConfig.content || ''; this.faviconUrl = pageConfig.faviconUrl; this.frontmatterOverride = pageConfig.frontmatter || {}; + this.jsBeautify = pageConfig.jsBeautify; this.layout = pageConfig.layout; this.layoutsAssetPath = pageConfig.layoutsAssetPath; this.rootPath = pageConfig.rootPath; @@ -657,14 +658,23 @@ class Page { const pageNavTitleHtml = this.generatePageNavTitleHtml(); const pageNavHeadingHTML = this.generatePageNavHeadingHtml(); this.pageSectionsHtml[`#${PAGE_NAV_ID}`] - = htmlBeautify(`\n', Page.htmlBeautifyOptions); + = this.jsBeautify + ? htmlBeautify(`\n', Page.htmlBeautifyOptions) + : `\n'; } } @@ -755,10 +765,12 @@ class Page { if (pageSection.length === 0) { return; } - this.pageSectionsHtml[section] = htmlBeautify($.html(section), Page.htmlBeautifyOptions) - .trim(); + this.pageSectionsHtml[section] + = this.jsBeautify + ? htmlBeautify($.html(section), Page.htmlBeautifyOptions).trim() + : $.html(section); pageSection.remove(); - this.content = htmlBeautify($.html(), Page.htmlBeautifyOptions); + this.content = this.jsBeautify ? htmlBeautify($.html(), Page.htmlBeautifyOptions) : $.html(); } collectAllPageSections() { @@ -803,7 +815,7 @@ class Page { .then(result => markbinder.processDynamicResources(this.sourcePath, result)) .then(result => MarkBind.unwrapIncludeSrc(result)) .then((result) => { - this.content = htmlBeautify(result, Page.htmlBeautifyOptions); + this.content = this.jsBeautify ? htmlBeautify(result, Page.htmlBeautifyOptions) : result; const { relative } = urlUtils.getParentSiteAbsoluteAndRelativePaths(this.sourcePath, this.rootPath, this.baseUrlMap); @@ -821,10 +833,13 @@ class Page { this.collectAllPageSections(); this.buildPageNav(); - return fs.outputFileAsync(this.resultPath, htmlBeautify( - this.template.render(this.prepareTemplateData()), - Page.htmlBeautifyOptions, - )); + const renderedTemplate = this.template.render(this.prepareTemplateData()); + const outputTemplateHTML + = this.jsBeautify + ? htmlBeautify(renderedTemplate, Page.htmlBeautifyOptions) + : renderedTemplate; + + return fs.outputFileAsync(this.resultPath, outputTemplateHTML); }) .then(() => { const resolvingFiles = []; @@ -1071,7 +1086,11 @@ class Page { baseUrl, hostBaseUrl, }); - return fs.outputFileAsync(resultPath, htmlBeautify(content, Page.htmlBeautifyOptions)); + const outputContentHTML + = this.jsBeautify + ? htmlBeautify(content, Page.htmlBeautifyOptions) + : content; + return fs.outputFileAsync(resultPath, outputContentHTML); }) .then(() => { // Recursion call to resolve nested dependency diff --git a/src/Site.js b/src/Site.js index e626ad1de3..444ce5f5e1 100644 --- a/src/Site.js +++ b/src/Site.js @@ -237,6 +237,7 @@ class Site { faviconUrl: config.faviconUrl, frontmatter: config.frontmatter, globalOverride: this.siteConfig.globalOverride || {}, + jsBeautify: this.siteConfig.jsBeautify, pageTemplate: this.pageTemplate, plugins: this.plugins || {}, rootPath: this.rootPath, From 862020fe639a287fd3e27200b4129d3b8f21cc76 Mon Sep 17 00:00:00 2001 From: yash-chowdhary Date: Tue, 10 Mar 2020 23:43:22 +0800 Subject: [PATCH 02/11] Update test sites --- .../test_site/expected/bugs/index.html | 3 +- test/functional/test_site/expected/index.html | 197 +++++++++++------- .../NonFunctionalRequirements._include_.html | 4 +- .../requirements/UserStories._include_.html | 22 +- .../expected/sub_site/index._include_.html | 6 +- .../test_site/expected/sub_site/index.html | 6 +- .../sub_site/testReuse._include_.html | 4 +- .../expected/testAnchorGeneration.html | 26 ++- .../expected/testAntiFOUCStyles.html | 4 +- .../expected/testExternalScripts.html | 3 +- .../testImportVariables._include_.html | 3 +- .../expected/testImportVariables.html | 3 +- .../testPanels/NestedPanel._include_.html | 4 +- test/functional/test_site/site.json | 1 + test/functional/test_site/sub_site/site.json | 1 + .../expected/index.html | 53 +++-- .../test_site_algolia_plugin/site.json | 1 + .../test_site_convert/expected/Home.html | 78 +++---- .../test_site_convert/expected/Page-1.html | 78 +++---- .../test_site_convert/expected/_Footer.html | 78 +++---- .../test_site_convert/expected/_Sidebar.html | 83 +++----- .../test_site_convert/expected/about.html | 80 +++---- .../expected/contents/topic1.html | 77 +++---- .../expected/contents/topic2.html | 74 +++---- .../expected/contents/topic3a.html | 74 +++---- .../expected/contents/topic3b.html | 74 +++---- .../test_site_convert/expected/index.html | 78 +++---- .../expected/index.html | 7 +- .../test_site_expressive_layout/site.json | 1 + .../expected/index.html | 11 +- .../test_site_special_tags/site.json | 1 + .../expected/contents/topic1.html | 73 +++---- .../expected/contents/topic2.html | 70 +++---- .../expected/contents/topic3a.html | 70 +++---- .../expected/contents/topic3b.html | 70 +++---- .../test_default/expected/index.html | 61 +++--- .../test_minimal/expected/index.html | 62 +++--- 37 files changed, 694 insertions(+), 847 deletions(-) diff --git a/test/functional/test_site/expected/bugs/index.html b/test/functional/test_site/expected/bugs/index.html index 5b7bd96720..0afdc4476b 100644 --- a/test/functional/test_site/expected/bugs/index.html +++ b/test/functional/test_site/expected/bugs/index.html @@ -29,7 +29,8 @@
  • Open Bugs
  • -
    Test Jumbotron
    +
    + Test Jumbotron

    diff --git a/test/functional/test_site/expected/index.html b/test/functional/test_site/expected/index.html index 3ab1d3aa1d..cd757e3972 100644 --- a/test/functional/test_site/expected/index.html +++ b/test/functional/test_site/expected/index.html @@ -23,8 +23,7 @@ - - + @@ -41,7 +40,8 @@
  • Open Bugs
  • -
    Test Jumbotron
    +
    + Test Jumbotron

    @@ -56,15 +56,15 @@

    Testing Site-Nav

    -
  • +
  • - -
    -
    -

    Topic 1

    -
    -

    More content to be added

    -
    -
    -
  • - Custom footer. -
    -
    + Custom footer. + @@ -82,5 +64,4 @@

    Topic 1

    - - \ No newline at end of file + diff --git a/test/functional/test_site_convert/expected/contents/topic2.html b/test/functional/test_site_convert/expected/contents/topic2.html index 6a9af6c6f6..51f9663a31 100644 --- a/test/functional/test_site_convert/expected/contents/topic2.html +++ b/test/functional/test_site_convert/expected/contents/topic2.html @@ -1,6 +1,5 @@ - @@ -22,52 +21,36 @@
    - - Your Logo -
  • Topic 1
  • -
  • Topic 2
  • - - -
  • Topic 3a
  • -
  • Topic 3b
  • -
    -
  • - -
  • -
    -
    -
    - + +
    +
    + + This is a placeholder page
    +
    - -
    -
    - - This is a placeholder page -
    -
    - Custom footer. -
    - + Custom footer. + @@ -80,5 +63,4 @@ - - \ No newline at end of file + diff --git a/test/functional/test_site_convert/expected/contents/topic3a.html b/test/functional/test_site_convert/expected/contents/topic3a.html index a97b3e9b2c..4cb6f2501a 100644 --- a/test/functional/test_site_convert/expected/contents/topic3a.html +++ b/test/functional/test_site_convert/expected/contents/topic3a.html @@ -1,6 +1,5 @@ - @@ -22,52 +21,36 @@
    - - Your Logo -
  • Topic 1
  • -
  • Topic 2
  • - - -
  • Topic 3a
  • -
  • Topic 3b
  • -
    -
  • - -
  • -
    -
    -
    - + +
    +
    + + This is a placeholder page
    +
    - -
    -
    - - This is a placeholder page -
    -
    - Custom footer. -
    - + Custom footer. + @@ -80,5 +63,4 @@ - - \ No newline at end of file + diff --git a/test/functional/test_site_convert/expected/contents/topic3b.html b/test/functional/test_site_convert/expected/contents/topic3b.html index 923dd7657d..ed5c208000 100644 --- a/test/functional/test_site_convert/expected/contents/topic3b.html +++ b/test/functional/test_site_convert/expected/contents/topic3b.html @@ -1,6 +1,5 @@ - @@ -22,52 +21,36 @@
    - - Your Logo -
  • Topic 1
  • -
  • Topic 2
  • - - -
  • Topic 3a
  • -
  • Topic 3b
  • -
    -
  • - -
  • -
    -
    -
    - + +
    +
    + + This is a placeholder page
    +
    - -
    -
    - - This is a placeholder page -
    -
    - Custom footer. -
    - + Custom footer. + @@ -80,5 +63,4 @@ - - \ No newline at end of file + diff --git a/test/functional/test_site_convert/expected/index.html b/test/functional/test_site_convert/expected/index.html index 3cecd49c47..e5138c33af 100644 --- a/test/functional/test_site_convert/expected/index.html +++ b/test/functional/test_site_convert/expected/index.html @@ -1,55 +1,40 @@ - + + + + + + Landing Page + + + + + + + + +
    +
    + +
  • HOME
  • +
  • ABOUT
  • +
  • +
  • + - - - - - Landing Page - - - - - - - - - - +
    +

    Welcome to the test-deploy wiki!

    - -
    -
    - - -
  • HOME
  • -
  • ABOUT
  • -
  • - -
  • -
    -
    -
    - -
    -

    Welcome to the test-deploy wiki!

    -
    -
    - Custom footer. -
    -
    + Custom footer. +
    @@ -62,5 +47,4 @@ - - \ No newline at end of file + diff --git a/test/functional/test_site_expressive_layout/expected/index.html b/test/functional/test_site_expressive_layout/expected/index.html index fe31604f9f..726c1bf7c0 100644 --- a/test/functional/test_site_expressive_layout/expected/index.html +++ b/test/functional/test_site_expressive_layout/expected/index.html @@ -26,7 +26,12 @@

    Variable from layout

    This is an importedVar

    - Math formulas + + Math formulas

    Welcome to Markbind

    diff --git a/test/functional/test_site_expressive_layout/site.json b/test/functional/test_site_expressive_layout/site.json index 79b240d49c..5b21662353 100755 --- a/test/functional/test_site_expressive_layout/site.json +++ b/test/functional/test_site_expressive_layout/site.json @@ -1,5 +1,6 @@ { "baseUrl": "/test_site_expressive_layout", + "jsBeautify": true, "titlePrefix": "", "ignore": [ "_markbind/layouts/*", diff --git a/test/functional/test_site_special_tags/expected/index.html b/test/functional/test_site_special_tags/expected/index.html index 543b6e6371..ee83be0f23 100644 --- a/test/functional/test_site_special_tags/expected/index.html +++ b/test/functional/test_site_special_tags/expected/index.html @@ -66,15 +66,20 @@

    So far as to comply with t success!
    -

    This has the same content has the previous test, but it is not a special tag. The html comment <!-- --> should disappear in the expected output. The line some text should appear as per normal, and - not wrapped by a paragraph since a html tag precedes it without a blank line. The other lines should be parsed as markdown paragraphs, as per commonmark spec.

    +

    This has the same content has the previous test, but it is not a special tag. + The html comment <!-- --> should disappear in the expected output. + The line some text should appear as per normal, and not wrapped by a paragraph since + a html tag precedes it without a blank line. + The other lines should be parsed as markdown paragraphs, as per commonmark spec.

    some text

    //

    -

    /* ... */ +

    /* + ... + */


    diff --git a/test/functional/test_site_special_tags/site.json b/test/functional/test_site_special_tags/site.json index 5072da6cb2..76e8b7a8db 100644 --- a/test/functional/test_site_special_tags/site.json +++ b/test/functional/test_site_special_tags/site.json @@ -1,4 +1,5 @@ { + "jsBeautify": true, "ignore": [ "_markbind/layouts/*", "_markbind/logs/*", diff --git a/test/functional/test_site_templates/test_default/expected/contents/topic1.html b/test/functional/test_site_templates/test_default/expected/contents/topic1.html index fc043d41a9..04312d3cb7 100644 --- a/test/functional/test_site_templates/test_default/expected/contents/topic1.html +++ b/test/functional/test_site_templates/test_default/expected/contents/topic1.html @@ -1,6 +1,5 @@ - @@ -22,50 +21,35 @@
    - - Your Logo -
  • Topic 1
  • -
  • Topic 2
  • - - -
  • Topic 3a
  • -
  • Topic 3b
  • -
    -
  • - -
  • -
    -
    -
    - + +
    +
    +

    Topic 1

    +
    +

    More content to be added

    + +
    - -
    -
    -

    Topic 1

    -
    -

    More content to be added

    -
    -
    -

    - -
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -60,23 +55,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/index.html b/test/functional/test_site/expected/index.html index cd757e3972..10f4eb2c8f 100644 --- a/test/functional/test_site/expected/index.html +++ b/test/functional/test_site/expected/index.html @@ -1,6 +1,5 @@ - @@ -250,24 +249,17 @@

    Heading with hidden keyword

    <

    Test missing variable with default

    Missing Variable

    -

    Included variables should not leak into other files

    -
    -

    Should be blank:

    + + + +
    +

    Inlines notes are easier to write, since +you don't have to pick an identifier and move down to type the +note.

    Panel with shorthand heading syntax

    @@ -633,13 +629,6 @@
    -
    -

    Here's one with multiple blocks.

    -

    Subsequent paragraphs are indented to show that they - belong to the previous footnote.

    -
    -
    - -
    + +
    -

    Heading in footer should not be indexed

    -
    - This is a dynamic height footer that supports markdown πŸ˜„! -
    -
    - +

    Heading in footer should not be indexed

    +
    + This is a dynamic height footer that supports markdown πŸ˜„! +
    @@ -716,23 +746,17 @@

    Heading in footer should not be const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/needsrenderedplugin._include_.html b/test/functional/test_site/expected/needsrenderedplugin._include_.html index d0f1f344d4..6dd6e7459b 100644 --- a/test/functional/test_site/expected/needsrenderedplugin._include_.html +++ b/test/functional/test_site/expected/needsrenderedplugin._include_.html @@ -1,3 +1 @@ -

    - header Content of panel -

    \ No newline at end of file +

    header Content of panel

    diff --git a/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html b/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html index 5e31c012fe..4ec55287e6 100644 --- a/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html +++ b/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html @@ -1,11 +1,6 @@ -
    -

    In contrast to Functional Requirements which specify what the system should do, - Non-Functional Requirements specify the constraints under which system is developed and operated.

    -
    -

    - Requirements gathering, requirements elicitation, requirements analysis, - requirements capture are some of the terms commonly and interchangeably used to represent the activity - of understanding what a software product should do. -

    -
    \ No newline at end of file +

    In contrast to Functional Requirements which specify what the system should do, +Non-Functional Requirements specify the constraints under which system is developed and operated.

    +

    Requirements gathering, requirements elicitation, requirements analysis, +requirements capture are some of the terms commonly and interchangeably used to represent the activity +of understanding what a software product should do.

    \ No newline at end of file diff --git a/test/functional/test_site/expected/requirements/UserStories._include_.html b/test/functional/test_site/expected/requirements/UserStories._include_.html index 09327439ce..27899c7044 100644 --- a/test/functional/test_site/expected/requirements/UserStories._include_.html +++ b/test/functional/test_site/expected/requirements/UserStories._include_.html @@ -1,21 +1,17 @@

    User stories are brief (typically, 1-3 sentences) descriptions of what the system can do for the users, - written in the customers’ language. Often, user stories are written by the customers themselves.

    +written in the customers’ language. Often, user stories are written by the customers themselves.

    A commonly used format for writing user stories is:
    - As a <use type/role> I can <function> so that <benefit>

    +As a <use type/role> I can <function> so that <benefit>

    Here are some examples of user stories for the IVLE system:

    -
    * As a student, I can download files uploaded by lecturers, so that I can get my own copy of the files.* As a lecturer, I can create discussion forums, so that students can discuss things online.* As a tutor, I can print attendance sheets, so that I can take attendance during the class.
    -

    The <benefit> can be omitted if it is obvious. E.g. As a tutor, I can print attendance sheets. - User stories are mainly used for early estimation and scheduling purposes.

    +
    * As a student, I can download files uploaded by lecturers, so that I can get my own copy of the files.* As a lecturer, I can create discussion forums, so that students can discuss things online.* As a tutor, I can print attendance sheets, so that I can take attendance during the class.

    The <benefit> can be omitted if it is obvious. E.g. As a tutor, I can print attendance sheets. +User stories are mainly used for early estimation and scheduling purposes.

    According to this, the biggest difference between user stories and traditional requirements - specifications is in the level of detail. User stories should only provide enough detail to make a reasonably low risk - estimate of how long the story will take to implement. When the time comes to implement the story, - the developers will meet with the customer face-to-face to work out a more detailed description of the requirements. -

    +specifications is in the level of detail. User stories should only provide enough detail to make a reasonably low risk +estimate of how long the story will take to implement. When the time comes to implement the story, +the developers will meet with the customer face-to-face to work out a more detailed description of the requirements.

    User stories are often written on index cards or sticky notes, and arranged on walls or tables to facilitate - planning and discussion.

    -

    - http://www.extremeprogramming.org/rules/userstories.html - This is the main website for eXtreme Programming (XP), an approach to software development currently popular - among practitioners. User stories are commonly used among XP practitioners to capture requirements. - -

    \ No newline at end of file +planning and discussion.

    +

    http://www.extremeprogramming.org/rules/userstories.html +This is the main website for eXtreme Programming (XP), an approach to software development currently popular +among practitioners. User stories are commonly used among XP practitioners to capture requirements. +

    diff --git a/test/functional/test_site/expected/sub_site/index._include_.html b/test/functional/test_site/expected/sub_site/index._include_.html index d8882f7f54..53ebaf3762 100644 --- a/test/functional/test_site/expected/sub_site/index._include_.html +++ b/test/functional/test_site/expected/sub_site/index._include_.html @@ -1,9 +1,9 @@

    This is a page from another Markbind site.

    Feature list

    It is a list of features (or functionalities) grouped according to some criteria such as priority - (e.g. must-have, nice-to-have, etc. ), order of delivery, object or process related - (e.g. order-related, invoice-related, etc.). - Here is a sample feature list from Minesweeper (only a brief description has been provided to save space).

    +(e.g. must-have, nice-to-have, etc. ), order of delivery, object or process related +(e.g. order-related, invoice-related, etc.). +Here is a sample feature list from Minesweeper (only a brief description has been provided to save space).

    1. Basic play – Single player play.
    2. Difficulty levels – Additional Medium and Advanced levels.
    3. @@ -11,4 +11,4 @@

      Feature list<
    4. Timer – Additional fixed time restriction on the player.
    -
    \ No newline at end of file + diff --git a/test/functional/test_site/expected/sub_site/index.html b/test/functional/test_site/expected/sub_site/index.html index 4176d0d3f1..77246ae10f 100644 --- a/test/functional/test_site/expected/sub_site/index.html +++ b/test/functional/test_site/expected/sub_site/index.html @@ -1,6 +1,5 @@ - @@ -42,11 +41,9 @@

    Feature list<
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -58,23 +55,17 @@

    Feature list< const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/sub_site/testReuse._include_.html b/test/functional/test_site/expected/sub_site/testReuse._include_.html index 263cd85a41..9f1edaa77d 100644 --- a/test/functional/test_site/expected/sub_site/testReuse._include_.html +++ b/test/functional/test_site/expected/sub_site/testReuse._include_.html @@ -1,28 +1,26 @@

    This is a page from another Markbind site. - The purpose of this page is to ensure that reuse works as expected. - All the following images should display correctly.

    +The purpose of this page is to ensure that reuse works as expected. +All the following images should display correctly.

    Some variables:

    IMG tags: - - - - -

    + + + + +

    PIC tags: - - - - - -

    + + + + +

    Anchor: - External Image - Link to picture - Named Anchor - Anchor with no attributes

    +External Image +Link to picture +Named Anchor +Anchor with no attributes

    Within DIV tag:

    - -
    \ No newline at end of file + \ No newline at end of file diff --git a/test/functional/test_site/expected/testAfterSetup.html b/test/functional/test_site/expected/testAfterSetup.html index dcac1f8164..950e6d742b 100644 --- a/test/functional/test_site/expected/testAfterSetup.html +++ b/test/functional/test_site/expected/testAfterSetup.html @@ -1,6 +1,5 @@ - @@ -24,19 +23,18 @@
    -
    - - This Vue element should trigger a alert dialog when clicked on. - -

    This span should toggle the colour of the above box when hovered upon.

    -
    -
    +
    + + This Vue element should trigger a alert dialog when clicked on. + +

    This span should toggle the colour of the above box when hovered upon.

    + + +
    -
    - testAfterSetup footer -
    -
    - +
    + testAfterSetup footer +
    @@ -48,23 +46,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testAnchorGeneration.html b/test/functional/test_site/expected/testAnchorGeneration.html index cc00a30672..98f99da63c 100644 --- a/test/functional/test_site/expected/testAnchorGeneration.html +++ b/test/functional/test_site/expected/testAnchorGeneration.html @@ -1,6 +1,5 @@ - @@ -24,87 +23,69 @@
    -
    -

    Root file

    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -
    should have anchor
    -
    should have anchor
    - - Lorem ipsum - - -

    Headings in a collapsed-by-default panel should not have anchors

    -

    should not have anchor

    -

    should not have anchor

    -

    should not have anchor

    -

    should not have anchor

    -
    should not have anchor
    -
    should not have anchor
    -
    - -

    Headings in a expanded-by-default panel should have anchors

    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -
    should have anchor
    -
    should have anchor
    -
    -
    -
    -

    Included File

    -
    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -
    should have anchor
    -
    should have anchor
    - - Lorem ipsum - - -

    Headings in a collapsed-by-default panel should not have anchors

    -

    should not have anchor

    -

    should not have anchor

    -

    should not have anchor

    -

    should not have anchor

    -
    should not have anchor
    -
    should not have anchor
    -
    - -

    Headings in a expanded-by-default panel should have anchors

    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -

    should have anchor

    -
    should have anchor
    -
    should have anchor
    -
    +
    +

    Root file

    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +
    should have anchor
    +
    should have anchor
    + +Lorem ipsum + + +

    Headings in a collapsed-by-default panel should not have anchors

    +

    should not have anchor

    +

    should not have anchor

    +

    should not have anchor

    +

    should not have anchor

    +
    should not have anchor
    +
    should not have anchor
    + +

    Headings in a expanded-by-default panel should have anchors

    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +
    should have anchor
    +
    should have anchor
    +
    +
    +

    Included File

    +
    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +
    should have anchor
    +
    should have anchor
    + +Lorem ipsum + + +

    Headings in a collapsed-by-default panel should not have anchors

    +

    should not have anchor

    +

    should not have anchor

    +

    should not have anchor

    +

    should not have anchor

    +
    should not have anchor
    +
    should not have anchor
    + +

    Headings in a expanded-by-default panel should have anchors

    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +

    should have anchor

    +
    should have anchor
    +
    should have anchor
    + +
    -
    -
    -
    - Default footer -
    -
    -
    +
    + Default footer +
    @@ -116,23 +97,17 @@

    should have anchor - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testAntiFOUCStyles.html b/test/functional/test_site/expected/testAntiFOUCStyles.html index d1b24555d0..ee180e6499 100644 --- a/test/functional/test_site/expected/testAntiFOUCStyles.html +++ b/test/functional/test_site/expected/testAntiFOUCStyles.html @@ -1,6 +1,5 @@ - @@ -24,46 +23,38 @@
    -
    +
    + + +
  • One
  • +
  • Two
  • + +
  • Dropdown One
  • +
  • Dropdown Two
  • + +

    Test dropdown in body with text and class attributes

    +
    Test One
    +
  • Dropdown One
  • +
  • Dropdown Two
  • - -
  • One
  • -
  • Two
  • - - -
  • Dropdown One
  • -
  • Dropdown Two
  • -
    -
    +

    Test dropdown in body without text and class attributes

    +
    + +
  • Dropdown One
  • +
  • Dropdown Two
  • -

    Test dropdown in body with text and class attributes

    -
    Test One
    - -
  • Dropdown One
  • -
  • Dropdown Two
  • -
    +

    Filler text

    +

















    +

    Some text

    -

    Test dropdown in body without text and class attributes

    -
    - - -
  • Dropdown One
  • -
  • Dropdown Two
  • -
    -

    Filler text

    -

















    -

    Some text

    -
    -
    +
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -75,23 +66,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testCodeBlocks.html b/test/functional/test_site/expected/testCodeBlocks.html index d6ca3bb6e6..cd7d3059cd 100644 --- a/test/functional/test_site/expected/testCodeBlocks.html +++ b/test/functional/test_site/expected/testCodeBlocks.html @@ -1,6 +1,5 @@ - @@ -55,11 +54,9 @@
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -71,23 +68,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testEmptyFrontmatter.html b/test/functional/test_site/expected/testEmptyFrontmatter.html index 38e25a3f32..79e0b208b6 100644 --- a/test/functional/test_site/expected/testEmptyFrontmatter.html +++ b/test/functional/test_site/expected/testEmptyFrontmatter.html @@ -1,6 +1,5 @@ - @@ -24,16 +23,15 @@
    -
    -

    A page with an empty frontmatter should still build.

    -
    -
    +
    +

    A page with an empty frontmatter should still build.

    + + +
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -45,23 +43,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testExternalScripts.html b/test/functional/test_site/expected/testExternalScripts.html index 7423ca8bb0..5204bf4b6d 100644 --- a/test/functional/test_site/expected/testExternalScripts.html +++ b/test/functional/test_site/expected/testExternalScripts.html @@ -1,6 +1,5 @@ - @@ -24,20 +23,19 @@
    -
    -

    The external script MathJax 2.75 should be included, and the following MathJax content should render:

    - - When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are - $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ - -
    -
    +
    +

    The external script MathJax 2.75 should be included, and the following MathJax content should render:

    + +When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are +$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ +
    + + +
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -49,24 +47,18 @@ const enableSearch = true - - - - - - - + + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testImportVariables._include_.html b/test/functional/test_site/expected/testImportVariables._include_.html index c393869205..a3eb4356e3 100644 --- a/test/functional/test_site/expected/testImportVariables._include_.html +++ b/test/functional/test_site/expected/testImportVariables._include_.html @@ -2,7 +2,7 @@

    Making sure the issue here https://github.com/MarkBind/markbind/commit/48b57a18a8bfd68101b163908da4a0541756364a is fixed.

    Test import variables from src specified via variable: - This variable comes from variablesToImport.md

    +This variable comes from variablesToImport.md

    Test import variables that itself imports other variables:

    Trying to access a page variable:

    There should be something red below:

    @@ -11,4 +11,4 @@

    Trying to access a page variable:Trying to access an imported variable via namespace:

    There should be something blue below:

    This is a deeply imported variable
    -Something should have appeared above in blue. \ No newline at end of file +Something should have appeared above in blue. diff --git a/test/functional/test_site/expected/testImportVariables.html b/test/functional/test_site/expected/testImportVariables.html index 31adc9f177..3d95998a5c 100644 --- a/test/functional/test_site/expected/testImportVariables.html +++ b/test/functional/test_site/expected/testImportVariables.html @@ -1,6 +1,5 @@ - @@ -24,29 +23,29 @@
    -
    -
    -

    Making sure the issue here https://github.com/MarkBind/markbind/commit/48b57a18a8bfd68101b163908da4a0541756364a is fixed.

    -
    -

    Test import variables from src specified via variable: - This variable comes from variablesToImport.md

    -

    Test import variables that itself imports other variables:

    -

    Trying to access a page variable:

    -

    There should be something red below:

    -
    This is a page variable from variablestoimport.md
    - Something should have appeared above in red. -

    Trying to access an imported variable via namespace:

    -

    There should be something blue below:

    -
    This is a deeply imported variable
    - Something should have appeared above in blue. -
    -
    +
    +
    +

    Making sure the issue here https://github.com/MarkBind/markbind/commit/48b57a18a8bfd68101b163908da4a0541756364a is fixed.

    +
    +

    Test import variables from src specified via variable: +This variable comes from variablesToImport.md

    +

    Test import variables that itself imports other variables:

    +

    Trying to access a page variable:

    +

    There should be something red below:

    +
    This is a page variable from variablestoimport.md
    +Something should have appeared above in red. +

    Trying to access an imported variable via namespace:

    +

    There should be something blue below:

    +
    This is a deeply imported variable
    +Something should have appeared above in blue. +
    + + +
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -58,23 +57,17 @@

    Trying to access an const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testIncludePluginsRendered.html b/test/functional/test_site/expected/testIncludePluginsRendered.html index 3874d6679a..bb916fb9b1 100644 --- a/test/functional/test_site/expected/testIncludePluginsRendered.html +++ b/test/functional/test_site/expected/testIncludePluginsRendered.html @@ -1,6 +1,5 @@ - @@ -24,22 +23,18 @@
    -
    -

    The contents of these two panels should be exactly the same.

    -

    - -

    - - header Content of panel - -
    -
    +
    +

    The contents of these two panels should be exactly the same.

    +

    + +header Content of panel
    + + +
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -51,23 +46,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testLayouts.html b/test/functional/test_site/expected/testLayouts.html index 5cc0e193f5..f3a3a6dbc0 100644 --- a/test/functional/test_site/expected/testLayouts.html +++ b/test/functional/test_site/expected/testLayouts.html @@ -1,47 +1,34 @@ - + + + + + + Hello World + + + + + + + + +
    +
    + +
    +

    Uses a front matter layout

    - - - - - Hello World - - - - - - - - - - - - - - -
    -
    - -
    -

    Uses a front matter layout

    -
    -
    -
    - Layout footer -
    -
    -
    +
    + Layout footer +
    @@ -53,23 +40,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testLayoutsOverride.html b/test/functional/test_site/expected/testLayoutsOverride.html index dbe6d0addc..f829f81a28 100644 --- a/test/functional/test_site/expected/testLayoutsOverride.html +++ b/test/functional/test_site/expected/testLayoutsOverride.html @@ -1,47 +1,34 @@ - + + + + + + Hello World + + + + + + + + +
    +
    + +
    +

    Uses a site.json layout, overriding front matter

    - - - - - Hello World - - - - - - - - - - - - - - -
    -
    - -
    -

    Uses a site.json layout, overriding front matter

    -
    -
    -
    - Layout footer -
    -
    -
    +
    + Layout footer +
    @@ -53,23 +40,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testPanels/NestedPanel._include_.html b/test/functional/test_site/expected/testPanels/NestedPanel._include_.html index 429ef1de2a..abd9590c4c 100644 --- a/test/functional/test_site/expected/testPanels/NestedPanel._include_.html +++ b/test/functional/test_site/expected/testPanels/NestedPanel._include_.html @@ -1,3 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html b/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html index e80b7a53c8..9fe2c260d9 100644 --- a/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html +++ b/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html @@ -1 +1 @@ -

    Panel normal source content headings

    \ No newline at end of file +

    Panel normal source content headings

    diff --git a/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html b/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html index 3f76bbdf60..7c21ac9246 100644 --- a/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html +++ b/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html @@ -1,4 +1,3 @@
    -

    Panel source segment content headings

    -
    -

    This heading is not src of any panel, so it should not be in the search data

    \ No newline at end of file +

    Panel source segment content headings

    +

    This heading is not src of any panel, so it should not be in the search data

    diff --git a/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html b/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html index cd49919927..a7dd99ef39 100644 --- a/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html +++ b/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html @@ -1 +1 @@ -

    boilerplate test for panel heading

    \ No newline at end of file +

    boilerplate test for panel heading

    diff --git a/test/functional/test_site/expected/testPanels/notInside._include_.html b/test/functional/test_site/expected/testPanels/notInside._include_.html index bacd089bd9..2eaf7663a6 100644 --- a/test/functional/test_site/expected/testPanels/notInside._include_.html +++ b/test/functional/test_site/expected/testPanels/notInside._include_.html @@ -1 +1 @@ -

    heading in panel boilerplate

    \ No newline at end of file +

    heading in panel boilerplate

    diff --git a/test/functional/test_site/expected/testPanelsWithImportedVariables.html b/test/functional/test_site/expected/testPanelsWithImportedVariables.html index 2abceeb82c..8b6cbdc627 100644 --- a/test/functional/test_site/expected/testPanelsWithImportedVariables.html +++ b/test/functional/test_site/expected/testPanelsWithImportedVariables.html @@ -1,6 +1,5 @@ - @@ -24,22 +23,21 @@
    -
    -

    Refer to this comment: https://github.com/MarkBind/markbind/pull/751#issuecomment-469670640

    -
    - Title -

    Below panel is working - -

    -

    Below should be a panel, but is now an error. Uncomment it to see the error.

    -
    -
    +
    +

    Refer to this comment: https://github.com/MarkBind/markbind/pull/751#issuecomment-469670640

    +
    +Title +

    Below panel is working +

    +

    Below should be a panel, but is now an error. Uncomment it to see the error.

    +
    + + +
    -
    - Default footer -
    -
    -
    +
    + Default footer +
    @@ -51,23 +49,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testPlantUML.html b/test/functional/test_site/expected/testPlantUML.html index ab3ae27fe3..ab2f5a59c7 100644 --- a/test/functional/test_site/expected/testPlantUML.html +++ b/test/functional/test_site/expected/testPlantUML.html @@ -1,6 +1,5 @@ - @@ -56,11 +55,9 @@
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -72,23 +69,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testThumbnails.html b/test/functional/test_site/expected/testThumbnails.html index ea7ec9eb53..80a3cf34ee 100644 --- a/test/functional/test_site/expected/testThumbnails.html +++ b/test/functional/test_site/expected/testThumbnails.html @@ -1,6 +1,5 @@ - @@ -24,118 +23,83 @@
    -
    -

    Thumbnail test

    -

    Images

    -

    Square thumb, size = 100 (default) - -

    -

    Square thumb with alt="Test" - -

    -

    Square thumb, size = 200 - -

    -

    Circle thumbs, size = 100 - - -

    -

    An actual image - - -

    -
    -

    Broken link, still takes up the space it's supposed to

    -

    - - -

    -
    -

    Borders

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    ThumbnailAttributeDescription
    - - no border
    - - border='3px solid red'3 pixel thick solid red line
    - - 4px dotted blue4 pixel thick dotted blue line
    +
    +

    Thumbnail test

    +

    Images

    +

    Square thumb, size = 100 (default) +

    +

    Square thumb with alt="Test" +

    +

    Square thumb, size = 200 +

    +

    Circle thumbs, size = 100 + +

    +

    An actual image + +

    +
    +

    Broken link, still takes up the space it's supposed to

    +

    +

    +
    +

    Borders

    +
    + + + + + + + + + + + + + + + + +
    ThumbnailAttributeDescription
    no border
    border='3px solid red'3 pixel thick solid red line
    4px dotted blue4 pixel thick dotted blue line

    +

    Background

    +

    Valid CSS properties + + +

    +

    Invalid CSS properties +

    +

    Empty +

    +
    +

    Text/Emojis/Icons

    +

    Text +test

    +

    Markdown +test +test

    +

    Emojis +❌ +πŸ†

    +

    Icons + +

    +
    +

    font-size/font-color

    +

    20px font-size +test

    +

    40px font-size +test

    +

    font-color +blue +maroon

    + +
    -
    -

    Background

    -

    Valid CSS properties - - - -

    -

    Invalid CSS properties - -

    -

    Empty - -

    -
    -

    Text/Emojis/Icons

    -

    Text - test -

    -

    Markdown - test - test -

    -

    Emojis - ❌ - πŸ† -

    -

    Icons - - -

    -
    -

    font-size/font-color

    -

    20px font-size - test -

    -

    40px font-size - test -

    -

    font-color - blue - maroon -

    -
    -
    -
    - Default footer -
    -
    -
    +
    + Default footer +
    @@ -147,23 +111,17 @@ const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/testTooltipSpacing.html b/test/functional/test_site/expected/testTooltipSpacing.html index 2a2091df61..a917a29180 100644 --- a/test/functional/test_site/expected/testTooltipSpacing.html +++ b/test/functional/test_site/expected/testTooltipSpacing.html @@ -1,6 +1,5 @@ - @@ -24,19 +23,17 @@
    -
    -

    569: Stray space after tooltip

    -
    <tooltip>tooltip</tooltip>, test<trigger>trigger</trigger>, test
    -

    tooltip, test

    -

    trigger, test

    -
    -
    +
    +

    569: Stray space after tooltip

    +
    <tooltip>tooltip</tooltip>, test<trigger>trigger</trigger>, test

    tooltip, test

    +

    trigger, test

    + + +
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -48,23 +45,17 @@

    569: Stray space after tooltip - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site/expected/test_md_fragment.html b/test/functional/test_site/expected/test_md_fragment.html index 5ff5a96b80..2b796deee3 100644 --- a/test/functional/test_site/expected/test_md_fragment.html +++ b/test/functional/test_site/expected/test_md_fragment.html @@ -1,6 +1,5 @@ - @@ -24,17 +23,16 @@
    -
    -

    Some heading

    -

    The quick brown fox jumps over the lazy dog.

    -
    -
    +
    +

    Some heading

    +

    The quick brown fox jumps over the lazy dog.

    + + +
    -
    - Default footer -
    -
    - +
    + Default footer +
    @@ -46,23 +44,17 @@

    Some heading< const enableSearch = true - - - - - - + + + + + + - - \ No newline at end of file + diff --git a/test/functional/test_site_algolia_plugin/expected/index.html b/test/functional/test_site_algolia_plugin/expected/index.html index e123033df5..a1259ebcd6 100644 --- a/test/functional/test_site_algolia_plugin/expected/index.html +++ b/test/functional/test_site_algolia_plugin/expected/index.html @@ -1,119 +1,95 @@ - + + + + + + Hello World + + + + + + + + +
    +
    + +
    +

    Test Algolia plugin adds algolia-no-index classes

    +

    Dropdowns should have algolia-no-index class

    +
    Dropdown
    +
  • One
  • +
  • Two
  • +

    Modal content should have algolia-no-index class

    + + Content should have `algolia-no-index` class + +Trigger should not have `algolia-no-index` class +

    Panels that are not expanded should have algolia-no-index class

    + + Content + + + Content + +

    Popover content should have algolia-no-index class

    +Title +
    Content should have `algolia-no-index` class
    +
    +TitleContent as attribute does not require algolia-no-index class + +

    Question hint and answer should have algolia-no-index class

    + + Question should not have `algolia-no-index` class +
    Hint should have `algolia-no-index` class
    +
    Answer should have `algolia-no-index` class
    +

    Tabs except first tab should have algolia-no-index class

    + + + Content
    Content
    Content
    Content +
    + + Content
    Content
    Content
    Content +
    + + + + Content
    Content
    Content
    Content +
    + + Content
    Content
    Content
    Content +
    + + + Content
    Content
    Content
    Content +
    + + Content
    Content
    Content
    Content +
    + + + + Content
    Content
    Content
    Content +
    + + Content
    Content
    Content
    Content +
    + + Content
    Content
    Content
    Content +
    - - - - - Hello World - - - - - - - - - - - - -
    -
    - -
    -

    Test Algolia plugin adds algolia-no-index classes

    -

    Dropdowns should have algolia-no-index class

    -
    Dropdown
    - -
  • One
  • -
  • Two
  • -
    -

    Modal content should have algolia-no-index class

    - Content should have `algolia-no-index` class - - Trigger should not have `algolia-no-index` class -

    Panels that are not expanded should have algolia-no-index class

    - - Content - - - Content - -

    Popover content should have algolia-no-index class

    - Title -
    Content should have `algolia-no-index` class
    - -
    - TitleContent as attribute does not require algolia-no-index class - -

    Question hint and answer should have algolia-no-index class

    - - Question should not have `algolia-no-index` class -
    Hint should have `algolia-no-index` class
    -
    Answer should have `algolia-no-index` class
    -
    -

    Tabs except first tab should have algolia-no-index class

    - - - Content
    Content
    Content
    Content -
    - - Content
    Content
    Content
    Content -
    -
    - - - - Content
    Content
    Content
    Content -
    - - Content
    Content
    Content
    Content -
    -
    - - - Content
    Content
    Content
    Content -
    - - Content
    Content
    Content
    Content -
    -
    -
    - - - - Content
    Content
    Content
    Content -
    - - Content
    Content
    Content
    Content -
    -
    - - Content
    Content
    Content
    Content -
    -
    -
    -
    -
    - This is a dynamic height footer that supports markdown πŸ˜„! -
    -
    -
    +
    + This is a dynamic height footer that supports markdown πŸ˜„! +
    @@ -125,19 +101,18 @@ const enableSearch = true - - + + - - \ No newline at end of file + diff --git a/test/functional/test_site_expressive_layout/expected/index.html b/test/functional/test_site_expressive_layout/expected/index.html index 726c1bf7c0..71159042a7 100644 --- a/test/functional/test_site_expressive_layout/expected/index.html +++ b/test/functional/test_site_expressive_layout/expected/index.html @@ -1,49 +1,41 @@ - + + + + + + Landing Page + + + + + + + + +
    +
    +
    +
    +
    +

    Variable from layout

    +

    This is an importedVar

    + + Math formulas + +
    +

    Welcome to Markbind

    +

    This is a minimalistic template. To learn more about authoring contents in Markbind, visit the User Guide.

    +

    Variable from page

    +

    Bottom Content

    +
    +
    +

    This content can be imported to the bottom of the page

    - - - - - Landing Page - - - - - - - - - - -
    -
    -
    -
    -
    -

    Variable from layout

    -

    This is an importedVar

    - - Math formulas - -
    -

    Welcome to Markbind

    -

    This is a minimalistic template. To learn more about authoring contents in Markbind, visit the User Guide.

    -

    Variable from page

    -

    Bottom Content

    -
    -
    -

    This content can be imported to the bottom of the page

    -
    -
    -
    -
    - @@ -119,5 +110,4 @@

    So far as to comply with t - - \ No newline at end of file + From 464591941be5dba3ac0988ea2a55ad27ef8a3c9a Mon Sep 17 00:00:00 2001 From: yash-chowdhary Date: Mon, 23 Mar 2020 13:55:51 +0800 Subject: [PATCH 05/11] Update test site beautification and docs --- docs/userGuide/siteConfiguration.md | 6 +- .../test_site/expected/bugs/index.html | 45 ++-- test/functional/test_site/expected/index.html | 198 +++++++++------ .../needsrenderedplugin._include_.html | 4 +- .../NonFunctionalRequirements._include_.html | 15 +- .../requirements/UserStories._include_.html | 28 ++- .../expected/sub_site/index._include_.html | 6 +- .../test_site/expected/sub_site/index.html | 41 ++-- .../sub_site/testReuse._include_.html | 36 +-- .../test_site/expected/testAfterSetup.html | 54 +++-- .../expected/testAnchorGeneration.html | 173 ++++++++------ .../expected/testAntiFOUCStyles.html | 93 ++++--- .../test_site/expected/testCodeBlocks.html | 41 ++-- .../expected/testEmptyFrontmatter.html | 48 ++-- .../expected/testExternalScripts.html | 58 +++-- .../testImportVariables._include_.html | 4 +- .../expected/testImportVariables.html | 75 +++--- .../expected/testIncludePluginsRendered.html | 57 +++-- .../test_site/expected/testLayouts.html | 95 +++++--- .../expected/testLayoutsOverride.html | 95 +++++--- .../testPanels/NestedPanel._include_.html | 4 +- .../PanelNormalSource._include_.html | 2 +- .../PanelSourceContainsSegment._include_.html | 5 +- .../testPanels/boilerTestPanel._include_.html | 2 +- .../testPanels/notInside._include_.html | 2 +- .../testPanelsWithImportedVariables.html | 60 +++-- .../test_site/expected/testPlantUML.html | 41 ++-- .../test_site/expected/testThumbnails.html | 218 ++++++++++------- .../expected/testTooltipSpacing.html | 53 ++-- .../test_site/expected/test_md_fragment.html | 50 ++-- test/functional/test_site/site.json | 2 +- test/functional/test_site/sub_site/site.json | 2 +- .../expected/index.html | 226 ++++++++++-------- .../test_site_algolia_plugin/site.json | 2 +- .../expected/index.html | 77 +++--- .../test_site_expressive_layout/site.json | 2 +- .../expected/index.html | 65 ++--- .../test_site_special_tags/site.json | 2 +- 38 files changed, 1178 insertions(+), 809 deletions(-) diff --git a/docs/userGuide/siteConfiguration.md b/docs/userGuide/siteConfiguration.md index 579fded23d..9985297273 100644 --- a/docs/userGuide/siteConfiguration.md +++ b/docs/userGuide/siteConfiguration.md @@ -202,10 +202,10 @@ The example above uses tags as an example of configuring plugin settings, refer **Specifies that the website should use MarkBind's search functionality.** Default: `true`. See [User Guide: Making the Site Searchable](makingTheSiteSearchable.html) for more details. -#### **`jsBeautify`** +#### **`htmlBeautify`** -**Toggles-on [js-beautify](https://github.com/beautify-web/js-beautify) for html files generated by MarkBind.** By default, MarkBind turns off `js-beautify` to improve the performance of the MarkBind `build` process. -However, toggling-on `js-beautify` allows the user to edit the post-build HTML files in a friendly manner (through proper indentation of the code, for example). +**Toggles-on html beautification done by [js-beautify](https://github.com/beautify-web/js-beautify) for html files generated by MarkBind.** By default, MarkBind turns this option off to improve the performance of the MarkBind `build` process. +However, toggling-on this option allows the user to edit the post-build HTML files in a friendly manner (through proper indentation of the code, for example). #### **`timeZone`** diff --git a/test/functional/test_site/expected/bugs/index.html b/test/functional/test_site/expected/bugs/index.html index 3c8366869c..0b5719d8b9 100644 --- a/test/functional/test_site/expected/bugs/index.html +++ b/test/functional/test_site/expected/bugs/index.html @@ -1,5 +1,6 @@ + @@ -40,10 +41,16 @@

    Repro:

    Steps to Reproduce

    + + + +
    -
    - Default footer -
    +
    + Default footer +
    + + @@ -55,17 +62,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/index.html b/test/functional/test_site/expected/index.html index 10f4eb2c8f..30b51bde69 100644 --- a/test/functional/test_site/expected/index.html +++ b/test/functional/test_site/expected/index.html @@ -1,5 +1,6 @@ + @@ -487,13 +488,44 @@

    Feature list<

    Test missing variable with default

    Missing Variable

    - - - -
    -

    Inlines notes are easier to write, since -you don't have to pick an identifier and move down to type the -note.

    +

    Trimmed include

    +

    Fragment with leading spaces and newline

    +

    Trimmed include fragment

    +

    Before | Fragment with leading spaces and newline | After

    +

    Include with custom variables

    +
    +

    Test included variable as include attribute

    +

    Included variable as include attribute

    +

    Test included variable

    +

    Included variable

    +

    Test included variable with markdown

    +

    Included variable with markdown

    +

    Test included variable as attribute

    +

    Test

    +

    Test included variable as html element

    +

    Included variable within html element

    +

    Test included variable overridden by variables.md

    +

    Global Variable Overriding Included Variable

    +

    Test included variables in included file

    +
    +

    Included variable in outer included file

    +

    Included variable overriding inner variable

    +
    +

    Inner included variables should not leak into other files

    +
    +

    Should be blank:

    +
    +

    Test included variable with global variable

    +

    Included variable with Global Variable

    +

    Test included variable overridden by set

    +

    Inner variable overridden by set + Global variable overridden by set

    +

    Test missing variable with default

    +

    Missing Variable

    +
    +

    Included variables should not leak into other files

    +
    +

    Should be blank:

    Panel with shorthand heading syntax

    @@ -629,6 +661,23 @@
    +
    +

    Here's one with multiple blocks.

    +

    Subsequent paragraphs are indented to show that they + belong to the previous footnote.

    +
    + + + +
    +

    Inlines notes are easier to write, since + you don't have to pick an identifier and move down to type the + note.

    +
    +
    + +
    @@ -683,58 +732,61 @@
    Level 6 header (outside headingSearchIndex) with always-index attribute should be indexed‎ - -
    + +
    -

    Heading in footer should not be indexed

    -
    - This is a dynamic height footer that supports markdown πŸ˜„! -
    +

    Heading in footer should not be indexed

    +
    + This is a dynamic height footer that supports markdown πŸ˜„! +
    + + @@ -746,17 +798,23 @@

    Heading in footer should not be const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/needsrenderedplugin._include_.html b/test/functional/test_site/expected/needsrenderedplugin._include_.html index 6dd6e7459b..d0f1f344d4 100644 --- a/test/functional/test_site/expected/needsrenderedplugin._include_.html +++ b/test/functional/test_site/expected/needsrenderedplugin._include_.html @@ -1 +1,3 @@ -

    header Content of panel

    +

    + header Content of panel +

    \ No newline at end of file diff --git a/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html b/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html index 4ec55287e6..5e31c012fe 100644 --- a/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html +++ b/test/functional/test_site/expected/requirements/NonFunctionalRequirements._include_.html @@ -1,6 +1,11 @@ -

    In contrast to Functional Requirements which specify what the system should do, -Non-Functional Requirements specify the constraints under which system is developed and operated.

    -

    Requirements gathering, requirements elicitation, requirements analysis, -requirements capture are some of the terms commonly and interchangeably used to represent the activity -of understanding what a software product should do.

    \ No newline at end of file +
    +

    In contrast to Functional Requirements which specify what the system should do, + Non-Functional Requirements specify the constraints under which system is developed and operated.

    +
    +

    + Requirements gathering, requirements elicitation, requirements analysis, + requirements capture are some of the terms commonly and interchangeably used to represent the activity + of understanding what a software product should do. +

    + \ No newline at end of file diff --git a/test/functional/test_site/expected/requirements/UserStories._include_.html b/test/functional/test_site/expected/requirements/UserStories._include_.html index 27899c7044..09327439ce 100644 --- a/test/functional/test_site/expected/requirements/UserStories._include_.html +++ b/test/functional/test_site/expected/requirements/UserStories._include_.html @@ -1,17 +1,21 @@

    User stories are brief (typically, 1-3 sentences) descriptions of what the system can do for the users, -written in the customers’ language. Often, user stories are written by the customers themselves.

    + written in the customers’ language. Often, user stories are written by the customers themselves.

    A commonly used format for writing user stories is:
    -As a <use type/role> I can <function> so that <benefit>

    + As a <use type/role> I can <function> so that <benefit>

    Here are some examples of user stories for the IVLE system:

    -
    * As a student, I can download files uploaded by lecturers, so that I can get my own copy of the files.* As a lecturer, I can create discussion forums, so that students can discuss things online.* As a tutor, I can print attendance sheets, so that I can take attendance during the class.

    The <benefit> can be omitted if it is obvious. E.g. As a tutor, I can print attendance sheets. -User stories are mainly used for early estimation and scheduling purposes.

    +
    * As a student, I can download files uploaded by lecturers, so that I can get my own copy of the files.* As a lecturer, I can create discussion forums, so that students can discuss things online.* As a tutor, I can print attendance sheets, so that I can take attendance during the class.
    +

    The <benefit> can be omitted if it is obvious. E.g. As a tutor, I can print attendance sheets. + User stories are mainly used for early estimation and scheduling purposes.

    According to this, the biggest difference between user stories and traditional requirements -specifications is in the level of detail. User stories should only provide enough detail to make a reasonably low risk -estimate of how long the story will take to implement. When the time comes to implement the story, -the developers will meet with the customer face-to-face to work out a more detailed description of the requirements.

    + specifications is in the level of detail. User stories should only provide enough detail to make a reasonably low risk + estimate of how long the story will take to implement. When the time comes to implement the story, + the developers will meet with the customer face-to-face to work out a more detailed description of the requirements. +

    User stories are often written on index cards or sticky notes, and arranged on walls or tables to facilitate -planning and discussion.

    -

    http://www.extremeprogramming.org/rules/userstories.html -This is the main website for eXtreme Programming (XP), an approach to software development currently popular -among practitioners. User stories are commonly used among XP practitioners to capture requirements. -

    + planning and discussion.

    +

    + http://www.extremeprogramming.org/rules/userstories.html + This is the main website for eXtreme Programming (XP), an approach to software development currently popular + among practitioners. User stories are commonly used among XP practitioners to capture requirements. + +

    \ No newline at end of file diff --git a/test/functional/test_site/expected/sub_site/index._include_.html b/test/functional/test_site/expected/sub_site/index._include_.html index 53ebaf3762..b3701fc392 100644 --- a/test/functional/test_site/expected/sub_site/index._include_.html +++ b/test/functional/test_site/expected/sub_site/index._include_.html @@ -1,9 +1,9 @@

    This is a page from another Markbind site.

    Feature list

    It is a list of features (or functionalities) grouped according to some criteria such as priority -(e.g. must-have, nice-to-have, etc. ), order of delivery, object or process related -(e.g. order-related, invoice-related, etc.). -Here is a sample feature list from Minesweeper (only a brief description has been provided to save space).

    + (e.g. must-have, nice-to-have, etc. ), order of delivery, object or process related + (e.g. order-related, invoice-related, etc.). + Here is a sample feature list from Minesweeper (only a brief description has been provided to save space).

    1. Basic play – Single player play.
    2. Difficulty levels – Additional Medium and Advanced levels.
    3. diff --git a/test/functional/test_site/expected/sub_site/index.html b/test/functional/test_site/expected/sub_site/index.html index 77246ae10f..4176d0d3f1 100644 --- a/test/functional/test_site/expected/sub_site/index.html +++ b/test/functional/test_site/expected/sub_site/index.html @@ -1,5 +1,6 @@ + @@ -41,9 +42,11 @@

      Feature list<
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -55,17 +58,23 @@

      Feature list< const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/sub_site/testReuse._include_.html b/test/functional/test_site/expected/sub_site/testReuse._include_.html index 9f1edaa77d..263cd85a41 100644 --- a/test/functional/test_site/expected/sub_site/testReuse._include_.html +++ b/test/functional/test_site/expected/sub_site/testReuse._include_.html @@ -1,26 +1,28 @@

      This is a page from another Markbind site. -The purpose of this page is to ensure that reuse works as expected. -All the following images should display correctly.

      + The purpose of this page is to ensure that reuse works as expected. + All the following images should display correctly.

      Some variables:

      IMG tags: - - - - -

      + + + + +

      PIC tags: - - - - -

      + + + + + +

      Anchor: -External Image -Link to picture -Named Anchor -Anchor with no attributes

      + External Image + Link to picture + Named Anchor + Anchor with no attributes

      Within DIV tag:

      -
      \ No newline at end of file + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testAfterSetup.html b/test/functional/test_site/expected/testAfterSetup.html index 950e6d742b..8d53a28531 100644 --- a/test/functional/test_site/expected/testAfterSetup.html +++ b/test/functional/test_site/expected/testAfterSetup.html @@ -1,5 +1,6 @@ + @@ -23,18 +24,21 @@
      -
      - - This Vue element should trigger a alert dialog when clicked on. - -

      This span should toggle the colour of the above box when hovered upon.

      +
      + + This Vue element should trigger a alert dialog when clicked on. + +

      This span should toggle the colour of the above box when hovered upon.

      +
      -
      +
      -
      - testAfterSetup footer -
      +
      + testAfterSetup footer +
      + + @@ -46,17 +50,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testAnchorGeneration.html b/test/functional/test_site/expected/testAnchorGeneration.html index 98f99da63c..484ef2a857 100644 --- a/test/functional/test_site/expected/testAnchorGeneration.html +++ b/test/functional/test_site/expected/testAnchorGeneration.html @@ -1,5 +1,6 @@ + @@ -23,69 +24,89 @@
      -
      -

      Root file

      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -
      should have anchor
      -
      should have anchor
      - -Lorem ipsum - - -

      Headings in a collapsed-by-default panel should not have anchors

      -

      should not have anchor

      -

      should not have anchor

      -

      should not have anchor

      -

      should not have anchor

      -
      should not have anchor
      -
      should not have anchor
      - -

      Headings in a expanded-by-default panel should have anchors

      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -
      should have anchor
      -
      should have anchor
      -
      -
      -

      Included File

      -
      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -
      should have anchor
      -
      should have anchor
      - -Lorem ipsum - - -

      Headings in a collapsed-by-default panel should not have anchors

      -

      should not have anchor

      -

      should not have anchor

      -

      should not have anchor

      -

      should not have anchor

      -
      should not have anchor
      -
      should not have anchor
      - -

      Headings in a expanded-by-default panel should have anchors

      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -

      should have anchor

      -
      should have anchor
      -
      should have anchor
      +
      +

      Root file

      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +
      should have anchor
      +
      should have anchor
      + + Lorem ipsum + + +

      Headings in a collapsed-by-default panel should not have anchors

      +

      should not have anchor

      +

      should not have anchor

      +

      should not have anchor

      +

      should not have anchor

      +
      should not have anchor
      +
      should not have anchor
      +
      + +

      Headings in a expanded-by-default panel should have anchors

      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +
      should have anchor
      +
      should have anchor
      +
      +
      +
      +

      Included File

      +
      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +
      should have anchor
      +
      should have anchor
      + + Lorem ipsum + + +

      Headings in a collapsed-by-default panel should not have anchors

      +

      should not have anchor

      +

      should not have anchor

      +

      should not have anchor

      +

      should not have anchor

      +
      should not have anchor
      +
      should not have anchor
      +
      + +

      Headings in a expanded-by-default panel should have anchors

      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +

      should have anchor

      +
      should have anchor
      +
      should have anchor
      +
      +
      +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -97,17 +118,23 @@

      should have anchor - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testAntiFOUCStyles.html b/test/functional/test_site/expected/testAntiFOUCStyles.html index ee180e6499..c18c1a5121 100644 --- a/test/functional/test_site/expected/testAntiFOUCStyles.html +++ b/test/functional/test_site/expected/testAntiFOUCStyles.html @@ -1,5 +1,6 @@ + @@ -23,38 +24,48 @@
      -
      +
      - -
    4. One
    5. -
    6. Two
    7. - -
    8. Dropdown One
    9. -
    10. Dropdown Two
    11. + +
    12. One
    13. +
    14. Two
    15. + + +
    16. Dropdown One
    17. +
    18. Dropdown Two
    19. +
      +
      -

      Test dropdown in body with text and class attributes

      -
      Test One
      -
    20. Dropdown One
    21. -
    22. Dropdown Two
    23. +

      Test dropdown in body with text and class attributes

      +
      Test One
      + +
    24. Dropdown One
    25. +
    26. Dropdown Two
    27. +
      -

      Test dropdown in body without text and class attributes

      -
      - -
    28. Dropdown One
    29. -
    30. Dropdown Two
    31. +

      Test dropdown in body without text and class attributes

      +
      + + +
    32. Dropdown One
    33. +
    34. Dropdown Two
    35. +
      -

      Filler text

      -

















      -

      Some text

      +

      Filler text

      +

















      +

      Some text

      +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -66,17 +77,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testCodeBlocks.html b/test/functional/test_site/expected/testCodeBlocks.html index cd7d3059cd..d6ca3bb6e6 100644 --- a/test/functional/test_site/expected/testCodeBlocks.html +++ b/test/functional/test_site/expected/testCodeBlocks.html @@ -1,5 +1,6 @@ + @@ -54,9 +55,11 @@
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -68,17 +71,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testEmptyFrontmatter.html b/test/functional/test_site/expected/testEmptyFrontmatter.html index 79e0b208b6..89f9b50d18 100644 --- a/test/functional/test_site/expected/testEmptyFrontmatter.html +++ b/test/functional/test_site/expected/testEmptyFrontmatter.html @@ -1,5 +1,6 @@ + @@ -23,15 +24,18 @@
      -
      -

      A page with an empty frontmatter should still build.

      +
      +

      A page with an empty frontmatter should still build.

      +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -43,17 +47,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testExternalScripts.html b/test/functional/test_site/expected/testExternalScripts.html index 5204bf4b6d..73f35732c5 100644 --- a/test/functional/test_site/expected/testExternalScripts.html +++ b/test/functional/test_site/expected/testExternalScripts.html @@ -1,5 +1,6 @@ + @@ -23,19 +24,22 @@
      -
      -

      The external script MathJax 2.75 should be included, and the following MathJax content should render:

      - -When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are -$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ -
      +
      +

      The external script MathJax 2.75 should be included, and the following MathJax content should render:

      + + When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are + $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ + +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -47,18 +51,24 @@ const enableSearch = true - - - - - - - + + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testImportVariables._include_.html b/test/functional/test_site/expected/testImportVariables._include_.html index a3eb4356e3..c393869205 100644 --- a/test/functional/test_site/expected/testImportVariables._include_.html +++ b/test/functional/test_site/expected/testImportVariables._include_.html @@ -2,7 +2,7 @@

      Making sure the issue here https://github.com/MarkBind/markbind/commit/48b57a18a8bfd68101b163908da4a0541756364a is fixed.

      Test import variables from src specified via variable: -This variable comes from variablesToImport.md

      + This variable comes from variablesToImport.md

      Test import variables that itself imports other variables:

      Trying to access a page variable:

      There should be something red below:

      @@ -11,4 +11,4 @@

      Trying to access a page variable:Trying to access an imported variable via namespace:

      There should be something blue below:

      This is a deeply imported variable
      -Something should have appeared above in blue. +Something should have appeared above in blue. \ No newline at end of file diff --git a/test/functional/test_site/expected/testImportVariables.html b/test/functional/test_site/expected/testImportVariables.html index 3d95998a5c..1a676e0a78 100644 --- a/test/functional/test_site/expected/testImportVariables.html +++ b/test/functional/test_site/expected/testImportVariables.html @@ -1,5 +1,6 @@ + @@ -23,29 +24,31 @@
      -
      -
      -

      Making sure the issue here https://github.com/MarkBind/markbind/commit/48b57a18a8bfd68101b163908da4a0541756364a is fixed.

      -
      -

      Test import variables from src specified via variable: -This variable comes from variablesToImport.md

      -

      Test import variables that itself imports other variables:

      -

      Trying to access a page variable:

      -

      There should be something red below:

      -
      This is a page variable from variablestoimport.md
      -Something should have appeared above in red. -

      Trying to access an imported variable via namespace:

      -

      There should be something blue below:

      -
      This is a deeply imported variable
      -Something should have appeared above in blue. -
      +
      +
      +

      Making sure the issue here https://github.com/MarkBind/markbind/commit/48b57a18a8bfd68101b163908da4a0541756364a is fixed.

      +
      +

      Test import variables from src specified via variable: + This variable comes from variablesToImport.md

      +

      Test import variables that itself imports other variables:

      +

      Trying to access a page variable:

      +

      There should be something red below:

      +
      This is a page variable from variablestoimport.md
      + Something should have appeared above in red. +

      Trying to access an imported variable via namespace:

      +

      There should be something blue below:

      +
      This is a deeply imported variable
      + Something should have appeared above in blue. +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -57,17 +60,23 @@

      Trying to access an const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testIncludePluginsRendered.html b/test/functional/test_site/expected/testIncludePluginsRendered.html index bb916fb9b1..b1486d38c5 100644 --- a/test/functional/test_site/expected/testIncludePluginsRendered.html +++ b/test/functional/test_site/expected/testIncludePluginsRendered.html @@ -1,5 +1,6 @@ + @@ -23,18 +24,24 @@
      -
      -

      The contents of these two panels should be exactly the same.

      -

      - -header Content of panel
      +
      +

      The contents of these two panels should be exactly the same.

      +

      + +

      + + header Content of panel + +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -46,17 +53,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testLayouts.html b/test/functional/test_site/expected/testLayouts.html index f3a3a6dbc0..8e9ce42bc4 100644 --- a/test/functional/test_site/expected/testLayouts.html +++ b/test/functional/test_site/expected/testLayouts.html @@ -1,34 +1,49 @@ + - - - - - - Hello World - - - - - - - - -
      -
      - -
      -

      Uses a front matter layout

      + + + + + Hello World + + + + + + + + + + + + + + +
      +
      + +
      +

      Uses a front matter layout

      +
      + + +
      -
      - Layout footer -
      +
      + Layout footer +
      + +
      @@ -40,17 +55,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testLayoutsOverride.html b/test/functional/test_site/expected/testLayoutsOverride.html index f829f81a28..945ce4df30 100644 --- a/test/functional/test_site/expected/testLayoutsOverride.html +++ b/test/functional/test_site/expected/testLayoutsOverride.html @@ -1,34 +1,49 @@ + - - - - - - Hello World - - - - - - - - -
      -
      - -
      -

      Uses a site.json layout, overriding front matter

      + + + + + Hello World + + + + + + + + + + + + + + +
      +
      + +
      +

      Uses a site.json layout, overriding front matter

      +
      + + +
      -
      - Layout footer -
      +
      + Layout footer +
      + +
      @@ -40,17 +55,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testPanels/NestedPanel._include_.html b/test/functional/test_site/expected/testPanels/NestedPanel._include_.html index abd9590c4c..429ef1de2a 100644 --- a/test/functional/test_site/expected/testPanels/NestedPanel._include_.html +++ b/test/functional/test_site/expected/testPanels/NestedPanel._include_.html @@ -1 +1,3 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html b/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html index 9fe2c260d9..e80b7a53c8 100644 --- a/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html +++ b/test/functional/test_site/expected/testPanels/PanelNormalSource._include_.html @@ -1 +1 @@ -

      Panel normal source content headings

      +

      Panel normal source content headings

      \ No newline at end of file diff --git a/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html b/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html index 7c21ac9246..3f76bbdf60 100644 --- a/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html +++ b/test/functional/test_site/expected/testPanels/PanelSourceContainsSegment._include_.html @@ -1,3 +1,4 @@
      -

      Panel source segment content headings

      -

      This heading is not src of any panel, so it should not be in the search data

      +

      Panel source segment content headings

      +
      +

      This heading is not src of any panel, so it should not be in the search data

      \ No newline at end of file diff --git a/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html b/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html index a7dd99ef39..cd49919927 100644 --- a/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html +++ b/test/functional/test_site/expected/testPanels/boilerTestPanel._include_.html @@ -1 +1 @@ -

      boilerplate test for panel heading

      +

      boilerplate test for panel heading

      \ No newline at end of file diff --git a/test/functional/test_site/expected/testPanels/notInside._include_.html b/test/functional/test_site/expected/testPanels/notInside._include_.html index 2eaf7663a6..bacd089bd9 100644 --- a/test/functional/test_site/expected/testPanels/notInside._include_.html +++ b/test/functional/test_site/expected/testPanels/notInside._include_.html @@ -1 +1 @@ -

      heading in panel boilerplate

      +

      heading in panel boilerplate

      \ No newline at end of file diff --git a/test/functional/test_site/expected/testPanelsWithImportedVariables.html b/test/functional/test_site/expected/testPanelsWithImportedVariables.html index 8b6cbdc627..f89d516b21 100644 --- a/test/functional/test_site/expected/testPanelsWithImportedVariables.html +++ b/test/functional/test_site/expected/testPanelsWithImportedVariables.html @@ -1,5 +1,6 @@ + @@ -23,21 +24,24 @@
      -
      -

      Refer to this comment: https://github.com/MarkBind/markbind/pull/751#issuecomment-469670640

      -
      -Title -

      Below panel is working -

      -

      Below should be a panel, but is now an error. Uncomment it to see the error.

      -
      +
      +

      Refer to this comment: https://github.com/MarkBind/markbind/pull/751#issuecomment-469670640

      +
      + Title +

      Below panel is working + +

      +

      Below should be a panel, but is now an error. Uncomment it to see the error.

      +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -49,17 +53,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testPlantUML.html b/test/functional/test_site/expected/testPlantUML.html index ab2f5a59c7..ab3ae27fe3 100644 --- a/test/functional/test_site/expected/testPlantUML.html +++ b/test/functional/test_site/expected/testPlantUML.html @@ -1,5 +1,6 @@ + @@ -55,9 +56,11 @@
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -69,17 +72,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testThumbnails.html b/test/functional/test_site/expected/testThumbnails.html index 80a3cf34ee..aba4858b6e 100644 --- a/test/functional/test_site/expected/testThumbnails.html +++ b/test/functional/test_site/expected/testThumbnails.html @@ -1,5 +1,6 @@ + @@ -23,83 +24,120 @@
      -
      -

      Thumbnail test

      -

      Images

      -

      Square thumb, size = 100 (default) -

      -

      Square thumb with alt="Test" -

      -

      Square thumb, size = 200 -

      -

      Circle thumbs, size = 100 - -

      -

      An actual image - -

      -
      -

      Broken link, still takes up the space it's supposed to

      -

      -

      -
      -

      Borders

      -
      - - - - - - - - - - - - - - - - -
      ThumbnailAttributeDescription
      no border
      border='3px solid red'3 pixel thick solid red line
      4px dotted blue4 pixel thick dotted blue line

      -

      Background

      -

      Valid CSS properties - - -

      -

      Invalid CSS properties -

      -

      Empty -

      -
      -

      Text/Emojis/Icons

      -

      Text -test

      -

      Markdown -test -test

      -

      Emojis -❌ -πŸ†

      -

      Icons - -

      -
      -

      font-size/font-color

      -

      20px font-size -test

      -

      40px font-size -test

      -

      font-color -blue -maroon

      +
      +

      Thumbnail test

      +

      Images

      +

      Square thumb, size = 100 (default) + +

      +

      Square thumb with alt="Test" + +

      +

      Square thumb, size = 200 + +

      +

      Circle thumbs, size = 100 + + +

      +

      An actual image + + +

      +
      +

      Broken link, still takes up the space it's supposed to

      +

      + + +

      +
      +

      Borders

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + +
      ThumbnailAttributeDescription
      + + no border
      + + border='3px solid red'3 pixel thick solid red line
      + + 4px dotted blue4 pixel thick dotted blue line
      +
      +
      +

      Background

      +

      Valid CSS properties + + + +

      +

      Invalid CSS properties + +

      +

      Empty + +

      +
      +

      Text/Emojis/Icons

      +

      Text + test +

      +

      Markdown + test + test +

      +

      Emojis + ❌ + πŸ† +

      +

      Icons + + +

      +
      +

      font-size/font-color

      +

      20px font-size + test +

      +

      40px font-size + test +

      +

      font-color + blue + maroon +

      +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -111,17 +149,23 @@ const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/testTooltipSpacing.html b/test/functional/test_site/expected/testTooltipSpacing.html index a917a29180..781866ad93 100644 --- a/test/functional/test_site/expected/testTooltipSpacing.html +++ b/test/functional/test_site/expected/testTooltipSpacing.html @@ -1,5 +1,6 @@ + @@ -23,17 +24,21 @@
      -
      -

      569: Stray space after tooltip

      -
      <tooltip>tooltip</tooltip>, test<trigger>trigger</trigger>, test

      tooltip, test

      -

      trigger, test

      +
      +

      569: Stray space after tooltip

      +
      <tooltip>tooltip</tooltip>, test<trigger>trigger</trigger>, test
      +

      tooltip, test

      +

      trigger, test

      +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -45,17 +50,23 @@

      569: Stray space after tooltip - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/expected/test_md_fragment.html b/test/functional/test_site/expected/test_md_fragment.html index 2b796deee3..dd91092e7f 100644 --- a/test/functional/test_site/expected/test_md_fragment.html +++ b/test/functional/test_site/expected/test_md_fragment.html @@ -1,5 +1,6 @@ + @@ -23,16 +24,19 @@
      -
      -

      Some heading

      -

      The quick brown fox jumps over the lazy dog.

      +
      +

      Some heading

      +

      The quick brown fox jumps over the lazy dog.

      +
      -
      +
      -
      - Default footer -
      +
      + Default footer +
      + + @@ -44,17 +48,23 @@

      Some heading< const enableSearch = true - - - - - - + + + + + + - + + \ No newline at end of file diff --git a/test/functional/test_site/site.json b/test/functional/test_site/site.json index c7213b8fda..3f0610ea8e 100644 --- a/test/functional/test_site/site.json +++ b/test/functional/test_site/site.json @@ -1,6 +1,6 @@ { "baseUrl": "/test_site", - "jsBeautify": true, + "htmlBeautify": true, "faviconPath": "favicon.png", "titlePrefix": "", "pages": [ diff --git a/test/functional/test_site/sub_site/site.json b/test/functional/test_site/sub_site/site.json index ef308a1d04..ddc4845f56 100644 --- a/test/functional/test_site/sub_site/site.json +++ b/test/functional/test_site/sub_site/site.json @@ -1,6 +1,6 @@ { "baseUrl": "/sub_site", - "jsBeautify": true, + "htmlBeautify": true, "pages": [ { "src": "index.md", diff --git a/test/functional/test_site_algolia_plugin/expected/index.html b/test/functional/test_site_algolia_plugin/expected/index.html index a1259ebcd6..7d43dcdbc0 100644 --- a/test/functional/test_site_algolia_plugin/expected/index.html +++ b/test/functional/test_site_algolia_plugin/expected/index.html @@ -1,95 +1,122 @@ + - - - - - - Hello World - - - - - - - - -
      -
      - -
      -

      Test Algolia plugin adds algolia-no-index classes

      -

      Dropdowns should have algolia-no-index class

      -
      Dropdown
      -
    36. One
    37. -
    38. Two
    39. -

      Modal content should have algolia-no-index class

      - - Content should have `algolia-no-index` class - -Trigger should not have `algolia-no-index` class -

      Panels that are not expanded should have algolia-no-index class

      - - Content - - - Content - -

      Popover content should have algolia-no-index class

      -Title -
      Content should have `algolia-no-index` class
      -
      -TitleContent as attribute does not require algolia-no-index class - -

      Question hint and answer should have algolia-no-index class

      - - Question should not have `algolia-no-index` class -
      Hint should have `algolia-no-index` class
      -
      Answer should have `algolia-no-index` class
      -

      Tabs except first tab should have algolia-no-index class

      - - - Content
      Content
      Content
      Content -
      - - Content
      Content
      Content
      Content -
      - - - - Content
      Content
      Content
      Content -
      - - Content
      Content
      Content
      Content -
      - - - Content
      Content
      Content
      Content -
      - - Content
      Content
      Content
      Content -
      - - - - Content
      Content
      Content
      Content -
      - - Content
      Content
      Content
      Content -
      - - Content
      Content
      Content
      Content -
      + + + + + Hello World + + + + + + + + + + + + +
      +
      + +
      +

      Test Algolia plugin adds algolia-no-index classes

      +

      Dropdowns should have algolia-no-index class

      +
      Dropdown
      + +
    40. One
    41. +
    42. Two
    43. +
      +

      Modal content should have algolia-no-index class

      + + Content should have `algolia-no-index` class + + Trigger should not have `algolia-no-index` class +

      Panels that are not expanded should have algolia-no-index class

      + + Content + + + Content + +

      Popover content should have algolia-no-index class

      + Title +
      Content should have `algolia-no-index` class
      + +
      + TitleContent as attribute does not require algolia-no-index class + +

      Question hint and answer should have algolia-no-index class

      + + Question should not have `algolia-no-index` class +
      Hint should have `algolia-no-index` class
      +
      Answer should have `algolia-no-index` class
      +
      +

      Tabs except first tab should have algolia-no-index class

      + + + Content
      Content
      Content
      Content +
      + + Content
      Content
      Content
      Content +
      +
      + + + + Content
      Content
      Content
      Content +
      + + Content
      Content
      Content
      Content +
      +
      + + + Content
      Content
      Content
      Content +
      + + Content
      Content
      Content
      Content +
      +
      +
      + + + + Content
      Content
      Content
      Content +
      + + Content
      Content
      Content
      Content +
      +
      + + Content
      Content
      Content
      Content +
      +
      +
      + + +
      -
      - This is a dynamic height footer that supports markdown πŸ˜„! -
      +
      + This is a dynamic height footer that supports markdown πŸ˜„! +
      + +
      @@ -101,18 +128,19 @@ const enableSearch = true - - + + - + + \ No newline at end of file diff --git a/test/functional/test_site_algolia_plugin/site.json b/test/functional/test_site_algolia_plugin/site.json index ed2fa41f99..5ac3f5ad24 100644 --- a/test/functional/test_site_algolia_plugin/site.json +++ b/test/functional/test_site_algolia_plugin/site.json @@ -1,6 +1,6 @@ { "baseUrl": "/test_site_algolia_plugin", - "jsBeautify": true, + "htmlBeautify": true, "titlePrefix": "", "ignore": [ "_markbind/layouts/*", diff --git a/test/functional/test_site_expressive_layout/expected/index.html b/test/functional/test_site_expressive_layout/expected/index.html index 71159042a7..17e3bf1979 100644 --- a/test/functional/test_site_expressive_layout/expected/index.html +++ b/test/functional/test_site_expressive_layout/expected/index.html @@ -1,41 +1,51 @@ + - - - - - - Landing Page - - - - - - - - -
      -
      -
      -
      -
      -

      Variable from layout

      -

      This is an importedVar

      - - Math formulas - -
      -

      Welcome to Markbind

      -

      This is a minimalistic template. To learn more about authoring contents in Markbind, visit the User Guide.

      -

      Variable from page

      -

      Bottom Content

      -
      -
      -

      This content can be imported to the bottom of the page

      + + + + + Landing Page + + + + + + + + + + +
      +
      +
      +
      +
      +

      Variable from layout

      +

      This is an importedVar

      + + Math formulas + +
      +

      Welcome to Markbind

      +

      This is a minimalistic template. To learn more about authoring contents in Markbind, visit the User Guide.

      +

      Variable from page

      +

      Bottom Content

      +
      +
      +

      This content can be imported to the bottom of the page

      +
      + + +
      +
      +
      +
      @@ -110,4 +112,5 @@

      So far as to comply with t - + + \ No newline at end of file diff --git a/test/functional/test_site_special_tags/site.json b/test/functional/test_site_special_tags/site.json index 76e8b7a8db..c66f0a2f94 100644 --- a/test/functional/test_site_special_tags/site.json +++ b/test/functional/test_site_special_tags/site.json @@ -1,5 +1,5 @@ { - "jsBeautify": true, + "htmlBeautify": true, "ignore": [ "_markbind/layouts/*", "_markbind/logs/*", From b66571d59e30b28e3880c0b623e0ebc0d612da94 Mon Sep 17 00:00:00 2001 From: yash-chowdhary Date: Mon, 23 Mar 2020 13:56:10 +0800 Subject: [PATCH 06/11] Update docs --- docs/userGuide/siteConfiguration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/userGuide/siteConfiguration.md b/docs/userGuide/siteConfiguration.md index 9985297273..7b041bbfae 100644 --- a/docs/userGuide/siteConfiguration.md +++ b/docs/userGuide/siteConfiguration.md @@ -206,6 +206,13 @@ The example above uses tags as an example of configuring plugin settings, refer **Toggles-on html beautification done by [js-beautify](https://github.com/beautify-web/js-beautify) for html files generated by MarkBind.** By default, MarkBind turns this option off to improve the performance of the MarkBind `build` process. However, toggling-on this option allows the user to edit the post-build HTML files in a friendly manner (through proper indentation of the code, for example). +
      +To toggle on the option, add the following to `site.json` - +```js +... +"htmlBeautify": true, +... +``` #### **`timeZone`** From 90a822054e49b50a8d81174aac881e6d6675424f Mon Sep 17 00:00:00 2001 From: yash-chowdhary Date: Mon, 23 Mar 2020 14:37:41 +0800 Subject: [PATCH 07/11] Update functional tests --- test/functional/test_site/expected/index.html | 63 +++---------------- .../expected/index.html | 10 ++- 2 files changed, 19 insertions(+), 54 deletions(-) diff --git a/test/functional/test_site/expected/index.html b/test/functional/test_site/expected/index.html index 30b51bde69..06836d9e75 100644 --- a/test/functional/test_site/expected/index.html +++ b/test/functional/test_site/expected/index.html @@ -262,6 +262,12 @@

      Heading with hidden keyword + Div with tag matching front matter tag overridden by matching site tag + +

      Div with tag matching general front matter tag not overridden by matching specific site tag (Hidden)

      +

      Div with tag matching general front matter tag overridden by matching specific site tag

      Div with tag matching general front matter tag overridden by matching specific site tag @@ -310,7 +316,9 @@

      Path within

      Like static include, pages within the site should be able to use files located in folders within boilerplate.

      Also, the boilerplate file name (e.g. inside.md) and the file that it is supposed to act as (notInside.md) can be different.

      This file should behaves as if it is in the requirements folder:

      - +

      @@ -679,58 +687,6 @@
      -
      -

      Inlines notes are easier to write, since - you don't have to pick an identifier and move down to type the - note.

      -
      - - - -
      -
      -
      - - This is a placeholder page
      +
      +
      + + This is a placeholder page +
      - +
      - Custom footer. -
      + Custom footer. + + @@ -63,4 +66,5 @@ - + + \ No newline at end of file diff --git a/test/functional/test_site_convert/expected/contents/topic3a.html b/test/functional/test_site_convert/expected/contents/topic3a.html index 4cb6f2501a..2c87c1c551 100644 --- a/test/functional/test_site_convert/expected/contents/topic3a.html +++ b/test/functional/test_site_convert/expected/contents/topic3a.html @@ -1,5 +1,6 @@ + @@ -42,15 +43,17 @@
    44. Topic 3a
    45. Topic 3b
    46. -
      -
      - - This is a placeholder page
      +
      +
      + + This is a placeholder page +
      - +
      - Custom footer. -
      + Custom footer. + + @@ -63,4 +66,5 @@ - + + \ No newline at end of file diff --git a/test/functional/test_site_convert/expected/contents/topic3b.html b/test/functional/test_site_convert/expected/contents/topic3b.html index ed5c208000..439019c099 100644 --- a/test/functional/test_site_convert/expected/contents/topic3b.html +++ b/test/functional/test_site_convert/expected/contents/topic3b.html @@ -1,5 +1,6 @@ + @@ -42,15 +43,17 @@
    47. Topic 3a
    48. Topic 3b
    49. -
      -
      - - This is a placeholder page
      +
      +
      + + This is a placeholder page +
      - +
      - Custom footer. -
      + Custom footer. + + @@ -63,4 +66,5 @@ - + + \ No newline at end of file diff --git a/test/functional/test_site_convert/expected/index.html b/test/functional/test_site_convert/expected/index.html index e5138c33af..4f2ee1ec16 100644 --- a/test/functional/test_site_convert/expected/index.html +++ b/test/functional/test_site_convert/expected/index.html @@ -1,40 +1,57 @@ + - - - - - - Landing Page - - - - - - - - -
      -
      - -
    50. HOME
    51. -
    52. ABOUT
    53. -
    54. -
    55. - -
      -

      Welcome to the test-deploy wiki!

      + + + + + Landing Page + + + + + + + + + + + +
      +
      + + +
    56. HOME
    57. +
    58. ABOUT
    59. +
    60. + +
    61. +
      +
      +
      + + +
      +

      Welcome to the test-deploy wiki!

      +
      + +
      - Custom footer. -
      + Custom footer. + +
      @@ -47,4 +64,5 @@ - + + \ No newline at end of file diff --git a/test/functional/test_site_expressive_layout/site.json b/test/functional/test_site_expressive_layout/site.json index 4ace31252b..79b240d49c 100755 --- a/test/functional/test_site_expressive_layout/site.json +++ b/test/functional/test_site_expressive_layout/site.json @@ -1,6 +1,5 @@ { "baseUrl": "/test_site_expressive_layout", - "htmlBeautify": true, "titlePrefix": "", "ignore": [ "_markbind/layouts/*", diff --git a/test/functional/test_site_special_tags/site.json b/test/functional/test_site_special_tags/site.json index c66f0a2f94..5072da6cb2 100644 --- a/test/functional/test_site_special_tags/site.json +++ b/test/functional/test_site_special_tags/site.json @@ -1,5 +1,4 @@ { - "htmlBeautify": true, "ignore": [ "_markbind/layouts/*", "_markbind/logs/*", diff --git a/test/functional/test_site_templates/test_default/expected/contents/topic1.html b/test/functional/test_site_templates/test_default/expected/contents/topic1.html index 04312d3cb7..5712d82b6a 100644 --- a/test/functional/test_site_templates/test_default/expected/contents/topic1.html +++ b/test/functional/test_site_templates/test_default/expected/contents/topic1.html @@ -1,5 +1,6 @@ + @@ -21,35 +22,53 @@
      - - Your Logo -
    62. Topic 1
    63. -
    64. Topic 2
    65. - -
    66. Topic 3a
    67. -
    68. Topic 3b
    69. -
    70. -
    71. - + + Your Logo +
    72. Topic 1
    73. +
    74. Topic 2
    75. + + +
    76. Topic 3a
    77. +
    78. Topic 3b
    79. +
      +
    80. + +
    81. +
      + +
      + -
      -
      -

      Topic 1

      -
      -

      More content to be added

      +
      +
      +

      Topic 1

      +
      +

      More content to be added

      +
      +
      -
      +
      + +