Skip to content

Commit

Permalink
fix docs with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinheldy committed Aug 24, 2023
1 parent 453c846 commit df94b41
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="keywords" content="bootstrap tag, tag input, bootstrap input">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>use-bootstrap-tag | Tag input for Bootstrap 5</title>
<script type="module" crossorigin="" src="/assets/index-eef3aa50.js"></script>
<script type="module" crossorigin="" src="/assets/index-fb4865c6.js"></script>
<link rel="stylesheet" href="/assets/index-088aae3b.css">
</head>

Expand Down

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

2 changes: 1 addition & 1 deletion docs/customize/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="keywords" content="bootstrap tag, tag input, bootstrap input">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>use-bootstrap-tag | Tag input for Bootstrap 5</title>
<script type="module" crossorigin="" src="/assets/index-eef3aa50.js"></script>
<script type="module" crossorigin="" src="/assets/index-fb4865c6.js"></script>
<link rel="stylesheet" href="/assets/index-088aae3b.css">
</head>

Expand Down
2 changes: 1 addition & 1 deletion docs/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="keywords" content="bootstrap tag, tag input, bootstrap input">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>use-bootstrap-tag | Tag input for Bootstrap 5</title>
<script type="module" crossorigin="" src="/assets/index-eef3aa50.js"></script>
<script type="module" crossorigin="" src="/assets/index-fb4865c6.js"></script>
<link rel="stylesheet" href="/assets/index-088aae3b.css">
</head>

Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="keywords" content="bootstrap tag, tag input, bootstrap input">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>use-bootstrap-tag | Tag input for Bootstrap 5</title>
<script type="module" crossorigin="" src="/assets/index-eef3aa50.js"></script>
<script type="module" crossorigin="" src="/assets/index-fb4865c6.js"></script>
<link rel="stylesheet" href="/assets/index-088aae3b.css">
</head>

Expand Down
2 changes: 1 addition & 1 deletion docs/install/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="keywords" content="bootstrap tag, tag input, bootstrap input">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>use-bootstrap-tag | Tag input for Bootstrap 5</title>
<script type="module" crossorigin="" src="/assets/index-eef3aa50.js"></script>
<script type="module" crossorigin="" src="/assets/index-fb4865c6.js"></script>
<link rel="stylesheet" href="/assets/index-088aae3b.css">
</head>

Expand Down
6 changes: 5 additions & 1 deletion src/docs/docs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
path && window.scrollTo(0, 0)
}
function update() {
path = location.pathname
let pathname = location.pathname
if (pathname !== '/' && pathname.endsWith('/')) {
pathname = pathname.slice(0, -1)
}
path = pathname
}
navaid().on('*', update).listen()
Expand Down

0 comments on commit df94b41

Please sign in to comment.