Skip to content

Commit

Permalink
Merge pull request #10 from ubunchuu-truong-us/feature/3-deploy-website
Browse files Browse the repository at this point in the history
[MERGE FIRST] feat: change temporary baseurl to deploy test website
  • Loading branch information
lelouvincx authored Feb 9, 2024
2 parents b029df4 + 89b420d commit 1ff1ab1
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 11 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:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'

# Maintain dependencies for npm
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
16 changes: 16 additions & 0 deletions .github/workflows/dependabot.auto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Dependabot Automerge - Action'

on:
pull_request:

jobs:
dependabot:
name: 'Dependabot'
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}}
10 changes: 5 additions & 5 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docusaurus Deploy
on:
push:
branches:
- main1
- main

permissions:
contents: read
Expand Down Expand Up @@ -31,12 +31,12 @@ jobs:

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./build"
path: './build'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1
18 changes: 12 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

import { themes as prismThemes } from 'prism-react-renderer';
import {themes as prismThemes} from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Ubunchuu Trường Ú',
tagline: 'Một project "Lai nú" giấu tên tại trường Ú hứa hẹn giúp mọi người bước đầu tiếp cận với Linux, đặc biệt là Ubuntu cùng cách thiết lập chúng như một pro developer.',
tagline:
'Một project "Lai nú" giấu tên tại trường Ú hứa hẹn giúp mọi người bước đầu tiếp cận với Linux, đặc biệt là Ubuntu cùng cách thiết lập chúng như một pro developer.',
favicon: 'img/favicon.ico',

staticDirectories: ['static'],
Expand All @@ -18,7 +19,8 @@ const config = {
url: 'https://ubunchuu-truong-us.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
baseUrl:
'/exp-ubunchuu.github.io/' /** Remember to use root baseUrl if repo name == <org-name>.github.io */,

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down Expand Up @@ -72,8 +74,12 @@ const config = {
position: 'left',
label: 'Tutorial',
},
{ to: '/docs/category/15-days-flying-with-tux', label: '15 Days Flying With Tux', position: 'left' },
{ to: '/blog', label: 'Blog', position: 'left' },
{
to: '/docs/category/15-days-flying-with-tux',
label: '15 Days Flying With Tux',
position: 'left',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/ubunchuu-truong-us',
label: 'GitHub',
Expand Down Expand Up @@ -107,7 +113,7 @@ const config = {
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 6
maxHeadingLevel: 6,
},
}),
};
Expand Down

0 comments on commit 1ff1ab1

Please sign in to comment.