From 1b2d5e72becee6de40d1986df19439c7f99f9dc4 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:49:42 -0600 Subject: [PATCH 01/10] quick format + test --- GitHub/demos/1_GitHubPagesOverview.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/GitHub/demos/1_GitHubPagesOverview.md b/GitHub/demos/1_GitHubPagesOverview.md index f418416..51a520c 100644 --- a/GitHub/demos/1_GitHubPagesOverview.md +++ b/GitHub/demos/1_GitHubPagesOverview.md @@ -68,6 +68,8 @@ Last updated: 2025-01-13 push: branches: - main # Trigger the workflow on push to the main branch + - dev + - feature/* jobs: build-and-deploy: @@ -84,6 +86,9 @@ Last updated: 2025-01-13 - name: Install dependencies run: npm install + + - name: Install pandoc + run: sudo apt-get install -y pandoc - name: Convert Markdown to HTML run: | @@ -94,11 +99,11 @@ Last updated: 2025-01-13 - name: Deploy to GitHub Pages run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git config --global user.email "belindabrownr04@gmail.com" + git config --global user.name "brown9804" git add _site git commit -m 'Deploy static HTML files' - git push origin main + git push origin HEAD:${{ github.ref }} ``` ## Setting Up GitHub Pages From c6da663f9341f476ea31bfb86b0d4c8bdcd425d1 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:52:25 -0600 Subject: [PATCH 02/10] rebase --- .github/workflows/md-html-deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/md-html-deploy.yml b/.github/workflows/md-html-deploy.yml index 47c05f8..11b136d 100644 --- a/.github/workflows/md-html-deploy.yml +++ b/.github/workflows/md-html-deploy.yml @@ -35,8 +35,9 @@ jobs: - name: Deploy to GitHub Pages run: | - git config --global user.email "belindabrownr04@gmail.com" - git config --global user.name "brown9804" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git pull origin ${{ github.ref }} --rebase git add _site git commit -m 'Deploy static HTML files' git push origin HEAD:${{ github.ref }} From 60b8fb0771b0ab0c8684d27aa9703c1609e44db6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 13 Jan 2025 17:52:55 +0000 Subject: [PATCH 03/10] Deploy static HTML files --- _site/README.html | 183 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 _site/README.html diff --git a/_site/README.html b/_site/README.html new file mode 100644 index 0000000..d4efbad --- /dev/null +++ b/_site/README.html @@ -0,0 +1,183 @@ +

Cloud DevOps - Learning Path

+

Costa Rica

+

brown9804

+

Last updated: 2024-12-13

+
+
+

Provides the essential knowledge required to work effectively within +Azure and embrace DevOps/Agile methodologies. Additionally, it offers +insights into fundamental cloud concepts.

+
+
+

+Total Visitors +

+

Visitor Count

+
+

Content

+
+ +Table of Contents (Click to expand) + + +
+

Wiki

+ +
+ + +
+
+ + +
+
+ + +
+ +
+ + +
From f0476710b761a4224d8e5b9d688806cbc31da013 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:53:41 -0600 Subject: [PATCH 04/10] format change --- GitHub/demos/1_GitHubPagesOverview.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GitHub/demos/1_GitHubPagesOverview.md b/GitHub/demos/1_GitHubPagesOverview.md index 51a520c..f677f23 100644 --- a/GitHub/demos/1_GitHubPagesOverview.md +++ b/GitHub/demos/1_GitHubPagesOverview.md @@ -62,8 +62,6 @@ Last updated: 2025-01-13 5. **Deploy to GitHub Pages**: This step commits the generated HTML files back to the `main` branch and pushes the changes. This ensures that your GitHub Pages site is updated with the latest HTML files. ```yaml - name: Convert Markdown to HTML and Deploy - on: push: branches: @@ -99,8 +97,9 @@ Last updated: 2025-01-13 - name: Deploy to GitHub Pages run: | - git config --global user.email "belindabrownr04@gmail.com" - git config --global user.name "brown9804" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git pull origin ${{ github.ref }} --rebase git add _site git commit -m 'Deploy static HTML files' git push origin HEAD:${{ github.ref }} From 73c17ba07d1133a979eda6bb6415d5d47e391a7e Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:56:26 -0600 Subject: [PATCH 05/10] + untracked files --- .github/workflows/md-html-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/md-html-deploy.yml b/.github/workflows/md-html-deploy.yml index 11b136d..c6185dc 100644 --- a/.github/workflows/md-html-deploy.yml +++ b/.github/workflows/md-html-deploy.yml @@ -38,6 +38,6 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" git pull origin ${{ github.ref }} --rebase - git add _site + git add -A # Add all changes, including untracked files git commit -m 'Deploy static HTML files' git push origin HEAD:${{ github.ref }} From a6304bbbdf6709b781888628acb833c16d985574 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 13 Jan 2025 17:56:53 +0000 Subject: [PATCH 06/10] Deploy static HTML files --- package-lock.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..48e341a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +} From abe234bd9b82fea7208b118278332cd2dfc26c96 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:57:33 -0600 Subject: [PATCH 07/10] + git add -A for untracked --- GitHub/demos/1_GitHubPagesOverview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitHub/demos/1_GitHubPagesOverview.md b/GitHub/demos/1_GitHubPagesOverview.md index f677f23..eb25d07 100644 --- a/GitHub/demos/1_GitHubPagesOverview.md +++ b/GitHub/demos/1_GitHubPagesOverview.md @@ -100,7 +100,7 @@ Last updated: 2025-01-13 git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" git pull origin ${{ github.ref }} --rebase - git add _site + git add -A # Add all changes, including untracked files git commit -m 'Deploy static HTML files' git push origin HEAD:${{ github.ref }} ``` From 50b3e93af74d96dba3bd5217374440d2c7f50093 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:02:13 -0600 Subject: [PATCH 08/10] visual guidance --- GitHub/demos/1_GitHubPagesOverview.md | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/GitHub/demos/1_GitHubPagesOverview.md b/GitHub/demos/1_GitHubPagesOverview.md index eb25d07..db008e1 100644 --- a/GitHub/demos/1_GitHubPagesOverview.md +++ b/GitHub/demos/1_GitHubPagesOverview.md @@ -62,12 +62,12 @@ Last updated: 2025-01-13 5. **Deploy to GitHub Pages**: This step commits the generated HTML files back to the `main` branch and pushes the changes. This ensures that your GitHub Pages site is updated with the latest HTML files. ```yaml + name: Convert Markdown to HTML and Deploy + on: push: branches: - main # Trigger the workflow on push to the main branch - - dev - - feature/* jobs: build-and-deploy: @@ -84,9 +84,6 @@ Last updated: 2025-01-13 - name: Install dependencies run: npm install - - - name: Install pandoc - run: sudo apt-get install -y pandoc - name: Convert Markdown to HTML run: | @@ -97,21 +94,20 @@ Last updated: 2025-01-13 - name: Deploy to GitHub Pages run: | - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" - git pull origin ${{ github.ref }} --rebase - git add -A # Add all changes, including untracked files + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add _site git commit -m 'Deploy static HTML files' - git push origin HEAD:${{ github.ref }} + git push origin main ``` ## Setting Up GitHub Pages 1. **Create a Repository**: Create a new repository on GitHub or use an existing one. 2. **Enable GitHub Pages**: - Go to the repository settings on GitHub. - - Under the `GitHub Pages` section, select the `GitHub Actions`, and `Static HTML` as the source. + - Under the `GitHub Pages` section, select the `main` branch as the source. - image + image > Static HTML refers to web pages that are delivered to the user's browser exactly as stored, without any server-side processing. Static sites are fast, secure, and easy to deploy, making them ideal for simple websites, portfolios, blogs, and documentation. 3. Push Your Code: Commit and push your code to the main branch. The GitHub Actions workflow will automatically run and deploy your site to GitHub Pages. From cc1dcb551ca0850f1510ea75f20c7fdb01db32a9 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:08:17 -0600 Subject: [PATCH 09/10] preserve struct --standalone option to create a complete HTML document and the --toc option to generate a table of contents. --- .github/workflows/md-html-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/md-html-deploy.yml b/.github/workflows/md-html-deploy.yml index c6185dc..4c4d795 100644 --- a/.github/workflows/md-html-deploy.yml +++ b/.github/workflows/md-html-deploy.yml @@ -30,7 +30,7 @@ jobs: run: | mkdir -p _site for file in *.md; do - pandoc "$file" -o "_site/${file%.md}.html" + pandoc "$file" --standalone --toc -o "_site/${file%.md}.html" done - name: Deploy to GitHub Pages From dfd857b5871fc06883967973618495d9cd892edb Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:09:22 -0600 Subject: [PATCH 10/10] preserve struct --standalone option to create a complete HTML document and the --toc option to generate a table of contents. --- GitHub/demos/1_GitHubPagesOverview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitHub/demos/1_GitHubPagesOverview.md b/GitHub/demos/1_GitHubPagesOverview.md index db008e1..22aa4c9 100644 --- a/GitHub/demos/1_GitHubPagesOverview.md +++ b/GitHub/demos/1_GitHubPagesOverview.md @@ -89,7 +89,7 @@ Last updated: 2025-01-13 run: | mkdir -p _site for file in *.md; do - pandoc "$file" -o "_site/${file%.md}.html" + pandoc "$file" --standalone --toc -o "_site/${file%.md}.html" done - name: Deploy to GitHub Pages