diff --git a/.gitconfig b/.gitconfig deleted file mode 100644 index 3dbd6676874d..000000000000 --- a/.gitconfig +++ /dev/null @@ -1,8 +0,0 @@ -[commit] - gpgsign = true -[user] - email = rasheedrtm1@gmail.com - name = Rasheed Mudasiru - signingkey = 30C8087C891F6D07 -[gpg] - program = gpg \ No newline at end of file diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 3d0d68289ffc..18b53ad472bc 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -261,7 +261,6 @@ PLATFORMS arm64-darwin-23 x86_64-darwin-20 x86_64-darwin-21 - x86_64-linux DEPENDENCIES github-pages diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 4232c565e715..252e01859701 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -66,7 +66,7 @@
{% if page.url contains "/articles/" %} -
+

{{ page.name | remove: '.md' | split: "-" | join: " " }}

diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index ceceb3809678..206924100a77 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -49,10 +49,11 @@ function isInRange(num, min, max) { * If a page is directly accessed (e.g., via deep link, bookmark, or opened in a new tab),the user will be navigated * back to the relevant hub page of that article. */ -let newPath; + function navigateBack() { const currentPath = window.location.pathname; const pathSegments = currentPath.split('/'); + let newPath; // Check if we're in an article page if (pathSegments.length >= 5 && pathSegments[1] === 'articles') { @@ -78,7 +79,6 @@ function navigateBack() { } } -// Add an event listener for the popstate event window.addEventListener('popstate', (e)=>{ e.preventDefault() navigateBack() @@ -309,6 +309,7 @@ window.addEventListener('DOMContentLoaded', () => { } } }); + lhnContent.addEventListener('wheel', (e) => { const scrollTop = lhnContent.scrollTop; const isScrollingPastLHNTop = e.deltaY < 0 && scrollTop === 0; @@ -317,6 +318,7 @@ window.addEventListener('DOMContentLoaded', () => { e.preventDefault(); } }); + window.addEventListener('scroll', (e) => { const scrollingElement = e.target.scrollingElement; const scrollPercentageInArticleContent = clamp(scrollingElement.scrollTop - articleContent.offsetTop, 0, articleContent.scrollHeight) / articleContent.scrollHeight; @@ -325,4 +327,5 @@ window.addEventListener('DOMContentLoaded', () => { // Count property of y-axis to keep scroll position & reference it later for making the body fixed when sidebar opened document.documentElement.style.setProperty('y-axis', `${window.scrollY}px`); }); + }); \ No newline at end of file