diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..36c3c34 --- /dev/null +++ b/.github/dependabot.yml @@ -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" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7e2411b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file diff --git a/.vitepress/config.mts b/.vitepress/config.mts index be19973..9bbc182 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -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: [ diff --git a/docs/getting-started/10-about-autumn.md b/docs/getting-started/10-about-autumn.md index 601b970..ac707e9 100644 --- a/docs/getting-started/10-about-autumn.md +++ b/docs/getting-started/10-about-autumn.md @@ -2,7 +2,7 @@ title: Что такое Autumn? --- -![autumn](../../static/cover.png) +![autumn](../static/cover.png) # Добро пожаловать!