ml5js/ml5-website-v02-docsify

Add topMargin property in window.$docsify for better layout

alanvww opened this issue · 2 comments

Hi folks, for the current docsify page, there is an issue that when the user uses the section links in the sidebar, the scroll offset is not ideal.
CleanShot 2024-04-16 at 14 40 31

After some research, there is a option called "topMargin" in docsify can solve this problem.

in index.html

<script>
window.$docsify = {
	......
	topMargin: 30,
.........
</script>

after this option applied

CleanShot 2024-04-16 at 14 44 29

Related #68

Thanks, @alanvww! Love it! Feel free to create a PR and we will merge your changes to the main. cc @MOQN

Thanks, @alanvww! Love it! Feel free to create a PR and we will merge your changes to the main. cc @MOQN

Done! Sorry for the reformatting of the files :( I Please use the "ignore whitespace" when reviewing the code.
#71