Skip to content

Commit

Permalink
Merge pull request #16 from Ultramarine-Linux/chore/renovate
Browse files Browse the repository at this point in the history
chore: upgrade deps, add prettier, and bring more in line with fyra standards
  • Loading branch information
lleyton authored Jan 20, 2024
2 parents 24de11a + cde7013 commit 77cf7a5
Show file tree
Hide file tree
Showing 58 changed files with 4,078 additions and 7,445 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v0
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v0
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
};
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"recommendations": ["astro-build.astro-vscode"],
"recommendations": [
"astro-build.astro-vscode",
"esbenp.prettier-vscode",
"unifiedjs.vscode-mdx"
],
"unwantedRecommendations": []
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Ultramarine Linux Wiki

This wiki is meant to be the extended documentation for both end users and developers, so it is separated in those two categories. Made with Astro and a modification of the default blog template.

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :--------------------- | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro --help` | Get help using the Astro CLI |

| Command | Action |
| :---------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm run dev` | Starts local dev server at `localhost:3000` |
| `pnpm run build` | Build your production site to `./dist/` |
| `pnpm run preview` | Preview your build locally, before deploying |
| `pnpm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm run astro --help` | Get help using the Astro CLI |
17 changes: 10 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';
import { defineConfig } from "astro/config";
import preact from "@astrojs/preact";
import icon from "astro-icon";

// https://astro.build/config
import mdx from "@astrojs/mdx";

// https://astro.build/config
export default defineConfig({
site: 'https://wiki.ultramarine-linux.org',
site: "https://wiki.ultramarine-linux.org",
integrations: [
// Enable Preact to support Preact JSX components.
preact(), mdx()],
site: `https://astro.build`
});
// Enable Preact to support Preact JSX components.
preact(),
icon(),
mdx(),
],
});
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,25 @@
},
"dependencies": {
"@algolia/client-search": "^4.22.1",
"@astrojs/mdx": "^0.15.1",
"@astrojs/preact": "^2.0.0",
"@astrojs/react": "^2.0.1",
"@astrojs/mdx": "^2.0.5",
"@astrojs/preact": "^3.1.0",
"@astrojs/react": "^3.0.9",
"@docsearch/css": "^3.5.2",
"@docsearch/react": "^3.5.2",
"@types/node": "^18.0.0",
"@types/react": "^17.0.45",
"@iconify-json/bi": "^1.1.23",
"@iconify-json/lucide": "^1.1.156",
"@types/node": "^20.11.5",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"astro": "^2.0.14",
"astro-icon": "^0.8.0",
"astro": "^4.2.1",
"astro-icon": "^1.0.2",
"preact": "^10.19.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"html-escaper": "^3.0.3"
"html-escaper": "^3.0.3",
"prettier": "^3.2.4",
"prettier-plugin-astro": "^0.13.0"
}
}
}
Loading

0 comments on commit 77cf7a5

Please sign in to comment.