Skip to content

Commit

Permalink
docs: fix assets not loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xandemon committed May 21, 2024
1 parent 11863a3 commit 59b41d0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Deploy Astro site to Pages
on:
# Trigger the workflow every time you push to the `main` branch
push:
branches: [main]
branches: [deploy]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

Expand Down
File renamed without changes
File renamed without changes
Binary file added docs/assets/under-development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import tailwind from "@astrojs/tailwind";
export default defineConfig({
site: "https://xandemon.github.io",
base: "/developer-icons/docs",
publicDir: "/developer-icons/docs/public",
integrations: [
react(),
tailwind({
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/HeroSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { Button } from "./ui/button";
</div>

<img
src="/developer-icons/docs/hero-image.png"
src="/developer-icons/docs/assets/hero-image.png"
class="rounded-lg w-full h-[350px] max-w-[45%] object-contain shadow-md shadow-zinc-800"
/>
</div>
6 changes: 5 additions & 1 deletion docs/src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import Container from "./Container.astro";
<div class="navbar">
<Container className="justify-between">
<a href="/" class="flex items-center gap-2">
<img src="/developer-icons/docs/favicon.svg" width="30" height="30" />
<img
src="/developer-icons/docs/assets/favicon.svg"
width="30"
height="30"
/>
<span class="font-semibold text-lg">Developer Icons</span>
</a>
<nav
Expand Down
2 changes: 1 addition & 1 deletion docs/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { title } = Astro.props;
<link
rel="icon"
type="image/svg+xml"
href="/developer-icons/docs/favicon.svg"
href="/developer-icons/docs/assets/favicon.svg"
/>
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
Expand Down

0 comments on commit 59b41d0

Please sign in to comment.