Skip to content

Commit

Permalink
Deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Oct 29, 2024
1 parent a99c869 commit 335ecea
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
# Check for updates to GitHub Actions workflows
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

# Check for updates to npm dependencies
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy VitePress to GitHub Pages

on:
push:
branches:
- master

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '23' # Use the Node.js version compatible with VitePress

- name: Install dependencies
run: npm install

- name: Build the site
run: npm run docs:build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.vitepress/dist
2 changes: 1 addition & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineConfig({
}),

editLink: {
pattern: 'https://github.com/autumn-library/docs/edit/main/docs/:path'
pattern: 'https://github.com/autumn-library/docs/edit/master/docs/:path'
},

socialLinks: [
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/10-about-autumn.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Что такое Autumn?
---

![autumn](../../static/cover.png)
![autumn](../static/cover.png)

# Добро пожаловать!

Expand Down

0 comments on commit 335ecea

Please sign in to comment.