added micromorph setup
All checks were successful
Build / build (push) Successful in 9m46s

This commit is contained in:
松浦 知也 Matsuura Tomoya 2024-12-12 15:50:44 +09:00
parent 29c26d771a
commit d09cbf8ad6
8 changed files with 58 additions and 18 deletions

View File

@ -12,20 +12,25 @@ jobs:
- run: git config --global core.quotepath false - run: git config --global core.quotepath false
- name: Install apt packages - name: Install apt packages
run: apt update && apt install -y rsync run: apt update && apt install -y rsync
- uses: actions/checkout@v3 - uses: actions/setup-node@v4
- uses: actions/checkout@v4
with: with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 fetch-depth: 0
- uses: https://github.com/actions/setup-go@v4 - uses: https://github.com/actions/setup-go@v4
with: with:
go-version: '^1.20' go-version: '^1.23'
- name: Setup Hugo - name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2 uses: https://github.com/peaceiris/actions-hugo@v2
with: with:
hugo-version: "latest" hugo-version: "latest"
extended: true extended: true
- name: Setup Hugo modules
run: hugo mod get -u
- name: Setup Hugo npm modules
run: hugo mod npm pack
- run: npm install
- name: Run Hugo - name: Run Hugo
run: hugo --minify run: hugo --gc --minify
# - name: upload artifacs # - name: upload artifacs
# uses: https://github.com/actions/upload-artifact@v3 # uses: https://github.com/actions/upload-artifact@v3
# with: # with:

3
go.mod
View File

@ -1,6 +1,6 @@
module git.matsuuratomoya.com/tomoyanonymous/teach-matsuuratomoya-com module git.matsuuratomoya.com/tomoyanonymous/teach-matsuuratomoya-com
go 1.22.10 go 1.23
require ( require (
github.com/KKKZOZ/hugo-admonitions v0.4.3 // indirect github.com/KKKZOZ/hugo-admonitions v0.4.3 // indirect
@ -8,4 +8,5 @@ require (
github.com/hugomods/font-awesome v6.7.1+incompatible // indirect github.com/hugomods/font-awesome v6.7.1+incompatible // indirect
github.com/hugomods/icons v0.6.6 // indirect github.com/hugomods/icons v0.6.6 // indirect
github.com/hugomods/icons/vendors/font-awesome v0.6.12 // indirect github.com/hugomods/icons/vendors/font-awesome v0.6.12 // indirect
github.com/tomoyanonymous/hugo-micromorph v1.0.0 // indirect
) )

2
go.sum
View File

@ -8,3 +8,5 @@ github.com/hugomods/icons v0.6.6 h1:gGlafcBDRP7sSID+tgLcWdog+s/QBj8DIfU+h9tZj1U=
github.com/hugomods/icons v0.6.6/go.mod h1:cIkSvK6W0q6N4U6n9KGz+QfRWQXAW0INd+1P31gPNGg= github.com/hugomods/icons v0.6.6/go.mod h1:cIkSvK6W0q6N4U6n9KGz+QfRWQXAW0INd+1P31gPNGg=
github.com/hugomods/icons/vendors/font-awesome v0.6.12 h1:I8ckJFuxr8mD8bJ4NX9NrmnHd3f6XvITuD2ME8a9wXc= github.com/hugomods/icons/vendors/font-awesome v0.6.12 h1:I8ckJFuxr8mD8bJ4NX9NrmnHd3f6XvITuD2ME8a9wXc=
github.com/hugomods/icons/vendors/font-awesome v0.6.12/go.mod h1:6YBo/5GaNpAocKwnKNWcd9xkliiRJXmwz2mstY5lr9I= github.com/hugomods/icons/vendors/font-awesome v0.6.12/go.mod h1:6YBo/5GaNpAocKwnKNWcd9xkliiRJXmwz2mstY5lr9I=
github.com/tomoyanonymous/hugo-micromorph v1.0.0 h1:yLTPilYxKbRmVliX8jwBNUJzi53CIk50PSVqgF5fXfc=
github.com/tomoyanonymous/hugo-micromorph v1.0.0/go.mod h1:KT3INsr1IVTcEazTHXOIybqnE1jB6JTJRAeXBY71FQ8=

View File

@ -21,8 +21,6 @@ contentDir = 'content'
weight = 2 weight = 2
title = "Classes by Matsuura Tomoya" title = "Classes by Matsuura Tomoya"
# (Optional) Set Google Analytics if you use it to track your website. # (Optional) Set Google Analytics if you use it to track your website.
# Always put it on the top of the configuration file, otherwise it won't work # Always put it on the top of the configuration file, otherwise it won't work
# googleAnalytics = "UA-XXXXXXXXX-X" # googleAnalytics = "UA-XXXXXXXXX-X"
@ -68,12 +66,12 @@ disableKinds = ['taxonomy']
# Set source repository location. # Set source repository location.
# Used for 'Last Modified' and 'Edit this page' links. # Used for 'Last Modified' and 'Edit this page' links.
BookRepo = 'https://github.com/tomoyanonymous/teach-matsuuratomoya-com' BookRepo = 'https://git.matsuuratomoya.com/tomoyanonymous/teach-matsuuratomoya-com'
# Enable 'Edit this page' links for 'doc' page type. # Enable 'Edit this page' links for 'doc' page type.
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param. # Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
# Path must point to 'content' directory of repo. # Path must point to 'content' directory of repo.
BookEditPath = 'tree/master' BookEditPath = 'src/branch/main'
BookCommitPath = 'commit' BookCommitPath = 'commit'
# (Optional, default January 2, 2006) Configure the date format used on the pages # (Optional, default January 2, 2006) Configure the date format used on the pages
# - In git information # - In git information
@ -102,4 +100,6 @@ path = "github.com/KKKZOZ/hugo-admonitions"
[[module.imports]] [[module.imports]]
path = 'github.com/alex-shpak/hugo-book' path = 'github.com/alex-shpak/hugo-book'
[[module.imports]] [[module.imports]]
path = 'github.com/tomoyanonymous/hugo-micromorph'
[[module.imports]]
path = 'github.com/hugomods/icons/vendors/font-awesome' path = 'github.com/hugomods/icons/vendors/font-awesome'

View File

@ -0,0 +1 @@
{{ partialCached "micromorph.html" . }}

12
package-lock.json generated
View File

@ -9,8 +9,10 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"deepl-node": "^1.11.0" "deepl-node": "^1.11.0",
} "micromorph": "^0.4.5"
},
"devDependencies": {}
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "20.10.3", "version": "20.10.3",
@ -125,6 +127,12 @@
"url": "https://tidelift.com/funding/github/npm/loglevel" "url": "https://tidelift.com/funding/github/npm/loglevel"
} }
}, },
"node_modules/micromorph": {
"version": "0.4.5",
"resolved": "https://registry.npmjs.org/micromorph/-/micromorph-0.4.5.tgz",
"integrity": "sha512-Erasr0xiDvDeEhh7B/k7RFTwwfaAX10D7BMorNpokkwDh6XsRLYWDPaWF1m5JQeMSkGdqlEtQ8s68NcdDWuGgw==",
"license": "MIT"
},
"node_modules/mime-db": { "node_modules/mime-db": {
"version": "1.52.0", "version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",

14
package.hugo.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "teach-matsuuratomoya-com",
"version": "1.0.0",
"description": "[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)",
"main": "translate.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"deepl-node": "^1.11.0"
}
}

View File

@ -1,14 +1,23 @@
{ {
"name": "teach-matsuuratomoya-com", "author": "",
"version": "1.0.0", "comments": {
"dependencies": {
"deepl-node": "project",
"micromorph": "github.com/tomoyanonymous/hugo-micromorph"
},
"devDependencies": {}
},
"dependencies": {
"deepl-node": "^1.11.0",
"micromorph": "^0.4.5"
},
"description": "[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)", "description": "[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)",
"devDependencies": {},
"license": "ISC",
"main": "translate.js", "main": "translate.js",
"name": "teach-matsuuratomoya-com",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "version": "1.0.0"
"license": "ISC",
"dependencies": {
"deepl-node": "^1.11.0"
}
} }