Skip to content

Commit

Permalink
Merge pull request #76 from saulopaiva/feature/upgrade-astro-to-3
Browse files Browse the repository at this point in the history
Upgrade astro to 3
  • Loading branch information
markteekman authored Sep 9, 2023
2 parents 4d6c6ac + b8f21b2 commit b19a1df
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.5.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Clone this theme locally and run any of the following commands in your terminal:
| Command | Action |
| :---------------- | :------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |

Expand Down
4 changes: 3 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ import compress from 'astro-compress'
// https://astro.build/config
export default defineConfig({
compressHTML: true,
integrations: [mdx(), tailwind(), compress()],
integrations: [mdx(), tailwind({
applyBaseStyles: false,
}), compress()],
})
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "accessible-astro-starter",
"description": "An Accessible Starter Theme for Astro including several accessiblity features and tools to help you build faster.",
"version": "2.0.7",
"version": "3.0.0",
"author": "Mark Teekman",
"homepage": "https://accessible-astro.netlify.app/",
"scripts": {
Expand All @@ -11,13 +11,13 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/partytown": "^1.0.3",
"@astrojs/tailwind": "^3.0.0",
"@astrojs/mdx": "^1.0.2",
"@astrojs/partytown": "^2.0.0",
"@astrojs/tailwind": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"accessible-astro-components": "^2.2.0",
"astro": "^2.0.1",
"astro": "^3.0.10",
"astro-compress": "^2.0.6",
"astro-icon": "^0.7.3",
"eslint": "^8.33.0",
Expand Down
4 changes: 3 additions & 1 deletion src/components/Navigation.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
import ResponsiveToggle from './ResponsiveToggle.astro'
import { DarkMode } from 'accessible-astro-components'
import { Image } from "astro:assets"
import logo from "../assets/img/logo.svg"
---

<div id="main-navigation" class="is-desktop py-8">
<div class="container">
<a href="/" class="flex items-center gap-2 !no-underline">
<img src={(await import('../assets/img/logo.svg')).default} alt="Your Logo" width="47" height="37" />
<Image src={logo} alt="Your Logo" width="47" height="37" />
<span class="font-bold">Accessible Astro</span>
</a>
<div class="wrapper">
Expand Down
1 change: 1 addition & 0 deletions src/layouts/DefaultLayout.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import '@astrojs/tailwind/base.css'
import '../assets/scss/globals.scss'
import SiteMeta from '../components/SiteMeta.astro'
import Header from '../components/Header.astro'
Expand Down

0 comments on commit b19a1df

Please sign in to comment.