diff --git a/website/docs/docs/introduction.md b/website/docs/docs/introduction.md index 5301dae396d..2254738a8e5 100644 --- a/website/docs/docs/introduction.md +++ b/website/docs/docs/introduction.md @@ -17,13 +17,6 @@ Read more about why we want to enable analysts to work more like software engine Use dbt to quickly and collaboratively transform data and deploy analytics code following software engineering best practices like version control, modularity, portability, CI/CD, and documentation. This means anyone on the data team comfortable with SQL can safely contribute to production-grade data pipelines. - - ### dbt Cloud dbt Cloud offers the fastest, most reliable, and scalable way to deploy dbt. Allowing data teams to optimize their data transformation by developing, testing, scheduling, and investigating data models using a single, fully managed service through a web-based user interface (UI). diff --git a/website/src/components/expandable/index.js b/website/src/components/expandable/index.js index 3cf87b3cd34..6abc84cf0fd 100644 --- a/website/src/components/expandable/index.js +++ b/website/src/components/expandable/index.js @@ -10,7 +10,7 @@ function slugify(text) { .replace(/[\u0300-\u036f]/g, '') // remove diacritics .replace(/\s+/g, '-') // replace spaces with - .replace(/[^\w\-]+/g, '') // remove all non-word chars - .replace(/\-\-+/g, '-') // replace multipl - with a single - + .replace(/\-\-+/g, '-') // replace multiple - with a single - .replace(/^-+/, '') // trim - from the start .replace(/-+$/, ''); // trim - from the end } @@ -39,43 +39,46 @@ function Expandable({ children, alt_header = null, lifecycle }) { popup.classList.add('copy-popup'); popup.innerText = 'Link copied!'; - // Add close button ('x') - const closeButton = document.createElement('span'); - closeButton.classList.add('close-button'); - closeButton.innerHTML = ' ×'; // '×' symbol for 'x' - closeButton.addEventListener('click', () => { - if (document.body.contains(popup)) { - document.body.removeChild(popup); - } - }); - popup.appendChild(closeButton); + // Add close button ('x') + const closeButton = document.createElement('span'); + closeButton.classList.add('close-button'); + closeButton.innerHTML = ' ×'; // '×' symbol for 'x' + closeButton.addEventListener('click', () => { + if (document.body.contains(popup)) { + document.body.removeChild(popup); + } + }); + popup.appendChild(closeButton); - document.body.appendChild(popup); + document.body.appendChild(popup); - setTimeout(() => { - if (document.body.contains(popup)) { - document.body.removeChild(popup); - } - }, 3000); -}; + setTimeout(() => { + if (document.body.contains(popup)) { + document.body.removeChild(popup); + } + }, 3000); + }; -useEffect(() => { - if (window.location.hash === `#${anchorId}`) { - setOn(true); - const element = document.getElementById(anchorId); - if (element) { - element.scrollIntoView({ behavior: 'smooth' }); + useEffect(() => { + if (window.location.hash === `#${anchorId}`) { + setOn(true); + const element = document.getElementById(anchorId); + if (element) { + element.scrollIntoView({ behavior: 'smooth' }); + } } - } -}, [anchorId]); + }, [anchorId]); return ( -