Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat: ⚡️ support html source code of examples #83

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

afc163
Copy link
Contributor

@afc163 afc163 commented Dec 16, 2019

close #74

antvis/G2#1725

需要修改 gatsby-config.js:

htmlCodeTemplate: `<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{title}}</title>
</head>
<body>
<div id="container" />
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.g2-3.5.1/dist/g2.min.js"></script>
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.10.1/dist/data-set.min.js"></script>
<script>
{{code}}
</script>
</body>
</html>`,

image

image

@auto-add-label auto-add-label bot added the enhancement New feature or request label Dec 16, 2019
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@netlify
Copy link

netlify bot commented Dec 16, 2019

Deploy preview for gatsby-theme-antv ready!

Built with commit 80cf6b5

https://deploy-preview-83--gatsby-theme-antv.netlify.com

@afc163 afc163 merged commit d854bbe into master Dec 16, 2019
@afc163 afc163 deleted the example-html-template branch December 16, 2019 10:44
@afc163
Copy link
Contributor Author

afc163 commented Dec 16, 2019

gatsby-theme-antv@0.10.20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request PR: merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

代码演示页面是否提供 html 代码
1 participant