diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 4d80213..40d722d 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -5,7 +5,7 @@ on: # Runs on pushes targeting the default branch push: branches: - - readings-site + - github-pages # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -59,7 +59,7 @@ jobs: hugo \ --gc \ --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" + --baseURL "${{ steps.pages.outputs.host }}/" - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9cb0b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Hugo +.hugo_build.lock +reader/public \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8a4d034 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "reader/themes/hugo-theme-relearn"] + path = reader/themes/hugo-theme-relearn + url = https://github.com/McShelby/hugo-theme-relearn.git diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/310.iml b/.idea/310.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/310.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/archives.xml b/.idea/libraries/archives.xml new file mode 100644 index 0000000..aa98bde --- /dev/null +++ b/.idea/libraries/archives.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..72cfda0 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..6896f5b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/reader/archetypes/default.md b/reader/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/reader/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/reader/content/_index.md b/reader/content/_index.md new file mode 100644 index 0000000..4610dcd --- /dev/null +++ b/reader/content/_index.md @@ -0,0 +1,4 @@ +--- +archetype: "home" +title: "Introduction to Software Engineering" +--- \ No newline at end of file diff --git a/reader/content/introduction/_index.md b/reader/content/introduction/_index.md new file mode 100644 index 0000000..f326181 --- /dev/null +++ b/reader/content/introduction/_index.md @@ -0,0 +1,5 @@ +--- +archetype: "chapter" +weight: 1 +title: "Introduction" +--- diff --git a/reader/hugo.toml b/reader/hugo.toml new file mode 100644 index 0000000..706dce3 --- /dev/null +++ b/reader/hugo.toml @@ -0,0 +1,14 @@ +baseURL = 'https://ubccpsc.github.io/' +languageCode = 'en-ca' +title = 'CPSC 310 Course Reader' +theme = 'hugo-theme-relearn' + +[params] +disableLandingPageButton = true +collapsibleMenu = true +showVisitedLinks = true +author.name = 'Reid Holmes' + + +[outputs] +home = ['html', 'rss', 'search', 'searchpage'] \ No newline at end of file diff --git a/reader/themes/hugo-theme-relearn b/reader/themes/hugo-theme-relearn new file mode 160000 index 0000000..7aec99b --- /dev/null +++ b/reader/themes/hugo-theme-relearn @@ -0,0 +1 @@ +Subproject commit 7aec99b38dc2668c6139bf71855535ace41c123c