Merge branch 'main' into chore/vite-3

pull/1136/head
Divyansh Singh 3 years ago committed by GitHub
commit afeb388756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
### Using GitHub Actions ### Using GitHub Actions
1. Create a file named `deploy.yml` inside `.github/workflow` directory of your project with the following content: 1. Create a file named `deploy.yml` inside `.github/workflows` directory of your project with the following content:
```yaml ```yaml
name: Deploy name: Deploy
@ -96,6 +96,10 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
publish_dir: docs/.vitepress/dist publish_dir: docs/.vitepress/dist
``` ```
::: tip
Please replace the corresponding branch name. For example, if the branch you want to build is `master`, then you should replace `main` with `master` in the above file.
:::
2. Now commit your code and push it to the `main` branch. 2. Now commit your code and push it to the `main` branch.
3. Wait for actions to complete. Then select `gh-pages` branch as GitHub Pages source in your repository settings. Now your docs will automatically deploy each time you push. 3. Wait for actions to complete. Then select `gh-pages` branch as GitHub Pages source in your repository settings. Now your docs will automatically deploy each time you push.

@ -22,7 +22,9 @@ const resolvedHeaders = computed(() => {
function handleClick({ target: el }: Event) { function handleClick({ target: el }: Event) {
const id = '#' + (el as HTMLAnchorElement).href!.split('#')[1] const id = '#' + (el as HTMLAnchorElement).href!.split('#')[1]
const heading = document.querySelector<HTMLAnchorElement>(id) const heading = document.querySelector<HTMLAnchorElement>(
decodeURIComponent(id)
)
heading?.focus() heading?.focus()
} }
</script> </script>

Loading…
Cancel
Save