Skip to content

Commit f4519f9

Browse files
committed
fixing whitespace
1 parent b8e47f6 commit f4519f9

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

common-docs/blocks-embed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A quick solution is take screenshots of the snippets but that approach can quick
1616

1717
The MakeCode approach to solving this issue is to render the **JavaScript** code snippets on the client using the same block rendering engine as the editor. Under the hood, an ``iframe`` from the MakeCode editor will render the blocks for you.
1818

19-
## GitHub pages
19+
## GitHub pages #githubpages
2020

2121
You can use [GitHub pages](https://help.github.com/en/github/working-with-github-pages) to render your README.md file as a web site.
2222

docs/blocks-embed.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@ Unlike text based programming languages, block-based snippets aren't easily rend
1515

1616
The MakeCode approach in solving this problem is to render the **JavaScript** code snippets on a client using the same block rendering engine as the editor. Under the hood, an IFrame from the MakeCode editor will render the blocks for you.
1717

18-
## GitHub pages
18+
## GitHub pages #githubpages
1919

2020
You can use [GitHub pages](https://help.github.com/en/github/working-with-github-pages) to render your README.md file as a web site.
2121

2222
* enable [GitHub pages](https://help.github.com/en/github/working-with-github-pages/creating-a-github-pages-site#creating-your-site) on your repository
2323
* add the url of the editor in ``_config.yml`` (including trailing /)
24+
2425
```
25-
makecode:
26-
home_url: https://makecode.microbit.org/
26+
makecode:
27+
home_url: @homeurl@
2728
```
29+
2830
* copy the following text at the bottom of your ``README.md`` file
2931
```
3032
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

0 commit comments

Comments
 (0)