diff --git a/.github/workflows/deploy-to-github-pages.yml b/.github/workflows/deploy-to-github-pages.yml index ec3fc5c..8afa372 100644 --- a/.github/workflows/deploy-to-github-pages.yml +++ b/.github/workflows/deploy-to-github-pages.yml @@ -34,6 +34,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + # 👇 Build steps - name: Set up Node.js uses: actions/setup-node@v3 with: @@ -43,12 +44,13 @@ jobs: run: yarn install --frozen-lockfile --non-interactive - name: Build run: yarn build + # 👆 Build steps - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - # Upload entire repository + # 👇 Specify build output path (Upload entire repository) path: build - name: Deploy to GitHub Pages id: deployment diff --git a/docusaurus.config.js b/docusaurus.config.js index 7b8d5b1..c39c12e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -13,15 +13,15 @@ const config = { favicon: 'img/favicon.ico', // Set the production url of your site here - url: 'https://your-docusaurus-site.example.com', + url: 'https://nhanaz.tech', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/', + baseUrl: '/${projectName}/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'NhanAZ', // Usually your GitHub org/user name. + projectName: 'AZDocs', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -44,14 +44,14 @@ const config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/${organizationName}/${projectName}/tree/main/', }, blog: { showReadingTime: true, // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/${organizationName}/${projectName}/tree/main/', }, theme: { customCss: './src/css/custom.css',