-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat($markdown): snippet partial import (#2225)
- Loading branch information
Showing
10 changed files
with
302 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ges/@vuepress/markdown/__tests__/fragments/code-snippet-with-indented-region.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<< @/packages/@vuepress/markdown/__tests__/fragments/snippet-with-indented-region.html#body |
1 change: 1 addition & 0 deletions
1
...vuepress/markdown/__tests__/fragments/code-snippet-with-region-and-highlight.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<< @/packages/@vuepress/markdown/__tests__/fragments/snippet-with-region.js#snippet{1,3} |
1 change: 1 addition & 0 deletions
1
...s/markdown/__tests__/fragments/code-snippet-with-region-and-single-highlight.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<< @/packages/@vuepress/markdown/__tests__/fragments/snippet-with-region.js#snippet{11} |
1 change: 1 addition & 0 deletions
1
packages/@vuepress/markdown/__tests__/fragments/code-snippet-with-region.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<< @/packages/@vuepress/markdown/__tests__/fragments/snippet-with-region.js#snippet |
16 changes: 16 additions & 0 deletions
16
packages/@vuepress/markdown/__tests__/fragments/snippet-with-indented-region.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<!-- #region body --> | ||
<section> | ||
<h1>Hello World</h1> | ||
</section> | ||
<div>Lorem Ipsum</div> | ||
<!-- #endregion body --> | ||
</body> | ||
</html> |
32 changes: 32 additions & 0 deletions
32
packages/@vuepress/markdown/__tests__/fragments/snippet-with-region.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// #region snippet | ||
function foo () { | ||
return ({ | ||
dest: '../../vuepress', | ||
locales: { | ||
'/': { | ||
lang: 'en-US', | ||
title: 'VuePress', | ||
description: 'Vue-powered Static Site Generator' | ||
}, | ||
'/zh/': { | ||
lang: 'zh-CN', | ||
title: 'VuePress', | ||
description: 'Vue 驱动的静态网站生成器' | ||
} | ||
}, | ||
head: [ | ||
['link', { rel: 'icon', href: `/logo.png` }], | ||
['link', { rel: 'manifest', href: '/manifest.json' }], | ||
['meta', { name: 'theme-color', content: '#3eaf7c' }], | ||
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }], | ||
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }], | ||
['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }], | ||
['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }], | ||
['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }], | ||
['meta', { name: 'msapplication-TileColor', content: '#000000' }] | ||
] | ||
}) | ||
} | ||
// #endregion snippet | ||
|
||
export default foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters