Skip to content

Commit

Permalink
Add documentation page smooth scrolling using Tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 17, 2024
1 parent 4ea7de9 commit 8c0bddf
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _media/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/framework/resources/views/layouts/docs.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ config('hyde.language', 'en') }}">
<html lang="{{ config('hyde.language', 'en') }}" class="scroll-smooth">
<head>
@include('hyde::layouts.head')
</head>
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/tests/Feature/StaticPageBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function tearDown(): void
protected function validateBasicHtml(string $html)
{
$this->assertStringContainsString('<!DOCTYPE html>', $html);
$this->assertStringContainsString('<html lang="en">', $html);
$this->assertStringContainsString('<html lang="en"', $html);
$this->assertStringContainsString('<head>', $html);
$this->assertStringContainsString('<title>', $html);
$this->assertStringContainsString('</title>', $html);
Expand Down
2 changes: 1 addition & 1 deletion packages/hydefront/dist/hyde.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/hydefront/dist/hyde.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions packages/hydefront/sass/hyde-docs.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* HydeDocs Core CSS
*/

html {
scroll-behavior: smooth;
}

0 comments on commit 8c0bddf

Please sign in to comment.