docs: modify ts language and enable https links

pull/865/head
Zihao 3 years ago committed by GitHub
parent a689f6b6d3
commit edf6a551e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
VitePress has built in native support for [Carbon Ads](https://www.carbonads.net/). By defining the Carbon Ads credentials in config, VitePress will display ads on the page. VitePress has built in native support for [Carbon Ads](https://www.carbonads.net/). By defining the Carbon Ads credentials in config, VitePress will display ads on the page.
```js ```ts
export default { export default {
themeConfig: { themeConfig: {
carbonAds: { carbonAds: {
@ -15,8 +15,8 @@ export default {
These values are used to call carbon CDN script as shown below. These values are used to call carbon CDN script as shown below.
```js ```ts
`//cdn.carbonads.com/carbon.js?serve=${code}&placement=${placement}` `https://cdn.carbonads.com/carbon.js?serve=${code}&placement=${placement}`
``` ```
To learn more about Carbon Ads configuration, please visit [Carbon Ads website](https://www.carbonads.net/). To learn more about Carbon Ads configuration, please visit [Carbon Ads website](https://www.carbonads.net/).

Loading…
Cancel
Save